Maghrib prayer has 3 obligatory rakats and additional sunnah units in the Hanafi school. Learn the full rakat breakdown for Maghrib in this simple guide.

Rakat in Maghrib Prayer

IN THIS ARTICLE  🔗
SUMMARY 💡
Rakat in Maghrib Prayer
⭐ ⭐ ⭐ ⭐ ⭐
Download app button for Google and Apple
Learn All You Must
Know as a Muslim
TRY APP NOW 📱
Answer 5 fard ayn (obligatory) questions that every Muslim must know.
Explore Jibreel App 📱
Practice with certainty
LAST UPDATED:
07 September 2025

Maghrib prayer is one of the five daily prayers performed by Muslims. It is prayed right after sunset. In this simple guide, you'll clearly learn how many rakats you should pray for Maghrib according to the Hanafi madhab.

Number of Rakats in Maghrib Prayer (Hanafi)

In the Hanafi school, the Maghrib prayer includes:

  • 3 Fard rakats (Obligatory)
  • 2 Sunnah rakats (Highly recommended)
  • Optional Nafl rakats (Extra voluntary prayers)

What Does Each Type of Rakat Mean?

  • Fard: These are obligatory rakats. Every Muslim must pray these.
  • Sunnah: These are rakats the Prophet Muhammad (peace be upon him) regularly performed and strongly recommended.
  • Nafl: These are extra rakats you can pray if you want additional rewards. They are completely optional and usually done in sets of two.

How to Perform Maghrib Prayer (Simple Steps)

Here's exactly how you should perform the Maghrib prayer:

1. Pray 3 Fard Rakats

  • These are prayed immediately after the time for Maghrib starts (right after sunset).
  • In a group prayer, the Imam recites out loud in the first two rakats, and silently in the third.
  • If you're praying alone, you can quietly recite all three rakats.
  • End with Salam (turning your head to the right and left saying "As-salamu alaykum wa rahmatullah").

2. Pray 2 Sunnah Rakats

  • These two rakats are strongly recommended after finishing the obligatory prayer.
  • Perform these silently and on your own.
  • Finish with Salam.

3. Optional Nafl Rakats (Salat al-Awwabin)

  • You can pray additional optional rakats after the Sunnah.
  • Many people pray 4 extra rakats (making 6 rakats in total after the Fard).
  • These rakats are optional and prayed silently.

Is There a Sunnah Before Maghrib?

In the Hanafi school, there are no sunnah rakats before Maghrib prayer. You should start praying your 3 obligatory rakats immediately after sunset.

Summary of Maghrib Rakats (Hanafi)

  • Fard: 3 rakats (obligatory)
  • Sunnah: 2 rakats after Fard (recommended)
  • Nafl: Optional extra rakats after Sunnah

By following this simple guide, you can easily perform Maghrib prayer correctly according to the Hanafi school. May Allah accept your prayers!

SOURCES & REFERENCES 🔗
Cards showing examples of lessons inside the Jibreel app
Learn All You Need To Know in 5 mins a Day
Download app button for Google and ApplePractice with certainty

Our Scholars

Image of our scholar Sheikh Hilal Patel
Sheikh Hilal Patel
FIQH EXPERT & scholar

Sheikh Hilal Patel began his studies at Darul Ulum al-Arabiyyah al-Islamiyyah in Bury where he memorised the Qur'an & completed the Alimiyyah program.

He went on to complete the Ifta' Specialisation Program (the process of becoming a Mufti and have the ability to give fatwas) at the world-class Whitethread Institute.

Sheikh Hilal works for Whitethread's Fatwa Centre under Dr Mufti Abdur-Rahman Mangera, Founder & Dean of Whitethread Institute and listed as one of the 500 Most Influential Muslims in the world.

Image of our scholar Sheikh Zayd Mehtar
Sheikh Zayd Mehtar
FIQH EXPERT & scholar

Sheikh Zayd Mehtar memorised the Qur’an at a young age at Darul Uloom Bury and went on to master the ten modes of Qur’anic recitation (Qirā’āt).

He went on to complete advanced programmes in Islamic Theology and Jurisprudence at the world-class Whitethread Institute under Dr Mufti Abdur-Rahman Mangera.

Sheikh Zayd has served as an imam for many years and is an experienced teacher of Islamic theology (ʿAqīdah), Qur’an, and Hadith, guiding students and communities in their understanding and practice of Islam

Image of the logo of whitethread institute
Know Your Islamic BASICS? FIND OUT NOW 🧪
Point Phone
Camera Here
Know YOUR Basics?
Find Out In 60 Seconds
5 common questions EVERY Muslim should know.
I'LL RISK NOT KNOWING
CLOSE

Question 1 of 5Which of the following is a requirement for Ghusl to be valid?

Starting with Bismillah
Doing a complete wudu
Setting intention to do ghusl
Rinsing the nose
Wash the entire body 3x

Question 2 of 5Ahmed is from the UK and is visiting his family in Palestine for 3 weeks. How should he pray?

Shorten and combine prayers for the duration of the visit
Pray normally (not shorten or combine)
Shorten prayers up until 15 days then pray normally
Only shorten prayers during the journey. Pray normally upon arrival in Palestine.

Question 3 of 5What is the minimum distance a person must intend to travel to make them a traveller?

42 miles from their residence
42 miles outside their city boundary
48 miles from their residence
48 miles outside of their city boundary

Question 4 of 5You are a traveller according to Hanafi fiqh and are feeling energetic, how should you pray?

Pray the full four rakats
Shorten prayers to 2 rakats
Shorten prayers to 2 rakats and combine in one prayer time
Pray the full four rakats and sunnah prayers

Question 5 of 5You're praying salah at an airport and you lay your jacket with your wallet beside you. Your wallet only has £5 inside and you see someone taking your wallet. Can you break your salah to stop them?

Yes
No
Your Score: Urgent Attention ⚠️
0%

You're leaving your faith to guesswork. Don't risk your akhira.

Learn the essentials now - and worship with lifelong confidence.