Madrid lies at latitude 40.416500 and longitude -3.702560, in the Northern and Western Hemispheres. It is the capital of Spain, about 4,476 km (2,781 miles) north of the Equator and 3.70° west of the Prime Meridian.
With about 3,255,944 inhabitants in the GeoNames gazetteer, it is the most populous city in Spain. The ground is about 665 m (2,182 ft) above sea level. Clocks follow the Europe/Madrid time zone.
The nearest major city on our list is Barcelona, 505 km (314 mi) to the east-northeast.
Place data: GeoNames, licensed under CC BY 4.0 (downloaded December 4, 2026). Population figures are GeoNames estimates and can differ from the latest census. Coordinates are those of the city centre as recorded by GeoNames.
Frequently asked questions
What are the GPS coordinates of Madrid?
Madrid, Spain is at latitude 40.416500 and longitude -3.702560 in decimal degrees, which is 40° 24' 59.40" N, 3° 42' 9.22" W in degrees, minutes and seconds.
What time zone is Madrid in?
Madrid uses the Europe/Madrid time zone. On December 6, 2026 its offset from UTC is UTC+01:00 (CET).
What is the elevation of Madrid?
The centre of Madrid is about 665 metres (2,182 feet) above sea level, according to GeoNames digital elevation model (average ground height of the surrounding grid cell). Elevation varies across the city.
Cookies
We use Google Analytics cookies to understand how the site is used. They are only set if you accept. Cookie Policy · Privacy Policy