Prayer
Published on

Maghrib Prayer Rakahs: The Complete Guide

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • DeenUp

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

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

A prayer rug facing a softly lit mosque mihrab
Maghrib prayer rakahs — how many rakahs in Maghrib salat and how to pray them

Knowing the rakah count for each prayer sounds simple — until you sit down and realize you want to make sure you have it exactly right. Maghrib in particular can trip people up: it has 3 fard rakahs, making it unique among the five daily prayers, and the sunnah prayers that surround it have their own structure worth knowing.

Whether you are learning to pray, helping a family member, or simply double-checking what you already know, this guide walks you through everything: how many rakahs, when to pray them, what goes in each, and why this prayer holds a distinct place in your daily worship.

How Many Rakahs Is Maghrib Prayer?

صَلَاةُ الْمَغْرِب (salat al-maghrib) — the Maghrib prayer — consists of 3 obligatory (fard) rakahs, followed by 2 emphasized sunnah (sunnah mu'akkadah) rakahs. You may also add 2 optional nafl rakahs after the sunnah. The 3 fard rakahs are established by the Prophet's consistent practice throughout his life, transmitted through thousands of companions and scholars to the present day. Praying the 2 sunnah rakahs is strongly encouraged.

The Quranic Foundation for the Five Daily Prayers

The obligation of salah — and its timings — is rooted directly in the Quran. Allah says:

أَقِمِ الصَّلَاةَ لِدُلُوكِ الشَّمْسِ إِلَىٰ غَسَقِ اللَّيْلِ وَقُرْآنَ الْفَجْرِ

"Establish prayer at the decline of the sun until the darkness of the night, and the Quran of dawn." — (Surah Al-Isra, 17:78)

This verse sweeps across the day's prayer times — Zuhr, Asr, Maghrib, and Isha are captured in the arc from noon to nightfall, while Fajr is mentioned separately. Maghrib sits at the transition from daylight to darkness, making it one of the most spiritually vivid prayer times.

The Prophet ﷺ also emphasized keeping the five prayers guarded: "Guard strictly the [five obligatory] prayers, especially the middle prayer" (Surah Al-Baqarah, 2:238). Maghrib is your fourth prayer of the day, the signal that evening has begun.

To understand where Maghrib fits in the full context of your daily worship, the guide on how to pray salah covers the complete structure.

Full Rakah Breakdown: All Five Prayers at a Glance

This table is the single most practical reference for rakah counts — save it, share it, refer to it whenever you need it:

PrayerSunnah BeforeFardSunnah AfterOptional Nafl
Fajr22
Zuhr4422
Asr44
Maghrib322
Isha4422 + 3 Witr

Maghrib stands out immediately: it is the only prayer with an odd number of fard rakahs. Witr, prayed after Isha, also has an odd number — and scholars note that Allah loves the odd number (witr), a detail that connects these two prayers.

For a detailed guide on Asr prayer rakahs and structure, the same breakdown principle applies — fard first, sunnah after.

When Is Maghrib Prayer Time?

The Maghrib window begins exactly at sunset and closes when the red twilight disappears from the horizon — typically 60 to 90 minutes after sunset, depending on your location and the season. At higher latitudes in summer, this window can be as short as 40 minutes. The Prophet (peace be upon him) said: "The time of Maghrib is as long as the twilight has not disappeared" (Sahih Muslim 612).

This narrow window is the reason scholars consistently say: pray Maghrib as soon as you hear the adhan. Unlike Asr or Isha, delaying Maghrib without reason goes against the prophetic practice. The Prophet (peace be upon him) was known to rush to pray Maghrib at the moment of sunset.

فَرْض (fard) prayers are obligations that must be performed in their time. Missing Maghrib's window without a valid excuse is a serious matter — though if you miss it, you make it up as soon as possible.

How to Pray the 3 Fard Rakahs of Maghrib

Rakah 1:

  • Stand (qiyam), recite Al-Fatihah + a surah
  • Bow (ruku), then stand again
  • Two prostrations (sujood) with a brief sit between them
  • Sit for the first tashahhud (at-tahiyyat)

Rakah 2:

  • Stand, recite Al-Fatihah + a surah
  • Ruku, stand, two sujood
  • Sit for the first tashahhud — recite at-tahiyyat only, then stand

Rakah 3:

  • Stand, recite Al-Fatihah only (no additional surah)
  • Ruku, stand, two sujood
  • Sit for the final tashahhud — recite at-tahiyyat, salawat (Ibrahimiyya), and any dua
  • End with tasleem (salam) to the right and left

The key difference in the third rakah is that only Surah Al-Fatihah is recited — no additional surah. This is the consistent practice across Zuhr, Asr, Maghrib, and Isha for the final raka'at.

The 2 Sunnah Rakahs After Maghrib

After completing the 3 fard rakahs and performing the tasleem, you pray 2 sunnah mu'akkadah rakahs. These are identical in structure to a standard 2-rakah prayer: Al-Fatihah plus a surah in both rakahs, with the final sitting and tasleem at the end.

سُنَّة مُؤَكَّدَة (sunnah mu'akkadah) means an "emphasized sunnah" — a practice the Prophet (peace be upon him) performed consistently and only abandoned on rare occasions, like illness or travel. Leaving these rakahs occasionally is not sinful, but neglecting them habitually is discouraged.

The sunnah rakahs carry enormous reward in proportion to the minimal extra time they require — typically 3 to 5 minutes after the fard.

Building a consistent sunnah prayer habit is one of the highest-leverage things you can do for your daily connection with Allah. The benefits that begin with Fajr prayer apply equally to making every sunnah count.

Making Maghrib Part of Your Daily Rhythm

Maghrib has a natural advantage over other prayers: it falls at a time when most people are transitioning from work or day activities. The sunset signals a pause that already exists in modern life — use it.

A few practical strategies:

  • Set an adhan alert on your phone for Maghrib specifically — since the window is short, a reminder 10 minutes before helps
  • Pray before eating if possible — the Prophet frequently prayed before his evening meal
  • Keep a prayer space ready at home so there is no delay between the adhan and your salah
  • Pair the sunnah rakahs with the fard immediately — getting up from one and going back down for the other takes less willpower than leaving and returning

Learning the duas to read after salah transforms the minutes after Maghrib into some of the most spiritually productive of your day. And maintaining focus during prayer — especially the short window of Maghrib — is something every Muslim works on continuously. Improving concentration in salah has practical techniques that help.

Still struggling to perform salah properly?

Learn each prayer step by step, understand what you are saying, and build a consistent salah habit with clear, scholar-approved lessons in DeenUp.

Take the Salah Quiz
DeenUp app showing bite-sized Islamic lessons

Signs You Are Growing in Your Salah

Progress in prayer is not always dramatic. A few signs that Maghrib is becoming truly rooted in your daily life:

  • The adhan feels like a natural pause rather than an interruption
  • You find yourself already moving toward wudu before the iqamah
  • The sunnah rakahs feel incomplete to skip, not like an extra burden
  • You notice a shift in your evenings — a quieter, more grounded start to the night

These are not achievements to chase; they are natural fruits of consistency. Allah says in the Quran: "Indeed, prayer prohibits immorality and wrongdoing" (Surah Al-Ankabut, 29:45). Maghrib, prayed consistently, quietly shapes the rest of your evening.

Salah is also the second pillar of Islam — the practice that distinguishes a Muslim's daily life from every other faith. Knowing it well is part of knowing your deen.

For tips on building and maintaining this habit from people who have studied Islamic practice deeply, DeenBack's guide to improving your salah focus offers a complementary perspective. And for reflections on mindful prayer as a daily spiritual discipline, Demi Manifest's article on mindful prayer is worth reading alongside this one.

The period after Maghrib is one of the prescribed times for evening adhkar. A brief but powerful one:

سُبْحَانَ اللَّهِ وَبِحَمْدِهِ

"Glory be to Allah and praise Him."

Recite 100 times after Maghrib (Sahih al-Bukhari 6405) — one of the most rewarding of the short adhkar.

For the full collection, the evening adhkar in Islam guide has everything organized and explained.

Closing Thoughts

Maghrib's 3 fard and 2 sunnah rakahs are among the most precisely transmitted practices in all of Islamic history — witnessed by the companions, recorded by the scholars, and practiced unchanged for over 1,400 years. You are connecting yourself to an unbroken chain when you pray them.

Start tonight if you have not already. If you have been praying consistently, add the 2 sunnah rakahs if they are not already part of your routine. And keep the evening adhkar flowing after tasleem.

Still struggling to perform salah properly?

Learn each prayer step by step, understand what you are saying, and build a consistent salah habit with clear, scholar-approved lessons in DeenUp.

Take the Salah Quiz
DeenUp app showing bite-sized Islamic lessons

Further reading:

Frequently Asked Questions

How many rakahs is Maghrib prayer?

Maghrib prayer has 3 obligatory (fard) rakahs and 2 emphasized sunnah (sunnah mu'akkadah) rakahs after the fard, for a total of 5. There are also 2 optional nafl rakahs you can add after the sunnah. The 3 fard rakahs are established by scholarly consensus and the Prophet's consistent practice.

When is the Maghrib prayer time?

Maghrib prayer begins immediately after sunset and extends until the red twilight on the horizon disappears — typically around 90 minutes after sunset depending on location and season. It is the shortest prayer window of the five daily prayers, so scholars emphasize praying Maghrib promptly after the adhan rather than delaying it.

What are the sunnah prayers for Maghrib?

There are 2 sunnah mu'akkadah (emphasized sunnah) rakahs prayed after the 3 fard rakahs of Maghrib. The Prophet (peace be upon him) consistently prayed these and encouraged Muslims not to neglect them. Additionally, there are 2 optional nafl rakahs that can be added, though these are not emphasized sunnah.

How is Maghrib different from other prayers in rakahs?

Maghrib is unique because it has 3 fard rakahs, making it the only prayer with an odd number of obligatory rakahs. Fajr has 2, Zuhr and Asr each have 4, and Isha has 4 fard rakahs. The third rakah of Maghrib does not include a full sitting — only a brief one at the end of the second rakah.

Is there a sunnah prayer before Maghrib?

There is no emphasized sunnah before the 3 fard rakahs of Maghrib. Some scholars mention 2 optional nafl rakahs before Maghrib are permissible based on a hadith encouraging voluntary prayer before each obligatory prayer, but this is not sunnah mu'akkadah. The emphasized sunnah for Maghrib comes after the fard.

What do you recite in the third rakah of Maghrib?

In the third fard rakah of Maghrib, you recite only Surah Al-Fatihah — no additional surah is added. You then go to ruku, sujood, and sit for the final tashahhud before the tasleem. This is the same practice used in the third and fourth rakahs of Zuhr, Asr, and Isha prayers.

Can I pray Maghrib and Isha together?

Yes, combining Maghrib and Isha is permitted in specific circumstances — during travel, illness, or heavy rain, according to the majority of scholars. This is called jam al-taqdeem (combining in advance) or jam al-ta'kheer (combining at the later time). In normal circumstances without a valid reason, each prayer should be prayed in its own time.