- Published on
Does Passing Gas Break Your Prayer? The Clear Islamic Answer
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • Deen Back
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

Passing gas during prayer breaks your prayer. Full stop.
This is one of the clearest rulings in Islamic jurisprudence, with near-unanimous scholarly agreement across all four major schools of thought. If gas passes — whether you hear it, feel it, or smell it — your wudu is broken, and with it, your prayer.
What matters more than the ruling itself is knowing exactly what to do when it happens, and how to keep the doubt and anxiety that sometimes follows from making your prayer life unnecessarily difficult.
The Evidence
The Prophet Muhammad ﷺ was direct and unambiguous on this point:
"Allah does not accept the prayer of anyone who has passed wind until he performs wudu."
— (Sahih Bukhari 135, Sahih Muslim 225)
This hadith establishes two things: passing gas (rih) breaks wudu, and broken wudu invalidates prayer. There is no school of thought that disagrees with the core ruling.
The Prophet also described the relevant signs that establish certainty:
"If one of you feels something in his stomach and is not certain whether something came out or not, he should not leave the prayer unless he hears a sound or detects a smell."
— (Sahih Muslim 362)
This second hadith is equally important. It addresses the flip side: when you are uncertain, you should not act as if gas passed. The default is that your wudu and prayer are intact. You need one of two confirmed signs — sound or smell — to be certain something passed.
The wisdom behind the ruling ('illah) is that wudu is a condition of purity required for standing before Allah in salah. The body is meant to be in a state of tahara (ritual purity) for the prayer to be valid. Passing gas is among the things that exit the body and break that state.
The Details: What Actually Breaks Your Prayer
What definitely breaks it:
- Audible passing of gas — heard clearly by you
- Detectable smell confirming gas passed
- A clear physical sensation that confirms it
What does NOT break it:
- Doubt alone ("I think something might have passed")
- Stomach rumbling or gurgling (this is digestion, not gas leaving the body)
- A feeling of potential pressure that does not result in gas leaving
- Gas released internally that does not exit the body
The distinction matters enormously. Many Muslims — especially those who struggle with waswas — repeat wudu and prayer many times over doubt, not certainty. This is not required and can itself become a spiritual problem.
Across the four schools:
All four major Sunni schools (Hanafi, Maliki, Shafi'i, Hanbali) agree that passing gas breaks wudu and thereby invalidates the prayer. This is not an area of meaningful scholarly disagreement.
The Maliki school does introduce a condition regarding smell for silent gas, but the mainstream position across all schools is that both audible and silent gas (when felt with certainty) break wudu.
Don't Let Doubt Win
Here is what happens to many Muslims, especially those with a sensitive conscience or those who struggle with obsessive thoughts (waswas):
They are in prayer. Their stomach makes a noise. They are not sure if gas passed. They leave, make wudu, and restart. Then five minutes later, the same thing happens and they do it again. By the end of a single prayer, they have restarted four times and their concentration is shattered.
This is waswas doing the work of shaytan — not piety. The Prophet's explicit instruction is: "He should not leave the prayer unless he hears a sound or finds a smell." (Sahih Muslim 362). If you genuinely did not hear or smell, your prayer is valid. Stay in it.
The principle in Islamic jurisprudence that applies here: al-yaqeen la yazool bil-shakk — certainty is not removed by doubt. You were certain you had wudu when you entered prayer. A doubtful event does not overturn that certainty. You need actual, confirmed evidence of gas passing — not a worried feeling.
Practicing this principle is itself a form of worship. It is resisting the nafs's tendency toward anxious over-religiosity, trusting the clear ruling of the Prophet, and keeping your prayer intact.
Build a Calm, Consistent Prayer Habit
DeenBack helps you track your prayers and build steady, confident salah habits — without anxiety or second-guessing. Know the rulings, pray with confidence, and build your streak.
Free download. Premium features available in-app.
Quick Reference: What to Do
If gas definitely passed during prayer:
- Stop the prayer immediately
- Leave the prayer area quietly (no need to announce anything)
- Perform a fresh wudu from the beginning
- Return and start the prayer over from Takbir al-Ihram
- There is no penalty for this — it is normal human physiology
If you are not sure:
- Stay in the prayer
- Complete it normally
- Your wudu and prayer are valid
- Do not leave or restart unless you have actual confirmation (sound or smell)
If you are leading a congregation:
- Step forward and indicate to another person to lead
- Go renew your wudu
- Rejoin the congregation
If you are praying Jummah and cannot leave:
- Leave quietly if you can make it back in time
- If not, attend the remainder of the khutbah or congregation; then pray the prayer over
- Your obligation to attend Jummah and your obligation to have wudu are both real — do your best within the constraints
Common Questions
Does this mean I have to stop the prayer if I simply feel uncomfortable?
No. Discomfort, pressure, or stomach movement does not break wudu or prayer. Only gas that actually exits the body and can be confirmed (heard or smelled) counts. Physical discomfort during prayer is normal and not grounds to stop.
What if gas keeps passing during prayer, making it impossible to complete?
This is a medical issue (salasul rih — chronic gas), and Islamic jurisprudence addresses it. If you suffer from chronic uncontrollable gas, you perform wudu before each prayer, then pray despite what passes during it — similar to the ruling for someone with chronic discharge. Consult a scholar for your specific situation, but know that Allah does not burden a soul beyond what it can bear (Quran 2:286).
Does silent gas (no sound, no smell) break prayer?
The evidence from the Prophet (Sahih Muslim 362) ties the ruling to confirmation via sound or smell. Silent gas that you simply felt or suspected — without confirmation — falls under doubt, which does not break wudu by the certainty principle. This is not permission to be careless; it is the actual ruling.
Is there any dua for when this happens?
There is no specific dua, but reciting bismillah when restarting wudu and approaching the new prayer with fresh focus is always beneficial. Allah knows the state of your body and your sincerity. The restart is not a punishment — it is part of the care Islam puts into standing before Allah.
Pray with Confidence
The rulings around wudu and prayer were given to you as a mercy, not a burden. They are precise enough that you can know exactly when to stop and when to continue — no guessing required.
Pass gas? Stop, renew, restart. Doubtful? Stay in it.
Islam is a religion of clarity. Use the clear answer to pray with confidence.
For related rulings, see does passing gas break wudu for the wudu-specific treatment, and what nullifies prayer for a full list of prayer-invalidating acts. If waswas around prayer is a recurring struggle, how to overcome waswas in Islam addresses the deeper issue. For a full guide to performing salah correctly, see how to pray salah correctly.
Pray with Clarity and Confidence Every Day
DeenBack helps you build a steady salah practice — with the confidence that comes from knowing the rulings and tracking your daily prayer habit.
Free download. Premium features available in-app.
Frequently Asked Questions
Does passing gas break your prayer?
Yes. Passing gas — whether audible or not — breaks wudu and therefore invalidates the prayer. You must stop, renew your wudu, and restart the prayer. This is the position of the overwhelming majority of scholars based on clear hadith evidence.
What if I am not sure whether gas passed during prayer?
The Prophet's rule: certainty is not removed by doubt. If you are not certain gas passed — if you did not hear it or feel it clearly — your prayer and wudu are intact. 'The person should not leave the prayer unless he hears a sound or finds a smell.' (Sahih Bukhari 137). Do not let waswas (obsessive doubt) make you repeat prayers unnecessarily.
Do I have to restart the entire prayer or can I continue?
You must stop, perform a fresh wudu, and restart the prayer from the beginning. You cannot resume mid-prayer after passing gas, because wudu is a precondition for the validity of salah throughout.
What if gas passes during Jummah when I cannot leave?
If you are certain gas passed during a congregational prayer and cannot make wudu without missing the prayer, you should leave quietly to renew wudu and rejoin if possible. If you cannot, you make up the full prayer afterward. The obligation to have wudu for salah does not lift in a crowd.
Is it embarrassing to leave prayer mid-way and come back?
It can feel embarrassing, but it is the correct Islamic action and other worshippers understand it. Quietly leave, renew wudu, and rejoin. This is normal Islamic practice, not a source of shame.
