Moon and astronomy
Why an Islamic Month Has Only 29 or 30 Days
An Islamic month has 29 or 30 days. See the hadith behind the rule, the 29.53-day lunar cycle, and why a cloudy evening means a 30-day month.
By Tahir Nasuru · · 9 min read

An Islamic month (a month of the Hijri calendar) has either 29 or 30 days. Each month begins with the new crescent moon, and the Moon takes about 29.53 days to go through its phases, so the next crescent is due after 29 or 30 whole days. The Prophet ﷺ described the month in exactly these terms, and the rule of completing 30 days when the crescent is not seen keeps every month inside that range.
Key Takeaways
- A Hijri month is 29 or 30 days long. This comes from the hadith in Sahih al-Bukhari 1913 and from the Moon's own cycle.
- The average cycle of lunar phases is 29.530588 days, but single cycles run several hours shorter or longer.
- On the evening of the 29th, the month either ends (crescent seen) or runs to a 30th day (crescent not seen). No month is counted past 30.
- Calculated calendars such as Umm al-Qura apply an astronomical rule on the 29th instead of a sighting, so their 29s and 30s can differ from a local announcement.
What the hadith says about the length of a month
The clearest statement is in Sahih al-Bukhari 1913, narrated by Ibn 'Umar. The Prophet ﷺ said that the month is "like this and this", and the narration explains this as sometimes 29 days and sometimes 30. On sunnah.com the narration sits in a chapter of the Book of Fasting titled "We neither write nor know accounts", which frames the month as something people can count by watching the sky.
Sahih al-Bukhari 1907 gives the same limits as instructions. The month can be 29 nights, so do not begin the fast until the crescent is seen, and if the sky is overcast, complete Sha'ban as thirty days. Sahih al-Bukhari 1909, narrated by Abu Huraira, links both the start and the end of Ramadan to seeing the crescent, with the same instruction to complete thirty days of Sha'ban when it cannot be seen.
The Quran ties the months to the Moon. In a translation of the meaning of Surah Al-Baqarah 2:189 (Sahih International), the crescent moons are "measurements of time for the people and for ḥajj." Surah At-Tawbah 9:36 states that the number of months with Allah is twelve. Together they describe a calendar of twelve lunar months, marked by the crescent.
The lunar cycle behind the numbers
The Moon's cycle of phases, from one new moon to the next, is called the synodic month. Britannica's entry on the month gives its average as 29.530588 mean solar days, or 29 days 12 hours 44 minutes, and notes that the lengths of individual months vary because of perturbations in the Moon's orbit.
The size of that variation can be measured from the new moon times published by the US Naval Observatory's moon phase service. Taking the gap between each pair of consecutive new moons in the USNO tables for 2000 to 2050 (630 cycles) gives this range. The tables were retrieved from the USNO service on 9 November 2026; they list each new moon in Universal Time to the nearest minute, so every interval below is accurate to about a minute, and values after 2026 are USNO predictions.
| New moon to next new moon (UT) | Length |
|---|---|
| 6 June to 5 July 2035 | 29 days 6 hours 38 minutes (shortest, 2000-2050) |
| 18 December 2017 to 17 January 2018 | 29 days 19 hours 47 minutes (longest, 2000-2050) |
| 15 June to 14 July 2026 | 29 days 6 hours 49 minutes (shortest in 2026) |
| 9 December 2026 to 7 January 2027 | 29 days 19 hours 32 minutes (longest in 2026) |
| Long-term average (Britannica) | 29 days 12 hours 44 minutes |
So every lunar cycle in that 51-year span is longer than 29 days and shorter than 30. A calendar that counts whole days, starting each one at sunset, cannot have a month of 29.53 days. It has to round to 29 or 30, and over time the two lengths balance out to the Moon's average.
Why the count stops at 29 or 30
The limits come from how the count works. On the evening that ends the 29th day, people look for the new crescent after sunset.
- If the crescent is seen, the month ends after 29 days and the new month begins that evening.
- If it is not seen, the month runs to a 30th day, and the next month begins after that, whether or not the crescent has been seen.
Nobody looks for the next month's crescent before the 29th evening, so the method does not produce a 28-day month. The instruction to complete thirty days means a 30th day is the most a month can have, so it does not produce a 31-day month either.
Real observance can be messier than the method. If a community starts a month a day late, for example after a cloudy evening, and the next crescent is then seen early, its own count of that month may come out short. How such a case is handled, including whether a missed fast is made up, is a question for qualified scholars and is not settled by a calendar.
The astronomy fits this rule closely. The USNO page on crescent visibility explains that the time of each new moon can be computed exactly, and that the crescent generally becomes visible to well-placed, experienced observers about a day after new moon. With a cycle of roughly 29.5 days and a crescent that appears a day or so after the new moon, the first possible sighting falls on the 29th or 30th evening.
Completing 30 days when the sky is overcast
Clouds and dust are the practical reason the 30-day rule matters. The same USNO page states that first visibility of the crescent "cannot be predicted with certainty". It depends on sky conditions and on the location, experience and preparation of the observer, as well as the Moon's position.
The hadith answers the cloudy evening directly: if the crescent cannot be seen, the current month is completed to 30 days. This means a 30-day month does not prove the Moon was "late". The crescent may have been above the horizon but hidden. It also means communities in different places, or following different methods, can end the same month on different days.
Muslims differ on how this is applied in practice. Some communities require a local sighting, some accept a sighting from elsewhere, and some follow a calculation. Those positions, and the evidence each side uses, are covered in moon sighting vs calculation. For your own observance, follow the scholars or local mosque you rely on.
How a calculated calendar decides between 29 and 30
A printed or online calendar cannot wait for anyone to look at the sky, so it replaces the sighting with a rule. Saudi Arabia's Umm al-Qura calendar, which this site uses, is calculated for Makkah. R.H. van Gent of Utrecht University summarises its current astronomical rules: on the 29th day of a month, if the conjunction (new moon) happens before sunset and the Moon sets after the Sun, the next day starts a new month. Otherwise the month lasts 30 days.
The USNO's Islamic calendar page describes a different approach, the tabular calendar, where the months simply alternate between 30 and 29 days and Dhu al-Hijjah gains a 30th day in leap years. Britannica's Islamic calendar entry describes the same scheme with 11 leap years in a 30-year cycle.
In the tabular scheme, the only place two 30-day months meet is the year boundary: a leap-year Dhu al-Hijjah of 30 days followed by Muharram, which always has 30. A rule-based calendar like Umm al-Qura does not alternate at all. It follows the real Moon, so two 30-day months, or two 29-day months, can come in a row anywhere in the year. The differences between these systems are explained in the tabular Islamic calendar.
Worked example: Jumada al-Awwal 1448
In the calculated Umm al-Qura calendar, 29 Jumada al-Awwal 1448 fell on Monday 9 November 2026, the day on which the length of that month was decided.
- The new moon. USNO gives the new moon at 07:02 UT on 9 November 2026, which was 10:02 in Makkah, well before sunset. The first condition was met.
- Moonset and sunset. Computed with the open-source suncalc library (version 2.0.0) for the Kaaba at 21.4225° N, 39.8262° E, the Sun set at about 17:40 local time that evening and the Moon at about 17:34. The Moon set roughly six minutes before the Sun, so the second condition failed. suncalc is an approximate model, accurate to a few minutes, so treat the six-minute gap as an estimate.
- The result. Jumada al-Awwal 1448 ran to 30 days. Tuesday 10 November 2026 was 30 Jumada al-Awwal, and 1 Jumada al-Thani 1448 fell on Wednesday 11 November 2026 in the calculated calendar.
A local announcement based on sighting may differ by a day. You can see both months on the Jumada al-Awwal 1448 calendar page.
Month lengths in 1448 AH
Converting the first day of each month with the site's Umm al-Qura converter gives these calculated lengths for 1448 AH (16 June 2026 to 5 June 2027):
| Month (1448 AH) | Starts (Gregorian) | Days |
|---|---|---|
| Muharram | 16 June 2026 | 29 |
| Safar | 15 July 2026 | 30 |
| Rabi al-Awwal | 14 August 2026 | 29 |
| Rabi al-Thani | 12 September 2026 | 30 |
| Jumada al-Awwal | 12 October 2026 | 30 |
| Jumada al-Thani | 11 November 2026 | 29 |
| Rajab | 10 December 2026 | 30 |
| Sha'ban | 9 January 2027 | 30 |
| Ramadan | 8 February 2027 | 29 |
| Shawwal | 9 March 2027 | 30 |
| Dhu al-Qidah | 8 April 2027 | 29 |
| Dhu al-Hijjah | 7 May 2027 | 30 |
The year has five 29-day months and seven 30-day months, for 355 days in total. Rabi al-Thani and Jumada al-Awwal are back-to-back 30-day months, and so are Rajab and Sha'ban. The tabular calendar would never pair them, because it only joins two 30-day months at the turn of the year. Across the years 1420 to 1499 AH in the same converter, every month is 29 or 30 days, with at most four 30-day months or three 29-day months in a row. Why the year comes out at 354 or 355 days is covered in how many days are in a Hijri year.
Ramadan and mosque announcements
Can Ramadan have 29 days?
Yes. Ramadan follows the same rule as every other month. In the calculated Umm al-Qura calendar, Ramadan 1447 had 30 days (18 February to 19 March 2026), while Ramadan 1448 is calculated at 29 days (8 February to 8 March 2027). The length your community observes depends on its announcement on the 29th evening.
Why does my calendar show a different month length from my mosque?
Because the calendar applied a calculation on the 29th day and your mosque applied a sighting, or a different calculation. Neither is necessarily wrong. They answer the 29-or-30 question by different methods. On our sister site, Everyday Muslim, the guide to using a Hijri calendar alongside local announcements shows how to plan with a calculated date until the local date is confirmed.
Check the length of any month
To see whether a given month has 29 or 30 days in the calculated calendar, open the Hijri calendar and look at its last date. To see where the Moon is in its cycle on any night, and when the next new moon falls, use the moon phases page. Around the 29th of a month, treat the start of the next month as provisional until the authority you follow has announced it.


