✦ The masjid toolbox
الْقِبْلَة

The qibla and direction tool

The qibla, the direction of prayer, is the shortest path on the round earth from where you stand to the Kaaba in Makkah. Give this page your latitude and longitude and it gives you that bearing from true north, a compass to hold, the distance, and a card you can print and tape to the wall.

1Where you are

Accuracy to four decimal places is about eleven metres, far finer than any room needs. A bearing changes by less than a degree across a whole city.

Look it up once on the NOAA magnetic field calculator. East is positive, west is negative. Leave it empty if you do not know it.

الْقِبْلَة

The qibla in this room

The direction of prayer

57°

from true north

east north east

A compass rose with the qibla arrow N E S W

Hold the card with N toward true north; the arrow then points the qibla.

So turn your face toward the Sacred Mosque · Qur'an 2:144

✦ noorcodex.com

This is the card itself, at the size it prints: one sheet, A4 or Letter, portrait.

2True north is not compass north

The bearing above is measured from true north, the direction of the earth's axis. A magnetic compass, and the compass app in a phone, usually points at magnetic north, which drifts and differs from true north by anything from nothing to more than twenty degrees depending on where you stand. The gap has a name: magnetic declination.

Enter your declination above and this box tells you what to set on a magnetic compass.

If you use a phone compass

Calibrate it first: open the compass app and move the phone in a wide figure of eight a few times until the app stops asking. Then stand away from steel doors, radiators, speakers, laptops and reinforced concrete columns, all of which pull the needle. Check the reading in two or three spots in the room; if they disagree, the metal is lying to you, not the sky. Many phone compasses can show true north instead of magnetic north in their settings, and that is the setting you want.

3The sun check, which needs no device

A shadow is an honest instrument. Two ways to use it:

Find true north from the shortest shadow

Stand a straight stick upright on flat ground in the morning and mark the tip of its shadow every fifteen minutes through the middle of the day. The shortest shadow of the day is the moment of solar noon, and it lies exactly along the true north to south line: in the northern hemisphere the shadow points true north, in the southern hemisphere it points true south. Draw that line on the floor, then measure the qibla angle from it with a protractor.

The two days the sun stands over the Kaaba

Twice a year the sun passes directly over the Kaaba, and at that instant any upright object anywhere on the sunlit half of the earth casts a shadow pointing exactly away from Makkah: face along the shadow toward the sun and you face the qibla. It happens around 27 and 28 May at about 12:18 in Makkah, which is 09:18 UTC, and around 15 and 16 July at about 12:27 in Makkah, which is 09:27 UTC. Convert those UTC times to your own clock, wait for a sunny minute, and mark the line on the floor. This check needs no compass, no phone and no trust in either.

If none of this is available to you, face the direction of your best effort and pray. The Prophet ﷺ told a congregation that what lies between the east and the west is qibla, reported by al-Tirmidhi 342 and graded sound, and Allah says that wherever you turn, there is the face of Allah, Qur'an 2:115. A wall that is a few degrees off does not void a prayer offered in earnest; correct it when you can.

How the number is found

This page computes the great-circle bearing, the initial heading of the shortest path over a spherical earth, from your point to the Kaaba at latitude 21.4225 north, longitude 39.8262 east. It is the calculation used by nearly every qibla instrument and by the great majority of scholars. It is why masjids in North America face east and north of east rather than south east: on a globe, the shortest way to Makkah from Ottawa crosses the north Atlantic, and a flat map lies about that.

The distance shown is the great-circle distance on a sphere of mean radius 6371 kilometres, accurate to a few kilometres in several thousand.

Where to go from here

PlacesThe Kaaba this bearing points at, and the sanctuary around it, with their sources. The monthly timetableOnce the direction is fixed, the times: one printable sheet for the wall. The masjid toolboxThe rest of the free kit: the prayer board, the khutba builder and the starter guide.

The NOOR masjid toolbox · free forever, no account
Everything is computed on your own device. Nothing is sent anywhere.