Merz's CDU/CSU bloc has consistently led polls but is unlikely to win a majority given Germany's fragmented political landscape, forcing it to sound out coalition partners.
Those negotiations are expected to be tricky after a campaign which exposed sharp divisions over migration and how to deal with the AfD in a country where far-right politics carries a particularly strong stigma due to its Nazi past.
That could leave unpopular Chancellor Olaf Scholz in a caretaker role for months, delaying urgently needed policies to revive Europe's largest economy after two consecutive years of contraction and as companies struggle against global rivals.
It would also create a leadership vacuum in the heart of Europe as it deals with a host of challenges, including US President Donald Trump's threats of a trade war and attempts to fast-track a ceasefire deal for Ukraine without European involvement.
Germany, which has an export-oriented economy and long relied on the US for its security, is particularly vulnerable.
Germans are more pessimistic about their living standards now than at any time since the financial crisis in 2008.Â
The percentage who say their situation is improving dropped sharply from 42 per cent in 2023 to 27 per cent in 2024, according to pollster Gallup.
Attitudes towards migration have also hardened, a profound shift in German public sentiment since its "Refugees Welcome" culture during Europe's migrant crisis in 2015.
Sunday's election follows the collapse last November of Scholz's coalition of his centre-left Social Democrats (SPD), the Greens and pro-market Free Democrats (FDP) in a row over budget spending.
The SPD is headed for its worst result since World War Two.
The election campaign has been dominated by fierce exchanges over the perception that irregular immigration is out of control, fuelled by a series of attacks in which the suspected perpetrators were of migrant origin.
It has also been overshadowed by the unusually forceful show of solidarity by members of the Trump administration - including Vice President JD Vance and tech billionaire Elon Musk - for the anti-migrant AfD, and broadsides against European leaders.
The 12-year-old AfD is on track to come in second place for the first time in a national election.
The AfD, however, is unlikely to govern for now as all mainstream parties have ruled out working with it, though some analysts believe it could pave the way for an AfD win in 2029.
Still, its strength, along with a small but significant vote share for the far-left and the decline of Germany's big-tent parties, is increasingly complicating the formation of coalitions and governance.
EU allies are cautiously hopeful the elections might deliver a more coherent government able to help drive forward policy at home and in the bloc.