Islam Q&A
Published on

Hanafi vs Shafi'i: Key Differences in Daily Practice

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

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

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

Classical Islamic study books and an open notebook in a library alcove
Open Islamic scholarly texts under warm lamplight, representing the two great Sunni schools of jurisprudence

You pray five times a day. You wash for wudu before each one. But if you have ever prayed next to a Muslim from a different background and noticed different hand positions, an extra supplication in Fajr, or a slightly different wudu rule — you have encountered the difference between the Hanafi and Shafi'i madhabs (مَذَاهِب).

These are not competing religions. They are two of the four great schools of Sunni Islamic jurisprudence, both founded by scholars of towering authority, both rooted in the same Quran and Sunnah. The differences between them are real and practically relevant — but they are differences within a shared house, not between houses.

Understanding what actually differs — and why — frees you from confusion, helps you follow your madhab with confidence, and deepens respect for a tradition of scholarly diversity that stretches back to the generation of the Companions.

What Is the Difference Between Hanafi and Shafi'i?

The Hanafi and Shafi'i schools are two of Sunni Islam's four recognized madhabs — systematic schools of Islamic jurisprudence. Founded by Imam Abu Hanifa (died 150 AH / 767 CE) and Imam Muhammad ibn Idris al-Shafi'i (died 204 AH / 820 CE) respectively, they agree entirely on theology and the five pillars. Their differences lie entirely in subsidiary fiqh (فِقْه) rulings: wudu conditions, prayer details, purification standards, and select legal matters.

Who Were the Two Imams?

Imam Abu Hanifa was born in Kufa (modern Iraq) and is considered one of the greatest jurists in Islamic history. He studied under senior Tabi'in scholars who sat with the Companions of the Prophet ﷺ. His methodology placed significant weight on rational legal reasoning (ra'y) alongside hadith, allowing careful adaptation to new circumstances. His school spread through the Abbasid Empire and became the dominant madhab across South Asia, Turkey, Central Asia, and the Balkans.

Imam al-Shafi'i was born in Gaza and studied under Imam Malik in Medina and Hanafi scholars in Baghdad before developing his independent methodology. His landmark work al-Risala established the science of usul al-fiqh (principles of Islamic jurisprudence) as a systematic discipline — a contribution that benefited all madhabs, not only his own. His school became dominant in Southeast Asia, East Africa, and parts of the Arab world.

Both imams trained generations of scholars and are counted among the imams of guidance — scholars whose level of knowledge, piety, and rigor is universally acknowledged.

The Four Sunni Madhabs at a Glance

The Hanafi and Shafi'i difference makes most sense within the full picture:

MadhabFounderMain Region Today
HanafiImam Abu Hanifa (d. 767 CE)South Asia, Turkey, Central Asia, Balkans
MalikiImam Malik ibn Anas (d. 795 CE)North & West Africa, parts of Gulf
Shafi'iImam al-Shafi'i (d. 820 CE)Southeast Asia, East Africa, parts of Arab world
HanbaliImam Ahmad ibn Hanbal (d. 855 CE)Saudi Arabia, Qatar, parts of Gulf

All four schools are considered valid within Sunni orthodoxy. Following any of them means following a recognized scholarly tradition rooted in the Quran and Sunnah.

If you want to understand the broader framework underlying these schools, what is fiqh in Islam is the right starting point.

Key Practical Differences: Hanafi vs Shafi'i

For daily Islamic life, the most consequential differences fall into these areas:

IssueHanafiShafi'i
Touching opposite gender (wudu)Does not break wuduBreaks wudu (direct skin contact with non-mahram)
Bismillah in prayerRecited silently before FatihaRecited aloud (opening of Fatiha in many positions)
Qunut supplicationIn Witr prayer (after ruku)In every Fajr prayer (before or after ruku)
Hand position in prayerMen: below navel; Women: on chestBoth: on chest (above navel)
Combining prayers while travelingGenerally not permitted (shorten only)Permitted during genuine travel
Dog impurityOnly saliva is impureEntire body — requires 7 washes, one with dirt
Intention (niyyah)Mental; verbal is mustahabb (recommended)Mental intention; verbal not required

These differences come from the two imams weighing the same authentic hadiths differently — not from using different sources.

Your personal 28-Day Deen Plan

Learn your deen in 28 days, 5 minutes a day

The essentials of salah, fiqh and faith, step by step from authentic sources. Finish all 28 days and earn a verifiable Certificate of Completion.

Take the free quiz

Answer a few questions and get your personal plan.

Sample DeenUp Certificate of Completion

Wudu: The Most Practically Important Difference

If you follow the Shafi'i madhab, your wudu is broken by any direct skin-to-skin contact with a non-mahram of the opposite gender — including an accidental touch. This ruling comes from the Shafi'i interpretation of Surah Al-Maidah:

يَا أَيُّهَا الَّذِينَ آمَنُوا إِذَا قُمْتُمْ إِلَى الصَّلَاةِ فَاغْسِلُوا وُجُوهَكُمْ

"O you who have believed, when you rise to prayer, wash your faces..." — (Surah Al-Maidah, 5:6)

The Shafi'i school reads lamastum al-nisa' in the same verse as referring to physical contact; the Hanafi school reads it as intercourse.

If you follow the Hanafi madhab, touching your spouse does not break your wudu. The obligatory elements of wudu — the parts of the body washed, the number of times — are virtually the same between the two schools. It is the conditions that invalidate wudu that differ most significantly.

For married couples, parents lifting young children, doctors, and nurses, this difference has daily practical weight. Knowing your madhab's ruling protects the validity of your prayer.

Prayer: Bismillah, Qunut, and Hand Position

Bismillah in Prayer

In the Shafi'i madhab, bismillah (بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ — "In the name of Allah, the Most Gracious, the Most Merciful") is recited aloud as part of Surah Al-Fatiha in every rakah. In the Hanafi madhab, it is recited silently. Both positions are based on hadith from Sahih collections with different chains and contextual readings.

Qunut in Fajr

If you attend a Shafi'i-led Fajr prayer, you will hear or participate in a qunut supplication after ruku in the second rakah. In the Hanafi madhab, there is no qunut in Fajr — it belongs in Witr prayer. If you pray behind an imam from the other school, your prayer remains valid.

The qunut text commonly recited in the Shafi'i madhab:

اللَّهُمَّ اهْدِنِي فِيمَنْ هَدَيْتَ

"O Allah, guide me among those You have guided." — (Abu Dawud 1425)

Hand Position

In the Hanafi school, men fold their hands below the navel during qiyam (standing); in the Shafi'i school, the hands rest on the chest. Both reflect different hadiths on the Prophet's ﷺ hand placement. Praying sunnah prayers consistently builds the habit of either position until it becomes second nature.

If you want a step-by-step guide to the full prayer, take the free DeenUp quiz to get a personalized plan for building your daily salah practice.

Why Scholars Differ — and Why That Is Permitted

The Prophet ﷺ said:

"The scholars are the heirs of the prophets. The prophets did not leave behind gold and silver — they left behind knowledge. Whoever takes it has taken a great share." — (Sunan Ibn Majah 223)

The four madhabs represent that inheritance applied systematically across centuries. When Imam Abu Hanifa and Imam al-Shafi'i reached different conclusions from the same evidence, it was not a failure — it was the natural result of two towering intellects applying rigorous methodology to authentic materials.

The differences between them exist because Islamic jurisprudence is an exercise of scholarly judgment (ijtihad), not divine infallibility. Each imam was doing precisely what the Quran calls for: applying deep knowledge, piety, and reasoning to serve the ummah.

Understanding what sunnah means in Islam helps clarify why hadiths can legitimately yield different rulings: authenticity, chain, context, and application all require scholarly weighing.

Following Your Madhab with Consistency

Scholars generally advise following one madhab consistently in worship. This prevents talfiq — mixing rulings from different schools in a self-serving way. If Shafi'i says touching your spouse does not break wudu but Hanafi gives you a more convenient ruling on something else, alternating between them to maximize convenience undermines the integrity of either system.

DeenBack's guide on building consistent Islamic habits makes the same point from a habit-formation angle: internal consistency is what produces deep practice.

Demi Manifest's reflection on cultivating wisdom in daily life adds to this: wisdom grows from committed practice within a tradition, not from constantly re-evaluating the foundation.

For detailed rulings on specific situations — combining prayers while traveling, handling the dog impurity question, what breaks wudu during surgical procedures — SeekersGuidance publishes extensively on both madhabs at a practical scholarly level. Yaqeen Institute covers the theological and historical dimensions.

Common Questions

Can I follow the Hanafi position on wudu but the Shafi'i qunut?

Scholars caution against mixing madhabs to pick the more convenient ruling each time (talfiq). If you have a genuine need — you are living in a Shafi'i-dominant community and want to pray correctly with them — consulting a qualified scholar about how to handle specific differences is the right approach.

What about the full prayer guide — does it specify a madhab?

General prayer guides present the shared core of salah. For madhab-specific rulings (hand position, qunut, recitation), you should supplement with resources specific to your school.

What if I do not know my madhab?

This is common for many converts and second-generation Muslims in Western countries. The simplest starting point: identify the ethnic or regional background of the mosque you attend most. South Asian communities generally follow Hanafi; Southeast Asian communities generally follow Shafi'i.

The Deeper Point

The Hanafi and Shafi'i difference is not a problem to be resolved — it is a feature of an intellectually honest scholarly tradition. Where evidence permits more than one reading, the ummah benefits from more than one carefully considered answer.

The Prophet ﷺ himself permitted different practices among the Companions on specific questions. The emergence of four great madhabs continued that tradition with rigorous systematization.

Your task is simpler: know your madhab, follow it with consistency, treat those from other schools with respect, and use the differences — where you encounter them — as a window into the depth of Islamic scholarship rather than a source of confusion.

Take the DeenUp quiz to build a personalized plan for strengthening your daily Islamic practice — from prayer to Quran reading to daily dhikr, grounded in authentic scholarship.

Your personal 28-Day Deen Plan

Learn your deen in 28 days, 5 minutes a day

The essentials of salah, fiqh and faith, step by step from authentic sources. Finish all 28 days and earn a verifiable Certificate of Completion.

Take the free quiz

Answer a few questions and get your personal plan.

Sample DeenUp Certificate of Completion

Frequently Asked Questions

What is the main difference between Hanafi and Shafi'i?

The Hanafi and Shafi'i madhabs share the same core beliefs and five pillars of Islam. Their differences are in subsidiary rulings: wudu conditions (touching the opposite gender), prayer details (hand placement, bismillah recitation, qunut), and rules on combining prayers while traveling. Both are equally valid within Sunni Islam.

Does touching a woman break wudu in both madhabs?

In the Shafi'i madhab, direct skin contact with a non-mahram of the opposite gender breaks wudu. In the Hanafi madhab, touching a woman does not break wudu unless accompanied by physical desire. This is one of the most practically significant differences for married couples and those in healthcare.

Which madhab is most widely followed globally?

The Hanafi madhab is the most widely followed globally, predominating in South Asia (Pakistan, India, Bangladesh), Turkey, Central Asia, and the Balkans. The Shafi'i madhab is most prevalent in Southeast Asia (Indonesia, Malaysia), East Africa (Kenya, Tanzania), and parts of the Arab world including Egypt and Yemen.

Can I pray behind an imam from a different madhab?

Yes. Scholars across all four madhabs agree that praying behind an imam of a different school is valid. Secondary differences — such as whether the imam recites Bismillah aloud — do not invalidate the prayer of those behind him. The ummah's unity in salah transcends differences in subsidiary rulings.

Is one madhab more correct than the other?

Neither madhab is more correct. Both Hanafi and Shafi'i are established schools based on Quran and Sunnah, with continuous chains of scholarship from the Companions. Following either is fully valid within Sunni Islam. Classical scholars from both traditions are counted among the greatest jurists in Islamic history.

What is qunut and how do the two madhabs differ on it?

Qunut is a supplication recited standing in prayer. The Shafi'i madhab requires qunut in every Fajr prayer — after straightening from ruku in the second rakah — as a confirmed sunnah. The Hanafi madhab prescribes qunut in Witr prayer, recited after ruku in the final rakah. Both rulings are rooted in authentic hadiths.

Can I change my madhab?

Changing your madhab is not forbidden. Many scholars advise following one school consistently in worship to maintain internal coherence. What scholars caution against is madhab-shopping — moving between schools to find the most convenient ruling at any given moment. If you change, do so after proper study, not for convenience.