م
Mioo
Islamic Finance Hub
All Articles
Ramadan 15 min read

Ramadan Fasting Rules: The Complete Jurisprudence Guide

From the intention (niyyah) before dawn to the conditions of validity, things that break the fast, and the rulings of travel — every foundational rule is documented here.

Published February 5, 2025 Updated June 1, 2025

Fasting (Sawm) during Ramadan is the fourth pillar of Islam and one of its most distinctive acts of worship. The rules of fasting are detailed and comprehensive, covering everything from the intention before dawn to the conditions of validity and the things that break the fast. This guide provides a complete reference to the jurisprudence of fasting according to the four Sunni schools, with practical guidance for modern Muslims.

The Obligation: Quranic Foundation

The obligation of fasting Ramadan is established in the Quran in Surah Al-Baqarah (2:183): "O you who have believed, decreed upon you is fasting as it was decreed upon those before you that you may become righteous." This verse establishes three critical points: fasting is obligatory on all believers, it was also required of previous religious communities, and its purpose is to develop taqwa (God-consciousness).

The fast is obligatory on every Muslim who is: (1) mature (has reached puberty), (2) sane (of sound mind), (3) resident (not traveling), and (4) physically able. Women who are menstruating or in postpartum bleeding are exempt and must make up the missed fasts later. The elderly, chronically ill, pregnant women, and breastfeeding women have specific rulings discussed below.

The Intention (Niyyah)

Every act of worship in Islam requires intention, and fasting is no exception. The majority position (Shafi'i, Maliki, Hanbali) is that the intention for each day's fast must be made before dawn (Fajr) of that day. You cannot decide at noon to fast that day — the intention must precede the dawn. The Hanafi school permits making the intention until midday (approximately), as long as no food or drink was consumed that morning.

The intention does not need to be verbalized — it is a firm resolve in the heart. Waking up for Suhoor (the pre-dawn meal) and refraining from food and drink is itself an indication of the intention. There is no specific wording required, though many Muslims say privately: "I intend to fast tomorrow for the month of Ramadan."

The Time of Fasting: From Dawn to Sunset

The daily fast begins at the true dawn (Subh Sadiq) — the time when the first light appears horizontally across the horizon — and ends at sunset (Maghrib). This period is determined astronomically and is published in local prayer timetables. The fast typically lasts 14-16 hours in summer in temperate regions and 10-12 hours in winter or in equatorial regions.

The Quran specifies this timing in Surah Al-Baqarah (2:187): "And eat and drink until the white thread of dawn becomes distinct to you from the black thread. Then complete the fast until the night." The "white thread" is the light of dawn; the "black thread" is the darkness of night.

Suhoor: The Pre-Dawn Meal

Suhoor is the meal eaten before dawn to prepare for the day's fast. While not technically obligatory, the Prophet (peace be upon him) strongly recommended it: "Eat Suhoor, for in Suhoor there is blessing." (Bukhari and Muslim). The blessing includes physical benefits (sustaining energy through the day) and spiritual benefits (following the Prophetic example). Suhoor can be any food — even a sip of water — and should be delayed until close to dawn to maximize its benefit.

Iftar: Breaking the Fast

The fast is broken at sunset with Iftar. The Prophet (peace be upon him) would break his fast with fresh dates, dried dates, or water before performing the Maghrib prayer. Following this Sunnah, Muslims typically break their fast with an odd number of dates and some water, then pray Maghrib, then eat a fuller meal. The Prophet said: "People will remain in good as long as they hasten to break the fast." (Bukhari and Muslim) — meaning Iftar should be made promptly at sunset, not delayed.

The supplication for breaking the fast: "The thirst has gone, the veins are moistened, and the reward is confirmed, if Allah wills." (Abu Dawud) This is a beautiful acknowledgment of the physical relief and spiritual acceptance of the fast.

What Invalidates the Fast

Certain actions invalidate the fast and require making up that day (Qada) later. These include:

  • Eating or drinking intentionally: Any food or drink consumed intentionally during fasting hours breaks the fast. Forgetting and eating does not break the fast — the Prophet said: "If he forgets and eats or drinks, let him complete his fast, for it is Allah who has fed him and given him drink." (Bukhari and Muslim)
  • Sexual relations during the day: This is the most serious violation and requires both Qada (making up the fast) and Kaffarah (heavy expiation — 60 consecutive fasts or feeding 60 poor people).
  • Deliberate vomiting: The majority view is that intentionally inducing vomiting breaks the fast. Unintentional vomiting does not.
  • Menstruation or postpartum bleeding: Even if these begin minutes before sunset, the fast is invalidated and must be made up.
  • Intentional ejaculation: Whether through masturbation or other means, intentional ejaculation breaks the fast and requires Qada. Wet dreams do not break the fast because they are not intentional.
  • Apostasy: Leaving Islam nullifies all acts of worship, including the fast. Returning to Islam requires making up the missed fasts.

Things That Do NOT Break the Fast

Many actions that Muslims worry about do not actually break the fast. These include:

  • Eating or drinking out of forgetfulness: As mentioned above, forgetting invalidates the intention, so the fast continues.
  • Using miswak or toothbrush: Brushing teeth is permitted throughout the fast, though some scholars recommend avoiding toothpaste because swallowing it could be problematic. Using a miswak (traditional tooth stick) is recommended throughout the day.
  • Bathing or showering: Water on the skin does not break the fast. Swimming is permitted, though care should be taken not to swallow water.
  • Using eye drops or ear drops: The majority view is that these do not break the fast, as the eye and ear are not considered pathways to the stomach.
  • Injections (non-nutritional): Vaccinations, insulin, and other medical injections that do not provide nutrition do not break the fast. Nutritional IV drips that replace food do break the fast.
  • Wet dreams: Nocturnal emissions are not intentional and do not break the fast. Ghusl (ritual bath) can be performed after dawn.
  • Kissing and embracing spouses: Permitted as long as it does not lead to actions that would break the fast.
  • Tasting food (without swallowing): Permitted if necessary (e.g., for a cook), as long as nothing is swallowed.
  • Blood donation or blood tests: Drawing blood does not break the fast, according to the majority view.

The Traveler's Ruling

Travelers have a concession to break their fast during Ramadan, established in the Quran (2:185): "So whoever among you is ill or on a journey — then an equal number of days." The conditions for this concession are:

  • The travel must be for a legitimate purpose (not to escape fasting)
  • The distance must exceed approximately 80 kilometers (50 miles), the traditional "travel distance" in Fiqh
  • The traveler must not intend to stay at the destination for more than four days (Hanafi) or three days (other schools)

The traveler who breaks the fast must make up the missed days before the next Ramadan. The majority view is that fasting while traveling is disliked (makruh) if it causes hardship, but permitted if it does not. The Shafi'i school holds that fasting while traveling is permissible but breaking the fast is preferred.

The Sick Person's Ruling

Those who are ill have two scenarios:

  • Temporary illness: If fasting would worsen the illness or delay recovery, the sick person should break the fast and make up the missed days when recovered. Examples include flu with fever, infections requiring medication during the day, and surgical recovery.
  • Chronic illness with no recovery expected: If fasting is impossible and recovery is not expected (terminal cancer, severe heart disease, advanced kidney failure), the person pays Fidya — feeding one poor person for each missed fast.

Consulting both a physician and a scholar is recommended for complex medical situations. The general principle is that preserving health and life takes precedence over fasting.

Pregnant and Breastfeeding Women

Pregnant and breastfeeding women have specific rulings that vary by school:

  • Hanafi school: They must make up missed fasts (Qada) — Fidya is not sufficient. They break the fast if they fear for their own health or the baby's health.
  • Shafi'i, Maliki, Hanbali schools: They break the fast if they fear harm, and they make up the fasts later. If making up is impossible, some scholars permit Fidya.

For a pregnant woman in her third trimester during Ramadan, most scholars advise breaking the fast and making it up later, as the physical demands of late pregnancy combined with fasting can be significant.

The Elderly and Chronically Ill

Elderly Muslims who cannot fast due to age-related weakness, and those with chronic illnesses from which recovery is not expected, pay Fidya instead of fasting. The Fidya is feeding one poor person for each missed fast. The amount is calculated based on the cost of a meal in the local currency. Many Islamic charities offer Fidya payment services that distribute food to the poor on behalf of the donor.

Children and Fasting

Children who have not reached puberty are not obligated to fast. However, parents are encouraged to train their children to fast partially — for example, half-days or every other day — so they develop the habit before puberty. The Prophet (peace be upon him) reported that children were encouraged to fast when they were old enough, and they were given toys to distract them if they became hungry.

Conclusion

The rules of Ramadan fasting are comprehensive and well-established in the Quran and Sunnah. Understanding these rules ensures that your fast is valid and that you handle common situations correctly. The general principle is that the Sharia is merciful — it provides concessions for travelers, the sick, pregnant women, the elderly, and others for whom fasting would cause hardship. But for those who are able, fasting Ramadan is a transformative act of worship that develops taqwa, discipline, and empathy for the poor.

Learn about valid reasons to skip fasting, Fidya vs Kaffarah, or use our Fidya & Kaffarah calculator.

Frequently Asked Questions About Ramadan Fasting

1. What if I wake up after Fajr having missed Suhoor — can I still fast?

Yes, you can and should still fast. Missing Suhoor does not invalidate the fast. Suhoor is recommended (Sunnah) but not obligatory. The fast remains valid as long as you made the intention (niyyah) before dawn. If you woke up after Fajr without having made a specific intention, the majority view is that the intention made the previous night (when you decided to fast tomorrow) suffices. Continue fasting normally.

2. Does using eye drops or ear drops break the fast?

The majority view (Hanafi, Shafi'i, Hanbali) is that eye drops and ear drops do NOT break the fast, because the eye and ear are not considered pathways to the stomach. However, the Maliki school holds that ear drops do break the fast if they reach the throat. To be cautious, take necessary eye drops during fasting hours (they don't break the fast) and delay non-essential ear drops until after Iftar.

3. Can I brush my teeth with toothpaste while fasting?

Brushing teeth with a miswak (traditional tooth stick) is recommended throughout the fast. Using a modern toothbrush is also permitted, but you should avoid swallowing toothpaste. Many scholars recommend brushing without toothpaste during fasting hours to eliminate any risk. Brushing with toothpaste and ensuring nothing is swallowed is permissible according to most scholars, but the cautious approach is to brush before dawn or after sunset.

4. Does swallowing saliva break the fast?

No. Swallowing your own saliva does not break the fast — this is unanimous across all schools. You cannot and should not constantly spit to avoid swallowing. However, swallowing excessive collected saliva (some scholars mention gathering saliva in the mouth and then swallowing) is disliked (makruh) according to some scholars. Normal swallowing is completely fine and unavoidable.

5. I accidentally ate or drank during the fast — what do I do?

If you ate or drank out of forgetfulness, your fast is NOT broken. The Prophet (peace be upon him) said: "If he forgets and eats or drinks, let him complete his fast, for it is Allah who has fed him and given him drink." (Bukhari) Simply stop eating/drinking as soon as you remember, rinse your mouth if needed, and continue fasting. No Qada (make-up) is required. However, if you ate or drank intentionally, the fast is broken and requires Qada (and possibly Kaffarah for deliberate major violations).

6. Can I take medicine during the fast?

Oral medications (pills, syrups, tablets swallowed) break the fast because they enter the stomach. If you need medication during fasting hours, you have options: (1) break the fast and make it up later (Qada), (2) adjust medication timing to before dawn or after sunset (consult your doctor), (3) use non-oral alternatives (patches, inhalers — scholars differ on inhalers; the majority permit them). For essential medications that cannot be delayed, breaking the fast is the correct choice — preserving health takes precedence over fasting.

7. Does having a wet dream break the fast?

No. Wet dreams (nocturnal emissions) do not break the fast because they are involuntary. The fast remains valid. You should perform Ghusl (ritual bath) to remove ritual impurity before praying, but the fast continues. The Prophet (peace be upon him) confirmed that the one who has a wet dream while fasting does not break his fast.

8. Can I swim or take a shower while fasting?

Yes. Swimming, showering, and bathing are all permitted during fasting. Water on the skin does not break the fast. However, you should be careful not to swallow water while swimming. If water accidentally enters the stomach in small amounts (e.g., while showering), the fast is generally still valid. Some scholars recommend avoiding full submersion in water to minimize risk, but the majority permit swimming with care.

Case Studies: Real Fasting Scenarios

Case Study 1: The Diabetic Faster

Brother Ahmad has Type 2 diabetes managed with oral medication. He wants to fast Ramadan but worries about his blood sugar. He consults both his physician and a scholar. The physician advises that fasting is possible with adjusted medication timing — taking his medication at Suhoor and Iftar rather than during the day. The scholar confirms that this arrangement is acceptable. Ahmad fasts successfully, monitoring his blood sugar regularly. On one day when his blood sugar drops dangerously low, he breaks his fast with a date and makes up the day later. His experience shows that with medical guidance, many diabetics can fast safely.

Case Study 2: The Traveling Businessman

Sister Fatima travels for business from London to Dubai during Ramadan — a 7-hour flight plus time zones. She leaves at 10 AM and arrives at 8 PM Dubai time. The travel distance exceeds 80 km, qualifying her for the traveler's concession. She chooses not to fast on the travel day, as the Prophet (peace be upon him) recommended. She makes up this fast in Shawwal. The following days in Dubai, she fasts normally with the local community.

Case Study 3: The Pregnant Mother

Sister Khadijah is in her third trimester during Ramadan. She consults her obstetrician, who advises against fasting due to concerns about fetal nutrition and her own health. She follows this advice, breaks her fast, and intends to make up the missed days after delivery and breastfeeding. According to the Hanafi school, she owes Qada (making up the fasts). She begins making up the fasts the following year once her baby is weaned.

Key Takeaways

  • The intention (niyyah) must be made before dawn for each day's fast.
  • Forgetful eating/drinking does not break the fast.
  • Eye drops, injections, and brushing with miswak do not break the fast.
  • Oral medications break the fast — adjust timing or break the fast if needed.
  • Travelers, the sick, pregnant/breastfeeding women have specific concessions.
  • Wet dreams, swallowing saliva, and showering do not break the fast.
  • Intentional eating, drinking, or sexual relations require Qada and possibly Kaffarah.
  • When in doubt, consult both a physician (for health) and a scholar (for rulings).

Quick Reference: What Breaks the Fast

ActionBreaks Fast?Required Action
Eating/drinking intentionallyYesQada + Kaffarah (for major violations)
Eating/drinking forgetfullyNoContinue fasting
Sexual relations during dayYesQada + Kaffarah (60 fasts or feed 60 poor)
Wet dreamsNoContinue fasting; perform Ghusl
Menstruation/postpartum bleedingYesQada only
Oral medication (pills, syrups)YesQada only
Eye dropsNo (majority)Continue fasting
Injections (non-nutritional)NoContinue fasting
Vomiting involuntarilyNoContinue fasting
Vomiting deliberatelyYes (majority)Qada only
Blood donation/testsNo (majority)Continue fasting
Try Our Calculators

Apply What You've Learned

Put this knowledge into practice with our premium Islamic finance calculators.