Iranian state media say Ahmadinejad is due to meet with his Afghan counterpart, Hamid Karzai, during his one-day visit.
The Iranian president is scheduled to travel on to Turkmenistan and Kyrgyzstan, where he is to attend a summit of the Shanghai Cooperation Organization (SCO).
The SCO summit will takes place in Bishkek on August 16.
(AFP, dpa)