But the opposition cried foul, claiming that state media and the election commission had manipulated the results and saying it was too early to be sure of the outcome.
An official result is expected later Sunday. If Erdogan's victory is officially confirmed, he will gain sweeping new powers when he resumes office. He narrowly won a referendum last year to transform the country's parliamentary system to a powerful executive presidency, in what his critics called a blatant power grab.
Erdogan also said his ruling Justice and Development Party (AKP) and its allied Nationalist Movement Party (MHP) had together retained their control of parliament.