Maghrib Prayer: Time, Rakats and How Long It Lasts

Maghrib prayer time begins at sunset, once the sun has fully disappeared below the horizon, and lasts until the twilight fades and Isha begins: usually about 70 to 90 minutes, and longer at high latitudes. Maghrib has three obligatory rak’ahs. Ja’fari (Shia) practice waits until the eastern redness has passed, roughly 15 to 25 minutes after sunset.

Maghrib is the one prayer whose start almost everyone can see without an app. The sun goes down, the adhan follows, and in Ramadan the fast is broken. Its end is less obvious, and it is the prayer people most often assume is “only a few minutes long”. That is not what most schools teach, as the sections below show.

When does Maghrib start?

For the four Sunni schools, Maghrib starts the moment the sun has completely set. Salama ibn al-Akwa’ said: “We used to pray the Maghrib prayer with the Prophet (ﷺ) when the sun disappeared from the horizon” (Sahih al-Bukhari 561). In the hadith of Jibril teaching the prayer times, Maghrib is the only prayer led at the same moment on both days, “when one who is fasting breaks the fast” (Sunan Abi Dawud 393, graded hasan sahih by al-Albani).

Timetables take sunset as the instant the upper edge of the sun drops below the horizon, corrected for atmospheric refraction, and most add one to three minutes as a precaution. That is why PrayerZTime’s Maghrib time sits a minute or two after the sunset time on the same city page. The calculation guide covers this, and the sun and moon page explains how sunset itself is worked out.

The Ja’fari start: after the eastern redness

Ja’fari jurisprudence does not begin Maghrib at the first sign of sunset. Ayatollah Sistani’s Islamic Laws says that if someone suspects the sun may only be hidden behind mountains, buildings or trees, “he must not perform the maghrib prayer before the redness of the sky in the east – which appears after sunset – has passed overhead”, and adds that even without such doubt one must wait for that point “based on obligatory precaution” (Islamic Laws, Ruling 722).

Calculators usually model this as the sun reaching about 4° below the horizon (PrayTimes.org). In Dubai or Madinah that comes about 14 to 16 minutes after sunset; in London, where the sun sets at a shallow angle, it is about 20 minutes in March and nearly half an hour in June. When a prayer app offers a Ja’fari or Shia setting, this later Maghrib is usually the main thing it changes, so compare it with your local Shia centre’s timetable.

How long does Maghrib last?

This is where the “Maghrib is very short” idea comes from, and where the schools actually stand.

The hadith. ‘Abdullah ibn ‘Amr reported: “When you pray Maghrib, its time is until the twilight has disappeared” (Sahih Muslim 612a). In the Sunni schools, Maghrib therefore ends when Isha begins.

Which twilight? The majority, including the Maliki, Shafi’i and Hanbali schools and Abu Hanifa’s two students Abu Yusuf and Muhammad al-Shaybani, take it to mean the red glow (al-shafaq al-ahmar) in the western sky. Abu Hanifa took it to mean the whiteness that lingers after the red has gone, which gives a later Isha. Many timetables model the red twilight at around 17° to 18° below the horizon; our Isha guide compares the methods.

The short-window opinion. The Shafi’i school’s later (jadid) position held that Maghrib’s time is just long enough to make wudu, cover, call the adhan and iqamah and pray five rak’ahs. Leading Shafi’i scholars such as al-Nawawi nonetheless preferred the view, backed by Muslim 612a, that Maghrib lasts until the red twilight disappears. Almost everyone agrees it is best prayed early.

The Ja’fari end. For a person under normal circumstances, Sistani’s rulings put the end of Maghrib at midnight, with Isha prayed after it (Ruling 723).

Here is what the Sunni window looks like in practice, using the Muslim World League’s 17° for Isha:

CityAround MarchAround JuneAround December
Makkahabout 70 minabout 80 minabout 75 min
Dubaiabout 72 minabout 84 minabout 77 min
Torontoabout 91 minabout 2 h 10 minabout 98 min
Londonabout 1 h 45 minno true Isha (adjusted)about 2 h

These are our own calculations from the sun’s position and will vary by a few minutes with the exact date and method. In Saudi Arabia, the Umm al-Qura timetable sets Isha at a fixed 90 minutes after Maghrib (120 in Ramadan), so the official window there is fixed. Around midsummer in London and Manchester the red twilight never fully disappears, so Isha is set by a high-latitude rule and the Maghrib window depends on which rule your mosque uses.

Why Maghrib should not be delayed

Even with a window of an hour or more, the sources press for an early Maghrib. Abu Ayyub al-Ansari confronted a governor of Egypt who had delayed it, quoting the Prophet ﷺ: “My community will remain well, or he said: will remain on its natural condition, so long as it would not delay the evening prayer until the stars shine brightly just like a network” (Sunan Abi Dawud 418, graded hasan sahih by al-Albani).

The Qur’an’s own description of the prayer times points the same way: “establish prayer at the two ends of the day and at the approach of the night” (Qur’an 11:114, Sahih International), and many commentators read “the approach of the night” as Maghrib and Isha.

Maghrib and iftar

In Ramadan, Maghrib is also iftar. The Prophet ﷺ said: “The people will remain on the right path as long as they hasten the breaking of the fast” (Sahih al-Bukhari 1957). A common practice is to break the fast with dates and water, pray Maghrib, then eat the main meal. For iftar times in your city, see the Ramadan 2027 timetables, and for how suhoor, Imsak and iftar are set, see suhoor and iftar times explained. Shia communities usually break the fast at the later Ja’fari Maghrib time.

How many rak’ahs is Maghrib?

Maghrib is the only obligatory prayer with three rak’ahs, and it is never shortened, even for travellers.

  • Rak’ahs 1 and 2: al-Fatiha and a further passage, recited aloud by the imam or a man praying alone. Sit for the first tashahhud after the second rak’ah.
  • Rak’ah 3: al-Fatiha only, silently (or, in Ja’fari practice, al-Hamd or the four glorifications). Then the final tashahhud and salam.

The full sequence of movements is in our step-by-step guide to salah, and the counts for every prayer are in the rakats table.

Sunnah prayers. Two rak’ahs after Maghrib are an emphasised sunnah in the Sunni schools. They are part of the twelve daily rak’ahs listed by Umm Habiba: “two Rak’ah after Maghrib” (Jami’ at-Tirmidhi 415, graded sahih by Darussalam), and Ibn ‘Umar remembered “two Rakat after Maghrib prayer in his house” (Sahih al-Bukhari 1180).

Two short rak’ahs before Maghrib, between the adhan and iqamah, are allowed but optional. The Prophet ﷺ said three times, “Pray before the Maghrib (compulsory) prayer”, adding the third time, “Whoever wants to offer it can do so”, because he did not want people to treat it as a fixed tradition (Sahih al-Bukhari 1183). Shafi’is and Hanbalis count them as recommended; Hanafis and Malikis generally do not encourage them, so that the obligatory prayer is not delayed.

In Ja’fari practice the nafilah of Maghrib is four rak’ahs after the obligatory prayer (Sistani, Ruling 751). If it is delayed until the red glow in the western sky has gone, Sistani’s rulings say it is better to pray Isha first (Ruling 757).

Combining Maghrib and Isha

Maghrib and Isha can be prayed together in certain situations. Ibn ‘Umar described the Prophet ﷺ delaying Maghrib when travelling in a hurry and praying it with Isha, and recalled that at Muzdalifah the two were prayed together (Sahih al-Bukhari 1091). Ibn ‘Abbas reported that the Prophet ﷺ prayed “the sunset and Isha’ prayers together without being in a state of fear or in a state of journey” in Madinah (Sahih Muslim 705a).

The schools draw different conclusions. Ja’fari practice allows Maghrib and Isha to be prayed together at any time, in order. Shafi’is, Malikis and Hanbalis allow combining during travel; Malikis, Shafi’is and Hanbalis also allow combining these two in heavy rain in some conditions. The Hanafi school restricts true combining to Muzdalifah during Hajj. The same discussion applies to combining Dhuhr and Asr. Your local scholar can tell you what applies to you.

Frequently asked questions

When does Maghrib prayer start?

In the Sunni schools Maghrib begins as soon as the sun has completely set, and timetables usually add one to three minutes after sunset. In Ja’fari Shia practice it begins when the redness in the eastern sky has passed overhead, which calculators place at about 4° below the horizon, roughly 15 to 25 minutes after sunset.

How long does Maghrib time last?

Under the majority view it lasts until the red twilight disappears and Isha begins, typically 70 to 90 minutes in the Gulf and much longer in northern Europe. One Shafi’i opinion treats the window as very short. In Ja’fari fiqh, Maghrib can be prayed until midnight.

How many rak’ahs are in Maghrib?

Three obligatory rak’ahs, with the first two recited aloud and a tashahhud after the second and third. Two sunnah rak’ahs follow in the Sunni schools, and four nafilah rak’ahs in Ja’fari practice. Maghrib is never shortened when travelling.

Can I pray Maghrib late?

Under the majority view it is valid until Isha begins, but delaying without need is discouraged. A hadith in Sunan Abi Dawud 418 (hasan sahih) links the community’s well-being to not delaying Maghrib until the stars are thick in the sky.

Should I break my fast before or after praying Maghrib?

Hastening iftar is a Sunnah (Sahih al-Bukhari 1957), so most people break the fast with dates or water at the adhan, pray Maghrib, and then have the main meal. Ja’fari communities break the fast at their later Maghrib time.

Why is Maghrib at different times on different apps?

Sunni timetables differ only by small precautionary buffers after sunset, usually a minute or two. Larger differences, around 15 minutes or more, usually mean one app is set to the Ja’fari method, which waits for the eastern redness to pass.

Related guides