Erdogan won 51.8 per cent of the vote, way ahead of his main opposition rival Ekmeleddin Ihsanoglu on 38.6 per cent, according to official results based on a 99 per cent vote count.
The third contender, Kurdish candidate Selahattin Demirtas, won 9.6 per cent of the vote.
Erdogan's inauguration is set for August 28.
The result marked a personal triumph for Erdogan, 60, who has served as premier since 2003 and could potentially now be president for two mandates until 2024.
The polls are the first time Turkey -- a member of NATO and longtime hopeful to join the EU -- has directly elected its president, who was previously chosen by parliament, and Erdogan hoped for a massive show of popular support.
As the results came out, Erdogan briefly addressed hundreds of supporters in Istanbul before praying at the historic Eyup Sultan mosque built after the 1453 conquest of Constantinople by the Ottomans.
"As long as I am alive, I will continue our struggle to sustain a more advanced democracy," said Erdogan before heading to Ankara where he is expected to give a full victory speech.
But Erdogan's opponents accuse him of undermining the secular legacy of Turkey's founding father Mustafa Kemal Ataturk, who established a strict separation between religion and politics when he forged the new state from the ashes of the Ottoman Empire.
"A ballot paper with only one name does not represent the democracy, it does not suit Turkey," said Ihsanoglu, 70, as he cast his ballot in Istanbul.
Erdogan ran a lavish three-month campaign that swamped those of his rivals, his face glaring down at pedestrians in Istanbul from gigantic billboards at almost every street corner.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
