Mahmud Raqi is a city in the northeastern part of Afghanistan, serving as the capital of Kapisa Province. It is within the jurisdiction of Mahmud Raqi District and has an estimated population of 79,313 people.
Located to the northeast of Kabul, Mahmud Raqi is classified as an urban village. In 2015 there were about 5,610 dwelling units in the city.
On 15 August 2021, Mahmud Raqi became the thirtieth provincial capital to be recaptured by the Taliban as part of the wider 2021 Taliban offensive.
Mahmud Raqi is located next to the Panjshir River in the northeastern part of Afghanistan, within the jurisdiction of Mahmud Raqi District. It is administratively divided into 4 municipal districts (nahias), covering a land area of or .
Mahmud Raqi is approximately to the northeast of Bagram, to the east of Charikar and north of Kabul City.
Around 72% of the city is considered agricultural land. Dwellings are dispersed throughout the municipality with low density and consisting entirely of irregular houses.
Mahmude Raqi has a hot-summer humid continental climate (Köppen Dsa). The annual mean temperature is . The temperature are highest on average in July at around . At on average, January is the coldest month of the year.