Quick facts about the niyyah for Ramadan fasting:
• Niyyah = the intention in the heart. Saying it aloud is not required.
• Time: before Fajr each night, even if you made the intention before sleeping
• The common formula: "Nawaitu sawma ghadin 'an ada'i fardhi shahri Ramadana hadihis-sanati lillahi ta'ala", though scholars note any sincere intention in the heart is sufficient
• One niyyah for the whole month? Maliki school: yes. Shafi'i and Hanbali: renew each night. Hanafi: renewing each night is preferred.
• Qadha fasting: the niyyah must specifically be for qadha, it cannot double as a general fast
The niyyah is the hinge on which every act of worship turns. Without it, fasting is just going hungry. With it, the same hours of restraint become one of the most beloved acts a Muslim can offer to Allah, an act that has no worldly equivalent, no transaction, no visible performance. Just you, the intention, and the Lord who sees into the heart.
Most Muslims have heard that they should make the intention before Fajr, and many say the famous Arabic formula each night. But the questions come up every Ramadan: What if I forgot? Do I need to say it in Arabic? Does one intention at the start of the month cover all thirty days? What changes for makeup fasts? This guide answers all of those, with the scholarship behind each ruling.
What is niyyah and why does it matter?
The word niyyah (نِيَّة) means intention, the deliberate orientation of the heart toward an act of worship, for the sake of Allah. Islamic jurisprudence treats the niyyah not as a formality but as the very substance that distinguishes worship from coincidence. The foundational evidence is the opening hadith of Sahih al-Bukhari:
"Innama al-a'malu binniyyat, wa innama li-kulli imri'in ma nawa.", "Actions are only by intentions, and every person will have only what they intended." (Sahih al-Bukhari 1)
This hadith is so foundational that Imam al-Bukhari placed it as the very first narration of his collection. Imam al-Shafi'i reportedly said that this single hadith comprises one third of all Islamic knowledge. The point for our purposes is simple: without the niyyah, fasting is mere hunger. With a sincere niyyah, it is an act of worship that Allah described in a Qudsi narration as uniquely His: "Every action of the son of Adam is for him, except for fasting, it is for Me, and I will reward it." (Sahih al-Bukhari 1904)
One common misunderstanding is that the niyyah must be pronounced aloud. It does not. The niyyah is in the heart, not on the tongue. Speaking the formula aloud, as many Muslims do, is a helpful habit that reinforces the intention in the mind, but it carries no independent legal weight. A person who simply wakes up for suhoor and eats, consciously knowing they are about to fast for the sake of Allah, has made a valid niyyah. The verbal formula is a mnemonic aid, not a condition.
When to make the niyyah for Ramadan fasting
The Prophet ﷺ said:
"Whoever does not intend to fast before dawn, there is no fast for him." (Sunan an-Nasa'i 2334; Sunan Abu Dawud 2454, graded as sahih by al-Albani and others)
This is the clearest evidence that the niyyah for an obligatory fast must be made before Fajr, before the true dawn breaks. The window is from the previous sunset all the way until the moment Fajr enters. So if you wake up at midnight, eat something, consciously think "I am fasting tomorrow for Ramadan," and go back to sleep, your niyyah is valid.
A common misunderstanding: you do not need to be awake at the precise moment of Fajr. The requirement is that the intention was present at some point before Fajr arrived. Millions of Muslims make their niyyah right after Isha or before sleeping, this is entirely correct. If you went to bed having eaten suhoor with the conscious thought of fasting, that thought counts. You do not need to wake up again at the adhan of Fajr to repeat it.
That said, many Muslims do prefer to explicitly make the intention at suhoor time, and this is excellent practice. FivePrayer's Fajr alarm serves as a natural prompt, when it sounds, you know the window is closing. Making the niyyah right then, whether silently in the heart or by reciting the formula, ensures you never miss it.
The Arabic formula
The most widely used formula across the Muslim world is this:
نَوَيْتُ صَوْمَ غَدٍ عَنْ أَدَاءِ فَرْضِ شَهْرِ رَمَضَانَ هَذِهِ السَّنَةِ لِلَّهِ تَعَالَى
Nawaitu sawma ghadin 'an ada'i fardhi shahri Ramadana hadihis-sanati lillahi ta'ala.
Translation: "I intend to fast tomorrow to fulfill the obligation of the month of Ramadan of this year, for Allah, the Exalted."
This formula is precise and comprehensive: it names the type of fast (Ramadan), specifies it is obligatory (fardh), specifies it is the current year, and dedicates it to Allah alone. These elements, type of fast, its obligatory nature, and dedication to Allah, are exactly what the classical scholars of fiqh identified as the components of a complete niyyah for Ramadan.
One thing worth knowing: this specific formula does not appear in the hadith as a prescribed text. It is a formulation developed by scholars over time as an educational tool, a precise way to teach what the heart's intention should contain. The Prophet ﷺ never required Muslims to recite any particular sentence before fasting. The formula is a mnemonic device, not a recitation. If you say it in English, "I intend to fast today for Ramadan, for the sake of Allah", it is equally valid.
One niyyah for the whole month?
This is one of the most practical questions in Ramadan fiqh, and the four schools do not fully agree on it.
The Maliki position holds that a single, comprehensive intention made at the beginning of Ramadan, "I intend to fast the entirety of this Ramadan", is sufficient for the whole month. The reasoning is that Ramadan is treated as a single continuous act of worship, and one intention for a single ibadah is sufficient. On this view, even if you forget to renew the intention some nights, your fasts remain valid.
The Shafi'i and Hanbali schools require a fresh niyyah each night, because they treat each day of Ramadan as a legally separate fast. A day without a niyyah made before its Fajr is a day without a valid fast, and it must be made up. This is the stricter and more widely followed position globally.
The Hanafi school lands somewhere in between: each night's niyyah is preferred and the safest practice, but if a person neglects to renew it on a given night, there is no automatic nullification, though renewing is strongly recommended to avoid doubt.
Practical guidance: renew the niyyah each night. It costs nothing, a thought in the heart, or the formula on your lips at suhoor. The Maliki relief is there for genuine forgetfulness, but consciously relying on it is not the posture of someone taking Ramadan seriously. Make it a nightly habit, even a brief silent intention at the suhoor table: I am fasting today for Ramadan, for Allah.
Niyyah for qadha (makeup) fasting
If you have missed days of Ramadan that need to be made up, due to illness, menstruation, travel, or any valid reason, the niyyah for those makeup fasts is different from the niyyah for Ramadan itself.
The niyyah must specifically be for qadha. You cannot make a general fasting intention and have it automatically count as a makeup day. The intention needs to specify: "I intend to fast today to make up a missed day of Ramadan."
نَوَيْتُ صَوْمَ غَدٍ عَنْ قَضَاءِ فَرْضِ رَمَضَانَ لِلَّهِ تَعَالَى
Nawaitu sawma ghadin 'an qada'i fardhi Ramadana lillahi ta'ala.
Translation: "I intend to fast tomorrow to make up the obligatory fast of Ramadan, for Allah, the Exalted."
The key change is qada' (قَضَاء, makeup) replacing ada' (أَدَاء, performing on time). This distinction signals to the worshipper, and fulfills the requirement that the intention be specific, that today's fast is a debt being repaid, not the current Ramadan being performed.
Do makeup days need to be fasted consecutively? No. The scholarly consensus is that qadha fasts may be spread across the year at the Muslim's convenience, the only condition is that they all be completed before the next Ramadan arrives. Fasting them consecutively is recommended if possible, but it is not obligatory. If the next Ramadan comes before all missed days are made up without a valid excuse, fidyah (expiation) may additionally be required per some schools, consult a scholar in your community for specifics.
Suhoor and the niyyah
Suhoor, the pre-dawn meal, has a close relationship with the niyyah that is worth understanding. The Prophet ﷺ said:
"Eat suhoor, for in suhoor there is blessing (barakah)." (Sahih al-Bukhari 1923)
Many scholars have observed that eating suhoor is, in itself, a form of niyyah by action, a person eats before dawn specifically because they intend to fast. This implicit intention through action is recognized by some scholars, particularly within the Hanafi tradition, as constituting a valid niyyah.
However, the Shafi'i and Hanbali schools are more precise: they distinguish between eating for any reason and eating specifically with the consciousness that you are fasting. Eating suhoor while half-asleep without any conscious thought about fasting would not constitute a valid niyyah on this reading. The safer position, and the universally recommended one, is to make the intention explicitly, even if just a brief thought while you're sitting at the table: I am intending this fast for Ramadan.
The suhoor meal itself is a blessing and a sunnah. Beyond its spiritual value, eating a nutritious meal before Fajr sustains the body through the fast and is a mercy from Allah. Miss it when you can't help it, but don't forgo it deliberately.
Breaking the fast: the iftar dua
Unlike fasting, breaking the fast does not require a formal niyyah. You simply eat when the Maghrib adhan sounds. But the sunnah is to accompany that first bite or sip with a dua, and two are transmitted from the Prophet ﷺ.
The stronger of the two, graded as hasan by Imam al-Albani, is the dua narrated by 'Abdullah ibn 'Umar in Sunan Abu Dawud 2357:
ذَهَبَ الظَّمَأُ وَابْتَلَّتِ الْعُرُوقُ وَثَبَتَ الأَجْرُ إِنْ شَاءَ اللَّهُ
Dhahaba al-zama'u wabtallatil-'uruqu wa thabatal-ajru inshallah.
Translation: "The thirst has gone, the veins are moistened, and the reward is confirmed, if Allah wills."
The second dua, narrated in Sunan Abu Dawud 2358 (its chain has some weakness, though the dua is widely practiced):
اللَّهُمَّ لَكَ صُمْتُ وَبِكَ آمَنْتُ وَعَلَى رِزْقِكَ أَفْطَرْتُ
Allahumma laka sumtu wa bika amantu wa 'ala rizqika aftartu.
Translation: "O Allah, I fasted for You, and I believe in You, and I break my fast with Your provision."
Both duas are beautiful and widely recited. Given the difference in chain strength, scholars like al-Albani graded the first (Abu Dawud 2357) as more sound. If you only memorize one, that is the one to keep. But there is no harm in saying both, the second is so beloved and so widely established in Muslim practice globally that generations of Muslims have broken their fasts with it.
FAQ
What if I forgot to make niyyah the night before?
If you forgot and only remembered after Fajr had already entered, your fast that day does not count per the majority of scholars. The correct course is to complete the day without eating or drinking out of respect for the month, and then to make up that day later as qadha. The Maliki school offers some relief for genuine forgetfulness where a single intention at the start of Ramadan was already made, but consciously relying on this for multiple days is not the sound practice. If you went to sleep having eaten suhoor and intending to fast, even without saying the formula, your intention is valid.
Can I eat after making niyyah if it's before Fajr?
Yes. The niyyah is for the fast that begins at Fajr. Eating and drinking before Fajr is permitted and in fact encouraged (suhoor). Making the intention and then eating suhoor right afterward is completely valid, the fast has not yet started. The timing restriction on eating begins at Fajr, not at the moment the niyyah is made.
Does the niyyah need to include the word "Ramadan"?
Technically, the intention should specify that the fast is for Ramadan, to distinguish it from a voluntary fast. In practice, if you are in Ramadan and you are fasting with the knowledge that it is Ramadan, the context makes the intention for Ramadan clear per most scholars. Being explicit, either in the formula or simply in your heart, is the sounder and safer approach.
I'm not sure if I'll be able to fast tomorrow due to illness. Do I still make the niyyah?
Make the niyyah as normal. The intention does not lock you into fasting regardless of circumstances, illness, travel, pregnancy, and other valid excuses remain operative even after the intention has been made. If you wake up too unwell to fast, you are permitted to break the fast, and that day will be made up as qadha. Making the intention expresses your desire to fast; Allah knows your circumstances.
Is the niyyah different for voluntary (nafl) fasting?
Yes, this is an important distinction. For voluntary fasting, scholars permit making the niyyah during the day, before midday (before Dhuhr), provided nothing has been eaten since Fajr. This flexibility does not apply to obligatory fasts like Ramadan, which require the intention before Fajr without exception. The ruling for nafl is based on a narration from 'A'ishah in which the Prophet ﷺ asked whether there was food, and, finding nothing, said "Then I am fasting." (Sahih Muslim 1154) This shows the broader window, but only for optional fasts.
FivePrayer: precise prayer times so your niyyah is never too late.
FivePrayer calculates your local Fajr time to the minute. Set its Fajr alarm and you'll always know when the fasting window closes, so your intention is made in time, every day of Ramadan. Free on iOS, Android, and Chrome.