Hanafi
12 rak’ahsTwo before Fajr, four before Dhuhr, two after Dhuhr, two after Maghrib and two after Isha — twelve.
Choose a prayer and a school and this breaks the rak’ahs down into fard, confirmed sunnah, unconfirmed sunnah, nafl and Witr. The four schools agree on every fard count and differ genuinely on the rest, so each school is given its own figures rather than one set being presented as the answer.
The fard count is the same whichever you pick. Everything around it is what changes.
| Part | Rak’ahs |
|---|---|
| Sunnah mu'akkadah before | 2 |
| The prayer itself — Fard | 2 |
| Total rak’ahs | 4 |
Of which obligatory
2
Of which voluntary
2
Recitation: Recited aloud
What this school holds
The two rak’ahs before Fajr are the most emphasised of all the confirmed sunnah prayers. If the fard was joined in progress, the Hanafi school allows them to be prayed after sunrise, before Dhuhr.
Ten questions on rak’ah counts, drawn from the school selected above. Your score is kept in this browser only.
This round
0
Best round
0
Rounds played
0
Scores are stored in this browser and are never sent anywhere. Clearing your browser data removes them.
Read a row across to compare the schools, or down a column to see one school’s day. The Isha row includes Witr, because Witr is prayed after Isha.
Prints the full chart on one sheet — every prayer, every school. Choose "Save as PDF" in the print dialog to keep a copy.
| Prayer | Hanafi | Shafi'i | Maliki | Hanbali |
|---|---|---|---|---|
| Fajr | 4 (Fard 2) | 4 (Fard 2) | 4 (Fard 2) | 4 (Fard 2) |
| Dhuhr | 12 (Fard 4) | 12 (Fard 4) | 12 (Fard 4)no fixed count | 12 (Fard 4) |
| Asr | 8 (Fard 4) | 8 (Fard 4) | 8 (Fard 4)no fixed count | 8 (Fard 4) |
| Maghrib | 7 (Fard 3) | 7 (Fard 3) | 5 (Fard 3)no fixed count | 7 (Fard 3) |
| Isha | 17 (Fard 4) | 11 (Fard 4) | 9 (Fard 4)no fixed count | 11 (Fard 4) |
| Jumu'ah | 14 (Fard 2) | 10 (Fard 2) | 4 (Fard 2)no fixed count | 6 (Fard 2)no fixed count |
| Taraweeh | 23 (Sunnah mu'akkadah 20) | 23 (Sunnah mu'akkadah 20) | 23 (Sunnah mu'akkadah 20) | 23 (Sunnah mu'akkadah 20) |
| Eid | 2 (Wajib 2) | 2 (Sunnah mu'akkadah 2) | 2 (Sunnah mu'akkadah 2) | 2 (Fard kifayah 2) |
| Witr | 3 (Wajib 3) | 3 (Sunnah mu'akkadah 3) | 3 (Sunnah mu'akkadah 1) | 3 (Sunnah mu'akkadah 3) |
Witr is counted on the Isha row because that is when it is prayed. It also has a row of its own, since the schools disagree about it more than about anything else here.
Taraweeh appears only in Ramadan, and Eid twice a year. They are included so the chart is complete.
| School | Sunnah mu'akkadah before | Sunnah ghayr mu'akkadah before | The prayer itself | Sunnah mu'akkadah after | Sunnah ghayr mu'akkadah after | Nafl | Witr | Total |
|---|---|---|---|---|---|---|---|---|
| Fajr | ||||||||
| Hanafi | 2 | — | 2Fard | — | — | — | — | 4 |
| Shafi'i | 2 | — | 2Fard | — | — | — | — | 4 |
| Maliki | 2 | — | 2Fard | — | — | — | — | 4 |
| Hanbali | 2 | — | 2Fard | — | — | — | — | 4 |
| Dhuhr | ||||||||
| Hanafi | 4 | — | 4Fard | 2 | — | 2 | — | 12 |
| Shafi'i | 2 | 2 | 4Fard | 2 | 2 | — | — | 12 |
| Malikino fixed count | — | 4 | 4Fard | — | 4 | — | — | 12 |
| Hanbali | 2 | 2 | 4Fard | 2 | 2 | — | — | 12 |
| Asr | ||||||||
| Hanafi | — | 4 | 4Fard | — | — | — | — | 8 |
| Shafi'i | — | 4 | 4Fard | — | — | — | — | 8 |
| Malikino fixed count | — | 4 | 4Fard | — | — | — | — | 8 |
| Hanbali | — | 4 | 4Fard | — | — | — | — | 8 |
| Maghrib | ||||||||
| Hanafi | — | — | 3Fard | 2 | — | 2 | — | 7 |
| Shafi'i | — | 2 | 3Fard | 2 | — | — | — | 7 |
| Malikino fixed count | — | — | 3Fard | — | 2 | — | — | 5 |
| Hanbali | — | 2 | 3Fard | 2 | — | — | — | 7 |
| Isha | ||||||||
| Hanafi | — | 4 | 4Fard | 2 | — | 4 | 3 | 17 |
| Shafi'i | — | 2 | 4Fard | 2 | — | — | 3 | 11 |
| Malikino fixed count | — | — | 4Fard | — | 2 | — | 3 | 9 |
| Hanbali | — | 2 | 4Fard | 2 | — | — | 3 | 11 |
| Jumu'ah | ||||||||
| Hanafi | 4 | — | 2Fard | 4 | 2 | 2 | — | 14 |
| Shafi'i | 2 | 2 | 2Fard | 2 | 2 | — | — | 10 |
| Malikino fixed count | — | — | 2Fard | — | 2 | — | — | 4 |
| Hanbalino fixed count | — | — | 2Fard | — | 4 | — | — | 6 |
| Taraweeh | ||||||||
| Hanafi | — | — | 20Sunnah mu'akkadah | — | — | — | 3 | 23 |
| Shafi'i | — | — | 20Sunnah mu'akkadah | — | — | — | 3 | 23 |
| Maliki | — | — | 20Sunnah mu'akkadah | — | — | — | 3 | 23 |
| Hanbali | — | — | 20Sunnah mu'akkadah | — | — | — | 3 | 23 |
| Eid | ||||||||
| Hanafi | — | — | 2Wajib | — | — | — | — | 2 |
| Shafi'i | — | — | 2Sunnah mu'akkadah | — | — | — | — | 2 |
| Maliki | — | — | 2Sunnah mu'akkadah | — | — | — | — | 2 |
| Hanbali | — | — | 2Fard kifayah | — | — | — | — | 2 |
| Witr | ||||||||
| Hanafi | — | — | 3Wajib | — | — | — | — | 3 |
| Shafi'i | — | — | 3Sunnah mu'akkadah | — | — | — | — | 3 |
| Maliki | 2 | — | 1Sunnah mu'akkadah | — | — | — | — | 3 |
| Hanbali | — | — | 3Sunnah mu'akkadah | — | — | — | — | 3 |
All four schools give the same fard count: Fajr 2, Dhuhr 4, Asr 4, Maghrib 3, Isha 4, Jumu’ah 2 and Eid 2. Every difference in the chart is in the voluntary prayers around the fard, or in Witr — which tells you the differences shown elsewhere are real ones and not an artefact of how the table was built.
The four schools agree on this list. The imam recites aloud in the prayers marked below, and a person praying alone follows the same pattern. Al-Fatiha is recited in every rak’ah either way; what changes is whether it is heard.
| Prayer | Recitation |
|---|---|
| Fajr | Recited aloud |
| Dhuhr | Recited silently |
| Asr | Recited silently |
| Maghrib | Aloud in the first two rak’ahs, silently after |
| Isha | Aloud in the first two rak’ahs, silently after |
| Jumu'ah | Recited aloud |
| Taraweeh | Recited aloud |
| Eid | Recited aloud |
| Witr | Aloud when led in congregation, otherwise silently |
The third rak’ah of Maghrib and the third and fourth of Isha are silent, as is the whole of Dhuhr and Asr. All the sunnah and nafl prayers of the day are recited silently. Someone praying voluntary prayers alone at night may recite aloud or quietly as they prefer.
Adding up the confirmed sunnah rak’ahs of the five daily prayers is the difference people run into first, and it is a real one.
Two before Fajr, four before Dhuhr, two after Dhuhr, two after Maghrib and two after Isha — twelve.
Two before Fajr, two before Dhuhr, two after Dhuhr, two after Maghrib and two after Isha — ten. A further two before Dhuhr, two after it, four before Asr, two before Maghrib and two before Isha are encouraged without being confirmed.
The Maliki school does not keep a list of confirmed rawatib at all, so the figure here is not a smaller version of the other schools’ list. Only the two rak’ahs before Fajr are singled out, as a raghiba — the highest rank of voluntary prayer in the school. Everything else around the fard is encouraged voluntary prayer with no fixed count.
Two before Fajr, two before Dhuhr, two after Dhuhr, two after Maghrib and two after Isha — ten, the same list as the Shafi’i school. Four before Asr, two before Maghrib, two before Isha and two more on each side of Dhuhr are encouraged without being confirmed.
Witr is where the schools part company completely — not only on how many rak’ahs, but on whether leaving it is a sin.
Wajib — an obligation just below fard, which must be made up if missed. Three rak’ahs joined with a single salam and one final sitting, with Du’a al-Qunut recited standing in the third rak’ah before the ruku, after a takbir with the hands raised.
Sunnah mu’akkadah, never wajib. One rak’ah at the least and eleven at the most; three is the common practice, prayed as two with a salam and then one. Qunut is recited after the ruku of the last rak’ah in the second half of Ramadan.
Sunnah mu’akkadah, and one rak’ah only. It is preceded by the shaf’ — two rak’ahs with their own salam — so three are prayed in total, but as two prayers rather than one. There is no qunut in Witr in this school; qunut belongs to Fajr.
Sunnah mu’akkadah, and the most emphasised of the voluntary prayers. One rak’ah is enough and three is the usual practice, prayed as two and then one. Qunut is recited after the ruku of the last rak’ah throughout the year.
Twenty rak’ahs is the transmitted figure in all four schools. It rests on the practice established under Umar ibn al-Khattab in the mosque of Madinah and continued there and in the Haramayn for centuries. The Maliki books also record the later Madinan practice of thirty-six.
Eight rak’ahs followed by Witr is argued from Aisha’s report that the Prophet did not exceed eleven rak’ahs at night in Ramadan or outside it. It is the practice of a great many mosques today and has been defended by qualified scholars.
Both are defended by people who know the evidence, and neither is an innovation. Taraweeh is a voluntary prayer in every school, so the number is not something a person is held to: length and concentration matter more than the count. Pray with the congregation you are in.
Every rak’ah of every prayer runs through the same positions in the same order. Only the recitation after al-Fatiha and the sittings change.
| Position | What is said |
|---|---|
| 1.Standing (qiyam) | The intention is settled in the heart. No formula has to be spoken. |
| 2.Takbirat al-Ihram | “Allahu akbar”, with the hands raised. The prayer has now begun. |
| 3.Opening supplication | The istiftah — “Subhanaka Allahumma…” or “Wajjahtu wajhiya…”, said quietly. The Maliki school leaves it out. |
| 4.Seeking refuge and the basmala | “A’udhu billahi min ash-shaytan ir-rajim”, then “Bismillah ir-Rahman ir-Rahim”. |
| 5.Al-Fatiha | Recited in every single rak’ah, without exception. |
| 6.A surah or some verses | Added in the first two rak’ahs only. Any part of the Qur’an may be used. |
| 7.Ruku | “Allahu akbar”, then bowing: “Subhana Rabbiyal Azim”, three times. |
| 8.Rising from ruku | “Sami’a Allahu liman hamidah” while rising, then “Rabbana wa lakal hamd” standing. |
| 9.First prostration | “Allahu akbar”, then in sujud: “Subhana Rabbiyal A’la”, three times. |
| 10.Sitting between the prostrations | “Allahu akbar”, then “Rabbighfir li” — my Lord, forgive me. |
| 11.Second prostration | “Allahu akbar”, then “Subhana Rabbiyal A’la”, three times. |
| 12.Rising | “Allahu akbar”, and stand for the next rak’ah — or sit, if this was the second or the last. |
This is the shape of the prayer, not a substitute for being taught it. Learn the recitations from someone who can correct your pronunciation.
Fajr is two fard rak’ahs, Dhuhr four, Asr four, Maghrib three and Isha four. Jumu’ah is two and Eid is two. No school disputes any of this, and no school considers another’s practice invalid over the voluntary prayers. The disagreements on this page are about what is added around the fard and about Witr, and each of them is old, well documented and settled within its own school.
Mosque practice varies with the school the community follows and with local custom, and the numbers on this page describe schools rather than any particular mosque. In congregation you follow the imam. If your mosque prays eight rak’ahs of Taraweeh and this page shows twenty, the mosque is not wrong — it is following a different, defensible position. Ask your local imam before changing what you do.
Two fard rak’ahs, in all four schools. Two confirmed sunnah rak’ahs are prayed before them, which makes four in total. Those two are the most emphasised voluntary rak’ahs of the day in every school, and the Hanafi school allows them to be made up after sunrise if the fard was joined in progress.
Four fard rak’ahs, in all four schools. The total including the voluntary prayers comes to twelve in each school, but the composition differs: the Hanafi school prays four confirmed before and two after, then two nafl, while the Shafi’i and Hanbali schools count two confirmed before and two after with a further two on each side as encouraged. The Maliki school fixes no binding number.
Four fard rak’ahs, in all four schools. Four rak’ahs before it are encouraged in all four but confirmed in none, so nothing is owed if they are left, giving eight in total. Nothing is prayed after Asr: voluntary prayer is held back until the sun has set.
Three fard rak’ahs, in all four schools — the only prayer with an odd number of obligatory rak’ahs during the day. Two confirmed sunnah rak’ahs follow it everywhere. The Hanafi total is seven, counting two further nafl; the Shafi’i and Hanbali totals are also seven, counting two light rak’ahs between the adhan and the iqamah, which the Hanafi school does not pray.
Four fard rak’ahs, in all four schools. Totals differ widely because Witr is prayed afterwards and the schools rank it differently: seventeen in the standard Hanafi chart, eleven in the Shafi’i and Hanbali, nine in the Maliki. Strip the voluntary prayers away and the obligation is four rak’ahs everywhere, with three more that are wajib in the Hanafi school only.
Three in the Hanafi school, joined with a single salam and one final sitting, and wajib — an obligation just below fard that must be made up if missed. The other three schools call it sunnah mu’akkadah. The Maliki school prays one rak’ah of Witr after a separate two-rak’ah shaf’, so three are prayed but as two prayers. The Shafi’i and Hanbali schools accept one rak’ah as sufficient and eleven as the most, with three the common practice.
The counts here follow the standard manuals of each school. Where a school records more than one figure — the Hanafi difference over Jumu’ah, the Maliki thirty-six for Taraweeh — both are shown rather than one being chosen. No hadith numbers are quoted on this page: a wrong reference is worse than none, and every count here is checkable in the school’s own books.