June 29, 2020
The conservative Mr Duda will face the liberal mayor of Warsaw, Rafal Trzaskowski, in the second-round vote in two weeks' time.
With more than 99% of results in, Mr Duda took just under 44% of the vote and Mr Trzaskowski just over 30%.
Turnout was high despite coronavirus and social-distancing restrictions.
President Duda is an ally of the governing nationalist Law and Justice (PiS) party and if he loses, the opposition could push through major changes in Polish politics.
The president has the power to veto legislation, so Mr Duda's re-election would be of benefit to PiS, of which he used to be a member.