Out of 26 million votes counted so far, he has won 14.6 million - or more than half, officials announced on state TV.
Mr Rouhani's main challenger lodged complaints about alleged voting irregularities.
Ebrahim Raisi accused supporters of Mr Rouhani of hundreds of acts of propaganda at voting booths, which are banned under electoral law.