What invalidates prayer in Islam?

Prayer is invalidated by losing wudu, talking on purpose, eating or drinking, turning away from the qibla, uncovering what must be covered, laughing out loud, or leaving out an essential part like a bow or prostration. Small slips and passing thoughts don't cancel it. If it does break, you simply start again.
Losing your purity
Prayer needs wudu from start to finish. The Prophet ﷺ said that the prayer of someone who breaks their wudu is not accepted until they make wudu again (Sahih al-Bukhari 135). So if you pass wind, or anything else happens that breaks wudu, the prayer ends there. Leave quietly, renew your wudu and pray again. See What breaks wudu?
Don't let doubt trick you, though. If you only think something happened, the Prophet ﷺ said not to leave until you hear a sound or notice a smell (Sahih al-Bukhari 137). Certainty isn't cancelled by a doubt.
Talking, eating and laughing
The Prophet ﷺ said that ordinary speech has no place in prayer; it is only glorifying Allah, saying Allahu akbar and reciting the Quran (Sahih Muslim 537). So:
- Talking on purpose (answering someone, chatting) breaks the prayer. Most scholars excuse a word said by someone who forgot they were praying or didn't know the rule.
- Eating or drinking on purpose breaks it, by agreement.
- Laughing out loud breaks it. A smile does not.
Missing a pillar or a condition
Some things are the backbone of the prayer: standing (if you can), the opening takbir, reciting al-Fatiha, bowing, prostrating, sitting, and doing each calmly. A man once rushed his prayer, and the Prophet ﷺ told him three times, "Go back and pray, for you have not prayed," then taught him to be still in each position (Sahih al-Bukhari 757). Leaving out a pillar on purpose, or turning your chest away from the qibla, or uncovering your awrah for a noticeable time, makes the prayer invalid.
Lots of extra movement (like doing something else entirely) also breaks it. Small movements, like scratching or fixing your scarf, don't. See What if my phone rings while I'm praying?
What does NOT break your prayer
- Wandering thoughts (try to refocus; the prayer still counts).
- Forgetting a minor part: fix it with the prostration of forgetfulness.
- A small stain you didn't know about. See Can I pray with a stain on my clothes?
- Crying out of humility, or a cough or sneeze you couldn't hold back.
The schools differ on some details, such as how much movement is "a lot" or whether a forgetful word counts. The Hanafis are stricter on speech, while the Maliki, Shafi'i and Hanbali schools excuse a little said by mistake.
- Losing wudu ends the prayer; renew it and start again.
- Deliberate talking, eating, drinking or loud laughter break it.
- Skipping a pillar or rushing without stillness invalidates it.
- Doubts, stray thoughts and small movements don't.
People also ask
Is it disrespectful to step on a prayer mat?
No, stepping on a prayer mat isn't disrespectful or sinful in itself. Why families mind, mats with Kaaba pictures or Arabic writing, and care tips.
Read the full answer →Can I pray in a room with a toilet?
It depends: praying inside a toilet is disliked (invalid for Hanbalis), but an en-suite bedroom or hotel room is fine. Pray on a clean spot there.
Read the full answer →Can I pray outside in a park?
Yes, you can pray outside in a park; the whole earth is a place of prayer. Choosing a clean spot, finding the qibla, and praying in public with ease.
Read the full answer →Can I pray with a cap or hat on?
Yes, men can pray with a cap or hat on. The head isn't part of a man's awrah, but make sure the brim doesn't block your forehead in sujood.
Read the full answer →What is the difference between fard and sunnah prayers?
Fard prayers are the five obligatory daily prayers; sunnah prayers are voluntary extras the Prophet prayed. The 12 rawatib and why they matter.
Read the full answer →