With 237 of 314 precincts reporting, Pratt had 37,636, or 37 percent and Barrett had 33,917 votes, or 33 percent. The general election is April 6.
The first open mayoral election in 16 years attracted people from a variety of backgrounds, including a judge, former police chief and a teacher.
Pratt, the current city council president, took over as acting mayor in January after John Norquist resigned to take a job as president and chief executive officer at the Congress for the New Urbanism in Chicago.
Barrett vacated his congressional seat at the end of 2002 after an unsuccessful run for governor. He was beaten in the Democratic primary by Gov. Jim Doyle.