Former president Andry Rajoelina received more than 55 percent of the vote while his opponent Marc Ravalomanana received more than 44 percent according to provisional results.
Madagascar's electoral commission on Thursday announced provisional results in the runoff presidential election, saying Andry Rajoelina received more than 55 percent of the vote while Marc Ravalomanana received more than 44 percent.
The Indian Ocean island nation's constitutional court has nine days to declare the final election results. All votes have been counted.
Just over 48 percent of the country's 10 million registered voters cast their ballots in the December 19 runoff between the candidates, both former heads of state and bitter rivals.
Ravalomanana has denounced what he called "massive fraud" in the runoff and earlier this week urged supporters to "defend" their votes.
He is expected to challenge the results at the constitutional court.
Only Rajoelina attended Thursday's announcement, with the president of the electoral commission, Hery Rakotomanana, noting Ravalomanana's absence with regret.
"We need calm," Rajoelina said. "The people of this country don't need trouble."
He declared the election over until 2023. And he rejected any idea of fraud: "We don't know how to cheat. We don't know how to steal."
The two former presidents faced off for the first time since political turmoil in 2009 forced Ravalomanana from power.
Both had said they would accept the runoff election's results, though Ravalomanana specified that the vote take place "in good conditions."
The 44-year-old Rajoelina, who was president from 2009 to 2014 during a transitional government, had campaigned on his youth while the 69-year-old Ravalomanana, who led from 2002 to 2009, had pointed to his experience. Ravalomanana had to quit the presidency in 2009 after a series of military-backed challenges supported by Rajoelina, who was mayor of the capital, Antananarivo, at the time.
Campaigning had been largely peaceful in this former French colony, which the World Bank ranks as one of the world's poorest nations, though rich in ecological diversity.
More than two-thirds of the island's 25 million people live in extreme poverty, while corruption is said to be widespread.