Latitude and Longitude of Madrid, Spain

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.

Coordinates of Madrid

Decimal degrees (lat, long)
40.416500, -3.702560
Degrees, minutes, seconds (DMS)
40° 24' 59.40" N, 3° 42' 9.22" W
Degrees, decimal minutes (DDM)
40° 24.9900' N, 3° 42.1536' W
UTM (zone, easting, northing)
30T 440395 4474223
MGRS
30T VK 40395 74223
Plus Code
8CGRC78W+JX
Geohash
ezjmgtxgh

Facts

Country
Spain
Region
Madrid
Elevation
665 m (2,182 ft)Source: GeoNames digital elevation model (average ground height of the surrounding grid cell)
Time zone
Europe/MadridCurrent offset UTC+01:00 (CET) (December 6, 2026)
Population
3,255,944GeoNames estimate
Status
Capital of Spain

Map loads when you scroll here.

Open in OpenStreetMap

Nearest major cities to Madrid

Distances are measured along the surface of the WGS84 ellipsoid (Vincenty's formula); the bearing is the initial compass direction from Madrid.

CityDistanceBearingCopy
Barcelona505 km (314 mi)76° ENE
Algiers, Algeria719 km (447 mi)122° ESE
Fes, Morocco718 km (446 mi)190° S
Rabat, Morocco763 km (474 mi)202° SSW
Casablanca, Morocco834 km (518 mi)206° SSW
Paris, France1,053 km (654 mi)25° NNE
Milan, Italy1,190 km (740 mi)58° ENE
London, United Kingdom1,263 km (785 mi)11° NNE

Use the coordinates of Madrid in our tools

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.