What are the conditions of a valid fast?

A fast is valid when a Muslim makes the intention to fast and avoids eating, drinking and sexual relations from dawn to sunset, while being free of menstruation and post-natal bleeding. On top of that, fasting is only obligatory for Muslims who are adult, sane, healthy and not travelling.
Two kinds of conditions
Scholars separate the conditions that make fasting obligatory (who has to fast) from the conditions that make a fast valid (what makes a day of fasting count). It helps to keep them apart.
Who has to fast
- Muslim: fasting is an act of worship for those who have accepted Islam.
- Adult: having reached puberty. Children are encouraged but not obliged. See At what age do Muslim children have to fast?
- Sane: someone who has lost their reason is not held responsible.
- Able: healthy enough to fast. The sick may postpone.
- Resident: travellers may postpone and make up the days later.
What makes a fast valid
- Intention (niyyah): the Prophet ﷺ said actions are judged by intentions (Sahih al-Bukhari 1). For an obligatory fast, most scholars say the intention must be made at night before dawn, and it is simply a decision in the heart. See Do I have to make an intention to fast every night?
- Avoiding what breaks the fast: no deliberate eating, drinking or sexual intercourse from true dawn to sunset.
- Being free of menstruation and post-natal bleeding: a woman's fast is not valid during these days, and she makes them up later. See Can women fast on their period?
- Fasting in the right time: fasting on the two Eid days is not allowed.
What doesn't affect validity
Many small things worry new Muslims for no reason. Forgetfully eating, swallowing your own saliva, a shower, a wet dream, or waking up in a state of major impurity (as long as you make ghusl for prayer) do not cancel your fast. The Hanafi, Maliki, Shafi'i and Hanbali schools differ on some details, such as whether one intention at the start of Ramadan covers the whole month, but they agree on the core above. See Does swallowing my spit break my fast?
Also remember that the fast is meant to change your behaviour. Lying, backbiting and anger don't technically cancel the fast, but they can empty it of reward.
- Fasting is obligatory on adult, sane, able, resident Muslims.
- A valid fast needs an intention and avoiding food, drink and intercourse from dawn to sunset.
- Menstruation and post-natal bleeding pause the fast; days are made up later.
- Forgetful eating and small everyday things don't cancel it.
People also ask
What happens if I don't fast in Ramadan?
If you don't fast in Ramadan with a valid excuse, you make up the days. Skipping without one is a major sin, but repentance and make-up days fix it.
Read the full answer →Can Muslims drink water while fasting?
No, Muslims cannot drink water while fasting from dawn to sunset. Learn what counts, what if you sip by mistake, and how to stay hydrated at night.
Read the full answer →What if I break my fast a few minutes early?
Breaking your fast a few minutes early on purpose means making up the day. By honest mistake, most scholars say make up one day; there is no sin.
Read the full answer →Can Muslims eat at night during Ramadan?
Yes, Muslims can eat and drink at night during Ramadan, from sunset until dawn. Learn about iftar, suhoor, when eating stops, and not overeating.
Read the full answer →Is my fast valid if I drank alcohol the night before?
Yes, your fast is valid if you drank alcohol the night before, as long as you stopped before dawn and intended to fast. Alcohol is still haram.
Read the full answer →