How to Pray Maghrib Prayer Correctly: Step-by-Step Guide for Beginners (2026)

IslamicEduHub · Learning Guide

How to Pray Maghrib Prayer Correctly: Step-by-Step Guide for Beginners (2026)

How many rakats Maghrib has, exactly when its short window opens and closes, the full step-by-step method, and the common mistakes people make when they’re rushing after sunset — everything a beginner needs for the sunset prayer, explained clearly in one place. Suitable for beginners, new Muslims, and anyone who wants to improve their Maghrib prayer according to the Quran and authentic Sunnah.

Step-by-Step Method 3 Fard + 2 Sunnah Rakats Quran & Hadith Verified Narrow Time Window Explained
By IslamicEduHub Team · Reviewed by our in-house Fiqh panel · Updated August 2026 · Estimated Reading Time: 16 min
✓ Reviewed: In-house Fiqh Panel ✓ Beginner Friendly ✓ Quran & Hadith Verified
Quick Answer

Here’s how to pray Maghrib prayer correctly, step by step: Maghrib has 5 rakats total — 3 Fard, then 2 Sunnah, prayed right after sunset in a notably short window. Make Wudu, face the Qiblah, recite the first two Fard rakats aloud, the third silently with only Al-Fatiha, then complete the 2 Sunnah rakats afterward.

If you’ve ever been mid-task at sunset and suddenly realized Maghrib’s window is closing fast, you’re not alone. Of all five daily prayers, Maghrib gives you the least room to delay — which makes knowing the steps in advance more useful here than almost anywhere else. This guide is written to make Maghrib simple, clear, and easy to follow — whether you’re a beginner, a new Muslim, or someone who wants to stop scrambling the moment the adhan starts.

Many beginners already know the general shape of Salah but hesitate specifically on Maghrib — how many rakats in Maghrib, whether the 2 Sunnah rakats come before or after the Fard, and exactly how much time they actually have once the sun goes down. That hesitation is usually just a gap in the details, not a gap in intention.

Maghrib is also the prayer most people rush, not because the method is complicated, but because its window is genuinely the shortest of the five. This guide covers how to pray Maghrib prayer correctly, step by step, clearly enough that the method is never the obstacle, and closes with practical tips for the part that actually trips people up: the clock.

How to pray Maghrib prayer correctly - sunset prayer guide
Maghrib opens the moment the sun fully sets, marking the transition from day to night.

What Is Maghrib Prayer?

Maghrib is the fourth of the five daily obligatory prayers, prayed immediately after sunset. The word itself means “sunset” or “the place/time of setting” in Arabic, and the prayer marks the exact boundary between daytime and nighttime worship.

Understanding how to pray Maghrib prayer correctly starts with understanding what makes it distinct: it’s the only obligatory prayer with an odd number of Fard rakats (3, rather than 2 or 4), it has the narrowest widely-followed time window of the five, and unlike Asr or Dhuhr, there’s no comfortable buffer to “get to it later” — later usually means Isha has already started.

For many Muslims, Maghrib becomes the prayer that gets rushed — right after work, right after breaking a fast, right in the middle of preparing dinner — which is exactly why having the steps clear in advance matters more here than for prayers with a longer window.

If Wudu still feels uncertain, it’s worth getting comfortable with that first — Maghrib, like every prayer, depends on it being done correctly, and a fumbled Wudu right at sunset is the fastest way to lose the window entirely.

Quranic Evidence

Maghrib falls within the general Quranic command to establish prayer across the day’s transitions, from the sun’s decline through to the darkness of night — placing it at the exact hinge between the two.

“Establish prayer at the decline of the sun until the darkness of the night, and the recitation of dawn. Indeed, the recitation of dawn is ever witnessed.” — Surah Al-Isra, 17:78

Scholars point to the phrase “until the darkness of the night” as encompassing both Maghrib and Isha, with Maghrib marking the very start of that transition. A second verse reinforces the same structure from a different angle:

“And establish prayer at the two ends of the day and at the approach of the night. Indeed, good deeds do away with misdeeds.” — Surah Hud, 11:114

This is part of why how to pray Maghrib prayer correctly is treated as more than just another prayer on the list — it’s the marker the Quran itself uses to divide day from night.

Authentic Hadith on the Virtue of Maghrib

A Clearly Defined Window

Abdullah ibn Amr narrated that the Prophet ﷺ described the time of Maghrib as lasting “as long as the twilight has not disappeared,” a narration recorded in Sahih Muslim (hadith 612) that scholars use as the primary basis for how narrow — and how clearly bounded — the Maghrib window actually is.

Praying It Without Delay

Multiple hadith describe the Prophet ﷺ consistently praying Maghrib promptly once the sun had set, without the kind of deliberate delay sometimes practiced with Isha — a pattern scholars cite as evidence that hastening to Maghrib, rather than treating it casually, reflects the authentic Sunnah.

When Maghrib Prayer Starts and Ends

Maghrib time begins the instant the sun has fully disappeared below the horizon — not when it starts setting, but when no part of the disc remains visible — and continues until the red twilight (Shafaq al-Ahmar) fades from the western sky. This is widely considered the shortest dependable window among the five daily prayers.

Start of Maghrib

Complete Sunset

The moment the entire disc of the sun has fully disappeared below the horizon, not merely when it touches it.

End of Maghrib

Disappearance of Red Twilight

When the reddish glow (Shafaq al-Ahmar) fades from the western horizon, marking the start of Isha’s window.

Worth knowing: because this window is so short, most scholars recommend praying Maghrib as promptly as possible rather than relying on the outer edge of the window — a reliable local prayer timetable is far more dependable than judging the sky by eye.
Maghrib prayer time - sunset to twilight window
Maghrib’s window runs from complete sunset to the fading of the red twilight — the shortest of the five.

How Many Rakats in Maghrib

How many rakats in Maghrib is one of the first things beginners get confused about, mostly because Maghrib is the only prayer with an odd number of obligatory rakats — but once the rakat count is clear, the rest of how to pray Maghrib prayer correctly falls into place quickly.

RakatsTypeStatus
3Fard (obligatory)Required — this is the actual Maghrib prayer that fulfills the daily obligation
2Sunnah (after the Fard)Strongly recommended, not obligatory — prayed after, not before, unlike Fajr

So the full Maghrib routine most people follow is 5 rakats total: 3 Fard first, prayed in congregation where possible, followed by 2 Sunnah individually afterward. This is the reverse order of Fajr, where the Sunnah comes first — a detail that trips up beginners who assume every prayer follows the same pattern.

How many rakats in Maghrib prayer infographic
Maghrib is 5 rakats total: 3 Fard first, then 2 Sunnah afterward.

Before You Start: Prerequisites

  • Wudu (or Tayammum if water isn’t an option). Purification is required before any Salah, Maghrib included.
  • Clean body, clothing, and prayer space. Free of visible impurity.
  • Covering (Awrah). Appropriately covered according to the rulings that apply.
  • Facing the Qiblah. Towards the Kaaba in Makkah — most prayer apps and mosques make this simple to confirm.
  • Confirming sunset has genuinely occurred. Using a reliable local timetable rather than glancing outside, since a few minutes’ error here can mean praying too early.
Not Sure If Wudu Still Feels Uncertain?

Every prayer, Maghrib included, depends on Wudu being done correctly first — and with Maghrib’s short window, fumbling it costs you time you don’t have. Start there if you want the full foundation.
Read the Wudu Guide →

↑ Back to Top

Step-by-Step Guide to Pray Maghrib

This is exactly how to pray Maghrib prayer correctly, step by step, following the general structure taught for how to perform Maghrib prayer, from the 3 Fard rakats through to the 2 Sunnah.

  1. Make Wudu. Complete purification before anything else, ideally prepared just before sunset so you’re not rushing after the adhan.
  2. Make the intention (niyyah) in your heart for the Fard Maghrib prayer as soon as the sun has fully set.
  3. Say the opening Takbir (“Allahu Akbar”) and begin the first rakat with Surah Al-Fatiha, recited aloud, followed by another surah or verses from the Quran.
  4. Complete the bowing (Ruku) and prostration (Sujud) sequence for the first rakat, then stand for the second.
  5. Repeat the recitation aloud, bowing, and prostration for the second rakat, then sit for the first Tashahhud.
  6. Stand for the third rakat and recite only Surah Al-Fatiha, this time silently, then complete the bowing and prostration.
  7. Sit for the final Tashahhud, then complete the prayer with the Salam to the right and left, ending the 3 Fard rakats.
  8. Stand and pray the 2 Sunnah rakats afterward, individually, following the standard structure of Salah with silent recitation throughout.

Don’t worry if the third rakat’s silent Al-Fatiha feels unfamiliar at first — remembering which rakats are aloud and which are silent is one of the most common early mix-ups, and it corrects itself quickly with practice.

Worth knowing: Maghrib is one of the three prayers (along with Fajr and the first two rakats of Isha) where recitation after Al-Fatiha is said aloud when praying in congregation — but only in the first two rakats; the third is always silent, regardless of whether you’re praying alone or leading others.
Step-by-step: 3 Fard rakats then 2 Sunnah rakats of Maghrib
The 3 Fard rakats come first — two recited aloud, one silently — followed by the 2 Sunnah rakats afterward.

Common Mistakes

These are the mistakes that most often stand between someone and how to pray Maghrib prayer correctly:

  • Reciting silently in the first two rakats. Maghrib’s first two Fard rakats are recited aloud — praying them silently, as in Dhuhr or Asr, is a common mix-up for beginners.
  • Adding a second surah in the third rakat. Only Al-Fatiha, recited silently, belongs in the third rakat — nothing else is required.
  • Praying the Sunnah before the Fard. Unlike Fajr, Maghrib’s 2 Sunnah rakats come after the obligatory portion, not before.
  • Delaying past the red twilight. Because the window is so short, treating Maghrib the way one might treat Dhuhr or Asr — with a relaxed sense of “later” — is the single most common way people miss it entirely.
  • Skipping the first Tashahhud sitting. Standing up directly after the second rakat’s Sujood without sitting briefly for Tashahhud breaks the correct structure of the three-rakat Fard.

None of these come from a lack of intention — Maghrib is simply the prayer most affected by its own narrow window, which makes small, fixable mistakes more common here than almost anywhere else in the five daily prayers.

Making mistakes while learning is completely normal. What matters most is your sincere intention to improve. Every prayer is another opportunity to become closer to Allah.

Common Maghrib prayer mistakes - silent recitation and timing errors
Reciting silently in the first two rakats is one of the most common Maghrib mistakes.

Practical Tips for Not Missing Maghrib

For most people, how to pray Maghrib prayer correctly isn’t a method problem — it’s a timing problem, since the window closes faster than any other prayer. These are the adjustments that tend to help most:

Prepare Early

Make Wudu before sunset

Complete Wudu a few minutes before the expected sunset time so you’re ready to pray the instant the sun has fully set, not scrambling for water afterward.

Set an Alert

Use a prayer-times app

A phone alert tied to your exact location removes the guesswork of watching the sky, especially on cloudy days when sunset is hard to judge visually.

Pause What You’re Doing

Treat it as non-negotiable

Whether it’s dinner, work, or breaking a fast, build the habit of pausing for Maghrib immediately rather than “finishing this one thing first.”

Keep a Prayer Space Ready

Reduce setup time

A prayer mat and clean space that’s already accessible removes one more delay in a prayer that doesn’t have time to spare.

Many people struggle with Maghrib simply because life doesn’t pause for sunset. Don’t become discouraged if you cut it close sometimes. Build the habit gradually, prepare a few minutes earlier each day, and ask Allah to help you remain consistent. Small improvements every day lead to lasting change.

The Wisdom Behind Maghrib

Maghrib asks for something none of the other prayers do in quite the same way: an immediate response, right as the day itself is closing. There’s no gradual window to ease into it — the sun sets, and the clock starts.

That built-in urgency reflects something deeper: Maghrib marks the day’s end being handed back to Allah before it’s handed over to the night. Its shortness isn’t an inconvenience — it’s a daily reminder that the day itself, and everything done within it, is finite and closing whether we’re ready or not. Learning how to pray Maghrib prayer correctly is as much about this daily discipline as it is about the rakats themselves.

Build the Full Salah Foundation

Wudu, Salah, and the purification guides together cover everything you need before and during prayer — explore the full set of guides. Every journey starts with one prayer. Keep learning, keep improving, and ask Allah to make it easy for you.

Read the Salah Guide
↑ Back to Top

Maghrib Checklist for Beginners

Use this quick checklist to confirm you know how to pray Maghrib prayer correctly before you begin:

  • Check a reliable local sunset time rather than guessing based on the sky.
  • Have Wudu ready a few minutes before sunset so you’re not delayed afterward.
  • Recite the first two Fard rakats aloud; keep the third silent with Al-Fatiha only.
  • Sit for Tashahhud after the second rakat, then stand for the third — don’t skip straight to Salam.
  • Pray the 2 Sunnah rakats after the Fard, not before.

Don’t aim for perfection on day one. A consistent Maghrib routine is built one sunset at a time.

Maghrib prayer checklist for beginners
A simple checklist makes praying Maghrib on time easier to stick to as a beginner.

Maghrib Prayer FAQ

Here are answers to the most common questions people ask about how to pray Maghrib prayer correctly:

How many rakats in Maghrib in total?

5 rakats total: 3 Fard (obligatory), which fulfills the daily prayer requirement, followed by 2 Sunnah (recommended) prayed afterward.

Why does Maghrib have 3 Fard rakats when most prayers have 2 or 4?

The number of rakats for each prayer was established by the Prophet ﷺ through the Sunnah and is not something scholars derive by pattern; Maghrib’s 3 rakats — two aloud, one silent — is simply how it was taught and practiced from the earliest generation onward.

Do I recite aloud or silently in Maghrib?

The first two Fard rakats are recited aloud (when praying in congregation), and the third rakat is always recited silently with Al-Fatiha only, regardless of whether you’re praying alone or leading others.

Are the 2 Sunnah rakats before or after the Fard in Maghrib?

After. This is the opposite order from Fajr, where the Sunnah comes first — in Maghrib, the 3 Fard rakats are prayed first, then the 2 Sunnah rakats follow.

How much time do I actually have to pray Maghrib?

From the moment the sun has fully set until the red twilight disappears from the western sky — widely considered the shortest window among the five daily prayers, often somewhere around 60–90 minutes depending on location and season, though checking a local timetable is far more reliable than estimating.

What happens if I miss Maghrib before the window closes?

It’s made up as Qada as soon as possible, in the same 3 Fard + 2 Sunnah structure, once Isha’s time has begun — it isn’t skipped, and most scholars hold the missed prayer should still be prayed in its original order relative to Isha where practical.

Can I combine Maghrib with Isha?

Yes, in specific circumstances such as travel, illness, or genuine necessity, according to the majority of scholars — combining Maghrib and Isha (Jam’ Taqdim or Jam’ Ta’khir) follows the same general principles as combining other adjacent prayers.

Is Maghrib prayed differently when breaking a fast?

The prayer itself is identical; the only difference is practical — many people break their fast with something light first, then pray Maghrib promptly afterward, rather than delaying the prayer for a full meal.

How do I know exactly when sunset has occurred?

A reliable local prayer timetable or mosque adhan is far more accurate than judging by eye, especially on cloudy or overcast days when the horizon isn’t clearly visible.

Can women pray Maghrib at home instead of the mosque?

Yes — praying at home is valid and, for women, is commonly considered preferable by many scholars, though praying in congregation at the mosque is also permitted and rewarded.

Can I pray Maghrib without having slept or rested that day?

Yes — Maghrib has no connection to sleep the way Fajr does; as long as you’re awake, alert, and have valid Wudu when the sun sets, the prayer is performed exactly as described regardless of how the rest of your day went.

Can I follow the steps from my phone while praying Maghrib?

It’s fine to review the steps or a translation before you begin, but avoid holding or reading from a phone during the prayer itself, since Salah requires facing the Qiblah with focus and minimal movement — memorize the sequence first, then pray.

Can I pray Maghrib behind an Imam if I joined late?

Yes — join the congregation in whatever rakat is in progress, following the Imam’s movements, and once the Imam completes the prayer with Salam, stand and complete whichever rakats you missed on your own before finishing with your own Salam.

References

  • Quran 17:78 (Surah Al-Isra) — Quran.com
  • Quran 11:114 (Surah Hud) — Quran.com
  • Hadith on the time window of Maghrib — Sahih Muslim 612 — Sunnah.com
  • IslamQA.info — fiqh questions on Maghrib timing and rulings

Final Thought

Once the rakats, the timing, and the step-by-step method are clear, the real skill with Maghrib isn’t remembering how to pray it — it’s being ready before the sun finishes setting. That’s what this Maghrib Salah guide is meant to leave you with: not just how to pray Maghrib prayer correctly, but a realistic head start on the part that actually determines whether you make it in time.

If you’ve rushed through Maghrib more evenings than not, that’s not a reason to give up on it — it’s simply where today’s habit starts from.

One unhurried Maghrib prayer can change the tone of your entire evening. Don’t wait until you feel perfect before becoming consistent. Start with today’s sunset, ask Allah for help, and keep going — even if progress feels slow.

For everyday reference, Quran.com and Sunnah.com are reliable places to revisit the verses and hadith referenced in this guide, and IslamQA.info is useful for specific fiqh questions that fall outside general guidance like this.

Every sunset is a reminder that another day has passed. Let Maghrib be the prayer that closes your day with gratitude and obedience to Allah.

Never miss your Maghrib prayer - motivation
Maghrib closes the day the way it opened at Fajr — under Allah’s watch.

Complete the Daily Prayer Foundation

Wudu, Salah, and the purification guides together — read them all to have every part of daily prayer covered.

Read the Salah Guide
↑ Back to Top

You May Also Like

Trust & Verification

Reviewed By
IslamicEduHub in-house Fiqh panel
Last Updated
August 2026
Reviewed Date / Version
v1.0 — August 2026
Sources
Quran.com, Sunnah.com, IslamQA.info
Quran References
Surah Al-Isra 17:78; Surah Hud 11:114
Hadith References
Sahih Muslim 612 (time window of Maghrib)
Reading Level
Beginner Friendly
IE

IslamicEduHub Team

Reviewed by IslamicEduHub Research Team | Based on Quran & Authentic Sunnah. Islamic education specialists who fact-check every guide against the Quran and authentic Sunnah before publishing, and update it as needed. Have a correction? Let us know.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top