Published on

How Many Rakats Is Maghrib? Fard and Sunnah Explained

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education โ€ข Deen Back

ุจูุณู’ู…ู ุงู„ู„ู‡ู ุงู„ุฑูŽู‘ุญู’ู…ูฐู†ู ุงู„ุฑูŽู‘ุญููŠู’ู…ู

In the name of God, the Most Gracious, the Most Merciful.

Maghrib is the sunset prayer โ€” the one that lands when the day is done and the evening is beginning. It is arguably the most clearly defined prayer in terms of timing: the window is tight, the sun has just set, and you have roughly 70-90 minutes before the time expires.

Knowing exactly how many rakats to pray โ€” and what is fard versus sunnah โ€” means you can pray with clarity rather than uncertainty.

The Short Answer

Maghrib = 3 fard (obligatory) rakats.

After the fard, there are 2 Sunnah Muakkadah (confirmed sunnah) rakats. The complete Maghrib prayer is therefore 5 rakats in total.

PartRakatsStatus
Fard3Obligatory
Sunnah (after fard)2Sunnah Muakkadah

Maghrib is unique among the five daily prayers in being an odd number of obligatory rakats. Every other fard prayer is either 2 (Fajr), 4 (Dhuhr, Asr, Isha), or in Maghrib's case โ€” 3.

The Evidence and the Wisdom

The Prophet ๏ทบ said:

ุตูŽู„ูŽุงุฉู ุงู„ู’ู…ูŽุบู’ุฑูุจู ูˆูุชู’ุฑู ุงู„ู†ูŽู‘ู‡ูŽุงุฑู ููŽุฃูŽูˆู’ุชูุฑููˆุง ุตูŽู„ูŽุงุฉูŽ ุงู„ู„ูŽู‘ูŠู’ู„ู

Salatul-maghribi witr an-nahar fa-awtiru salat al-layl

"Maghrib prayer is the witr of the day, so pray witr for the night prayer."

โ€” (Sunan Ibn Khuzaymah 1082)

The 3 rakats of Maghrib act as the odd-numbered anchor of the day โ€” completing the five daily prayers in a balanced structure. This explains why, unlike Dhuhr, Asr, and Isha, Maghrib is never shortened. It is already at its minimum meaningful form.

The Prophet ๏ทบ also consistently prayed the 2 sunnah after Maghrib. This is confirmed across multiple narrations and is considered one of the most important post-fard sunnah prayers.

The Details and Common Cases

Maghrib When Travelling

Unlike Dhuhr, Asr, and Isha โ€” which are shortened from 4 to 2 rakats when travelling โ€” Maghrib stays at 3 rakats. All four schools of Islamic law agree on this unanimously.

If you are combining Maghrib with Isha while travelling:

  • Pray Maghrib at 3 rakats (unchanged)
  • Pray Isha at 2 rakats (shortened from 4)

This combination is valid when travelling and is a mercy from Allah.

The Tight Maghrib Window

Maghrib has the shortest time window of all five prayers. Most scholars agree the time ends when the red twilight on the horizon disappears โ€” roughly 70-90 minutes after sunset. Some scholars extend this to when the white twilight disappears (the Hanbali view), which is slightly longer.

The practical implication: if you are going to delay any prayer, Maghrib is the one to delay least. The fard should be prayed as soon as possible after sunset.

Fajr and Maghrib โ€” The Most Critical Prayers

The Prophet ๏ทบ mentioned Fajr and Maghrib in particular as prayers guarded by angels:

ูŠูŽุชูŽุนูŽุงู‚ูŽุจููˆู†ูŽ ูููŠูƒูู…ู’ ู…ูŽู„ูŽุงุฆููƒูŽุฉูŒ ุจูุงู„ู„ูŽู‘ูŠู’ู„ู ูˆูŽู…ูŽู„ูŽุงุฆููƒูŽุฉูŒ ุจูุงู„ู†ูŽู‘ู‡ูŽุงุฑู ูˆูŽูŠูŽุฌู’ุชูŽู…ูุนููˆู†ูŽ ูููŠ ุตูŽู„ูŽุงุฉู ุงู„ู’ููŽุฌู’ุฑู ูˆูŽุตูŽู„ูŽุงุฉู ุงู„ู’ุนูŽุตู’ุฑู

"Angels take turns among you โ€” angels of the night and angels of the day โ€” and they meet together at Fajr prayer and Asr prayer."

โ€” (Sahih Bukhari 555)

Fajr and Asr are specifically mentioned here, but the broader body of hadith emphasizes all five prayers as essential. Missing Maghrib โ€” the prayer that bookmarks the end of your day โ€” is spiritually significant.

Never Miss Maghrib Again

DeenBack sends sunset prayer reminders so you never let the Maghrib window close without praying. Build your evening prayer habit โ€” one streak at a time.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Do Not Let Doubt Win

The most common Maghrib failure is not theological โ€” it is logistical. The day is winding down, you are tired, dinner is being made, the kids need attention, and the Maghrib window quietly closes while you "just finish one more thing."

The nafs is expert at finding reasons to delay. It will not tell you not to pray โ€” it will just make you wait five minutes, repeatedly.

The Prophet ๏ทบ said the most beloved deed to Allah is prayer at its proper time (Sahih Bukhari 527). Praying Maghrib on time โ€” even if it is only the 3 fard rakats and nothing more โ€” is better than a perfect 5-rakat Maghrib prayed 45 minutes late.

See how praying on time consistently changes the entire texture of your day, and how building the Fajr habit and Maghrib habit are the two bookmarks that structure a spiritually grounded day.

Quick Reference

SituationFard RakatsNotes
Normal Maghrib3Plus 2 sunnah after
Travelling3No shortening โ€” unique to Maghrib
Combined with Isha (travelling)3Isha shortened to 2
Combined with Isha (rain/illness)3As per applicable school
Missed Maghrib3Make up as qada

Common Questions

Can I pray Maghrib at home instead of the mosque? Yes. Praying in congregation (at the mosque) carries 27 times more reward according to the hadith, but praying alone at home is valid. If the mosque is nearby and accessible, attending congregation is strongly recommended.

What if I miss Maghrib and realize it at Isha time? Pray the 3 missed Maghrib rakats immediately as qada, then pray Isha. Missed prayers are made up in order. The sunnah rakats of Maghrib are not obligatory to make up.

Do I recite Al-Fatiha aloud in all three rakats of Maghrib? The imam recites Al-Fatiha and an additional surah aloud in the first two rakats of Maghrib. The third rakat is prayed silently (Al-Fatiha only, no additional surah). If praying alone, follow the same format.

Are the 2 post-Maghrib sunnah highly recommended? Yes. The Prophet ๏ทบ prayed them consistently. Beyond these 2 Muakkadah sunnah, there is also the practice of praying 6 rakats after Maghrib (known as Awwabin) โ€” the Prophet described significant rewards for this. Start with the 2 muakkadah and build from there.

Closing

Maghrib is the prayer that closes your day in front of Allah. It takes approximately 10 minutes to pray the fard and 2 sunnah combined โ€” less time than most people spend scrolling social media after sunset.

Know the rakats, know the window, show up. And if you want to understand how all five prayers fit together, read the complete rakat breakdown for each prayer so every salah in your day is prayed with full knowledge and intention.

Make Your Five Daily Prayers Non-Negotiable

Log each salah in DeenBack with prayer tracking, streak accountability, and evening reminders. Your Maghrib habit starts today.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

How many rakats is Maghrib prayer?

Maghrib consists of 3 obligatory (fard) rakats. After the fard, 2 sunnah rakats are prayed, giving a total of 5 rakats for the complete Maghrib. The 3 fard rakats are unique โ€” Maghrib is the only fard prayer that cannot be shortened when travelling.

Why is Maghrib 3 rakats and not 4?

The scholars explain that Maghrib with its 3 rakats corresponds to the witr (odd number) of the daytime, completing the balance of the five daily prayers. It is narrated that the Prophet explained that Maghrib is the witr of the day, as the Witr prayer is the odd-numbered prayer of the night.

Does Maghrib get shortened when travelling?

No. Maghrib is the only fard prayer that is not shortened (qasr) when travelling. All four schools of Islamic law agree on this. Dhuhr, Asr, and Isha are shortened from 4 to 2 rakats when travelling; Maghrib remains 3 rakats, and Fajr remains 2 rakats.

What time does Maghrib prayer end?

Maghrib time begins immediately after sunset and ends when the red twilight disappears from the sky (according to the majority of scholars). In most locations this is approximately 70-90 minutes after sunset. The Hanbali and some Shafi scholars extend Maghrib time until the white twilight disappears, which can be 20-30 minutes longer.

Can I combine Maghrib and Isha?

Yes, in valid circumstances. Maghrib and Isha can be combined when travelling, in heavy rain (according to some schools), or due to serious illness. You can pray both at Maghrib time (jam taqdim) or both at Isha time (jam takhir). When combined while travelling, Isha is shortened to 2 rakats; Maghrib remains 3 rakats.