Majdanpek is a town and municipality situated in the Bor District of eastern Serbia. It is located near the border of Romania.
According to the 2022 census, the municipality of Majdanpek has a population of 14,559 people, while the town itself has a population of 8,310 residents.