New York City Public Advocate Bill de Blasio is just over the threshold he needs to avoid a runoff in the Democratic primary for New York City mayor, but it remains to be seen whether the margin will hold.

De Blasio is at 40.2 percent of the vote with 98 percent of precincts reporting. If he fails to clear 40 percent, he would face a runoff with 2009 Democratic nominee Bill Thompson, who is in second place at 26 percent.

The city will conduct a recount to determine whether a runoff is required.