How Many Rakats in Each Prayer?

The five daily prayers have 17 fard rakats in total: Fajr 2, Dhuhr 4, Asr 4, Maghrib 3 and Isha 4.

Last updated:

Rakat at a Glance

A quick-reference guide to fard and sunnah rakat for all five daily prayers, plus Witr, Taraweeh, Duha and Tahajjud. The table shows fard (obligatory) rakat and the confirmed (mu’akkadah) sunnah rakat prayed before and after each fard. Items marked * are recommended in some madhhabs but not universally confirmed — see the notes and the per-prayer sections below.

Table of rakats in each of the five daily prayers: fard, sunnah before, sunnah after, Witr and total
PrayerFardSunnah beforeSunnah afterWitrTotal
Fajr22——4
Dhuhr442—10
Asr4—*——4
Maghrib3—2—5
Isha4—*239

* The Hanafi school additionally recommends 4 rakat (ghayr mu’akkadah, not confirmed sunnah) before Asr and before Isha. Other schools don’t treat these as established sunnah in the same way. “Total” counts the fard, the confirmed sunnah and Witr: 17 fard + 12 confirmed sunnah + 3 Witr = 32 rakat a day.

Other Prayers: Jumu’ah, Eid, Witr, Taraweeh, Duha, Tahajjud

Rakats in Jumu’ah, Eid, Witr, Taraweeh, Duha and Tahajjud
PrayerRakatNote
Jumu'ah (Friday)2 fard (in place of Dhuhr)Sunnah after: commonly 4, or 2 at home; the Hanafi school adds 4 before and prays 4 after.
Eid2With extra takbirat; no adhan or iqamah.
Witr1, 3, 5, 7, 9 or 113 is the most common; Wajib in the Hanafi school, confirmed sunnah in the others.
Taraweeh8 or 20Prayed in sets of 2, then Witr. Both counts are practised.
Duha2 minimum, commonly 4, up to 8Voluntary (nafl), after sunrise until just before Dhuhr.
Tahajjud / QiyamSets of 2, no fixed limitThe Prophet's own night prayer is described as 11 rakat.

How to Avoid Losing Count

Knowing the number is the easy part; holding it while you pray is harder. Prayer Memory keeps the count for you: a silent haptic pulse on Apple Watch, or a simple tap counter on your phone. It works offline and needs no account. Download it on the App Store or Google Play.

Fajr: How Many Rakats?

Fajr has 2 fard rakat, prayed out loud (jahriyyah). Before the fard, 2 confirmed sunnah rakat are prayed — a hadith describes these two rakat as better than the world and everything in it, so they’re rarely skipped even when short on time.

Dhuhr: How Many Rakats?

Dhuhr has 4 fard rakat, prayed silently. The widely-known sunnah pattern is 4 confirmed rakat before the fard and 2 confirmed rakat after — part of the 12-rakat daily sunnah mentioned in hadith.

Asr: How Many Rakats?

Asr has 4 fard rakat, prayed silently, with no confirmed sunnah attached to it in most schools. The Hanafi school is the main exception: it recommends (but does not treat as confirmed) 4 rakat before the Asr fard.

Maghrib: How Many Rakats?

Maghrib has 3 fard rakat — the only obligatory prayer with an odd number of fard rakat, prayed out loud for the first two. It’s followed by 2 confirmed sunnah rakat.

Isha: How Many Rakats?

Isha has 4 fard rakat, prayed out loud, followed by 2 confirmed sunnah rakat, and then Witr (see below).

Witr: How Many Rakats and How to Pray It

Witr is prayed after Isha, in an odd number of rakat — most commonly 3, though scholars also describe 1, 5, 7, 9 or 11.

How you pray those 3 rakat differs by madhhab. The Hanafi school treats Witr as wajib and prays all 3 rakat joined together in one unit, with a tashahhud after the second rakah (like Maghrib) before standing for the third, then a final tashahhud and salam — with qunut recited in the third rakah. The Shafi’i, Maliki and Hanbali schools consider Witr a strongly confirmed sunnah (not obligatory), and more commonly pray it as 2 rakat followed by a separate single rakah, rather than joining all three together.

Taraweeh: 8 or 20 Rakats?

This is one of the most-asked questions about Ramadan prayer, and both numbers are legitimately practiced today.

8 rakat (plus 3 Witr, totalling 11) is based on a hadith of Aisha (Sahih al-Bukhari and Sahih Muslim) describing the Prophet ﷺ’s night prayer, in Ramadan and outside it, as not exceeding 11 rakat — though each rakah was prayed at length. 20 rakat reflects the practice later established under Umar ibn al-Khattab, when the congregation was gathered behind a single imam, and this became the more widespread congregational practice across much of the Muslim world, especially in the Hanafi and Shafi’i traditions.

Neither number is “more valid” than the other — they reflect different, well-established strands of practice. Many people simply follow what their local mosque or madhhab observes.

Duha: How Many Rakats?

Duha (also called Ishraq) is prayed after sunrise, once the sun has fully risen, until just before the sun reaches its zenith. The minimum is generally said to be 2 rakat, most commonly prayed as 4, and some narrations mention higher counts such as 8 — a narration mentioning 12 rakat is also cited by some, though many scholars grade it as weak. It’s a flexible, recommended (nafl) prayer rather than a fixed obligation.

Tahajjud / Qiyam al-Layl: How Many Rakats?

Tahajjud (night prayer) has no fixed count — it’s prayed in sets of 2 rakat, for as long as you’re able, then closed with Witr if you haven’t already prayed it. As noted above, the Prophet ﷺ’s own night prayer is described as not exceeding 11 rakat total, though this reflects his personal practice rather than an upper limit for everyone.

Frequently Asked Questions

Never lose count again

From 2 rakat of Duha to 20 of Taraweeh, Prayer Memory keeps the count so you don’t have to.

Praying Taraweeh at home this Ramadan? Here’s how to keep count without an imam. Lost track mid-prayer? See what sajdah sahw fixes. Choosing an app? Compare rakat counter apps.