ٱلْقِبْلَة

Qibla Direction in Madrid, Spain

Calculated for the centre of Madrid, 40.4168° N, 3.7038° W.

104.0° ESE

Qibla from true north
104.0° ESE
On a magnetic compass
103.3°
Magnetic declination
0.7° E WMM2025, Nov 2026
Distance to the Kaaba
4,598 km 2,857 mi

A compass needle points to magnetic north, which in Madrid lies 0.7° east of true north, so on a regular compass you face 103.3° instead of 104.0°.

Open the live Qibla compass

How to face the Qibla in Madrid

  1. With your phone: tap Open the live Qibla compass, allow location (and, on iPhone, motion access), then turn slowly until the Kaaba on the dial reaches the mark at the top.
  2. With a regular compass: hold it flat, turn it until the needle sits on N, then face 103.3° on the dial. That is the magnetic bearing; reading 104.0° off a magnetic compass would leave you about 0.7° off.
  3. With the map: open the live compass, switch to Map and follow the gold line from your position to the Kaaba. It does not use the compass at all.

If a phone compass looks wrong, move the phone in a figure-eight a few times, away from laptops, speakers, car dashboards and magnetic cases, and hold it flat while you turn.

Why the Qibla from Madrid points east-southeast

Madrid is at 40.4° N, 19.0° of latitude north of Makkah and 4,598 km (2,857 miles) from the Kaaba. On a flat Mercator map the straight line between them points 117°, east-southeast; on the globe, the shortest path, called a great circle, leaves Madrid at 104.0°, east-southeast. From Madrid, the great-circle bearing is about 13° to the left of the flat-map line. Across the Southern European cities on this site the Qibla runs from 104.0° in Madrid to 123.6° in Milan.

Nearby cities

See every city in Europe, or use the Qibla Finder for your exact spot.

Qibla by country: USA · Canada · UK · Europe · Australia

وَرَتِّلِ ٱلْقُرْآنَ تَرْتِيلًا

Learn to recite it properly, with a live teacher

One-to-one Quran lessons for children and adults — tajweed, memorisation and reading, scheduled around you.

Book a free trial class