Qibla · Boeny

Qibla direction in Mahajanga

To face the Kaaba in Mahajanga, turn to 350.1° measured clockwise from true north, which is north (9.9° west of north). The Sacred Mosque in Mecca lies 4,190 km away along the shortest path over the globe, and this is the direction the mihrabs of the mosques in Mahajanga should follow.

On the compass the green needle points to 350.1°. If your phone shows true north, rotate until the heading reads 350°; with a classic magnetic compass, first correct for the local magnetic declination, which can shift the needle by several degrees.

Find the Qibla with your phone

How to face the Qibla in Mahajanga

Stand where you will pray and find north first. Then turn towards north and move a further 9.9° towards west: the result is the bearing of 350.1°. A small error of a few degrees is forgiven by most scholars, but aiming simply at north would leave you about 10° off.

Scholars agree that someone who can see the Kaaba must face it exactly, while someone far away faces its direction (jihat al-Ka‘bah) as precisely as reasonably possible. The simplest check in Mahajanga is a local mosque: its mihrab and prayer lines already point to the Qibla. See the mosques of Mahajanga. At home, mark the direction once with tape or a small arrow so the whole family prays the same way.

Why a flat map shows a different direction

On a flat (Mercator) map, the straight line from Mahajanga to Mecca points to 350.3°, only 0.2° away from the true Qibla. Here the two methods practically agree, so a map gives a usable first idea, although the 350.1° bearing remains the exact one.

The angle on this page is the initial bearing of the great circle from 15.7167° S, 46.3167° E to the Kaaba (21.4225° N, 39.8262° E). It is the method used by mosque architects and by every serious Qibla calculator, and it gives one exact answer for each point on Earth.

Distance from Mahajanga to Mecca and Medina

Mecca is 4,190 km from Mahajanga as the crow flies, and Medina, the city of the Prophet ﷺ, is 4,527 km away. A direct flight would take roughly 5 h 26 min, although most pilgrims from Mahajanga connect through Jeddah or Medina airport.

Clocks in Mahajanga run the same time as Mecca all year. Prayer times, however, depend on the sun at your own location, so always use the prayer times of Mahajanga rather than those of Mecca.

Finding the Qibla with the sun in Mahajanga

On 273 days of 2027, the sun passes exactly through the Qibla direction of Mahajanga while it is well above the horizon. At that moment, facing the sun means facing Mecca. The effect is most frequent in March (31 days); for example, on 15 February 2027 it happens at 12:11 local time.

On 92 days the sun stands exactly opposite the Qibla: then the shadow of any vertical object, a pole, a door frame or a plumb line, points straight towards Mecca. This is most frequent in January (31 days), for instance on 1 January 2027 at 11:53.

Sun in the Qibla direction in Mahajanga, 2027 (local time, 24-hour clock). — means it does not happen that day.
DateSun in the Qibla direction (face the sun)Sun opposite (shadows point to the Qibla)
1 January 2027—11:53
15 January 2027—12:00
1 February 2027—12:07
15 February 202712:11—
1 March 202712:13—
15 March 202712:13—
1 April 202712:13—
15 April 202712:12—
1 May 202712:13—
15 May 202712:15—
1 June 202712:19—
15 June 202712:23—
1 July 202712:26—
15 July 202712:27—
1 August 202712:24—
15 August 202712:20—
1 September 202712:11—
15 September 202712:03—
1 October 202711:53—
15 October 202711:46—
1 November 202711:39—
15 November 2027—11:37
1 December 2027—11:39
15 December 2027—11:44

Twice a year the sun passes directly over the Kaaba, on 28 May 2027 and 16 July 2027. Both moments are in daylight in Mahajanga: at 12:18 and 12:27 local time, face the sun and you face the Qibla exactly, anywhere in the city.

Mahajanga compared with other cities

Compared with Antananarivo, 378 km away, the Qibla in Mahajanga is turned 1.1° further clockwise (350.1° against 349.0°), and Mecca is 373 km closer. The nearest city with its own Qibla page, Antananarivo (378 km), prays towards 349.0°, a difference of 1.1°.

Across the 7 cities in Madagascar on this site, the Qibla ranges from 344.5° in Antsiranana to 354.9° in Toliara, a spread of 10.4°. That is too large to use one national direction, so each city has its own bearing.

See all cities on the Qibla page for Madagascar.

Qibla in cities near Mahajanga

Qibla in Mahajanga: questions and answers

What is the Qibla direction in Mahajanga?

It is 350.1° from true north, which is north: 9.9° west of north.

How far is Mahajanga from Mecca?

4,190 km in a straight line over the globe, and 4,527 km to Medina.

When does the sun show the Qibla in Mahajanga?

On 273 days of 2027 the sun stands in the Qibla direction; the table on this page gives the exact time for the 1st and 15th of each month.

Is the Qibla the same everywhere in Madagascar?

No. It ranges from 344.5° to 354.9° across the country, so each city has its own bearing.

Does the Qibla change during the year?

No. The direction of 350.1° is fixed; only the times when the sun lines up with it change from day to day.

More for Mahajanga