How the Hijri calendar works
Why does Ramadan come earlier every year? Because the Hijri calendar follows the moon. Here is how it works, in plain language.

The Hijri calendar is the Islamic lunar calendar. It has twelve months, each beginning with the sighting of the new crescent moon and lasting 29 or 30 days, so a Hijri year is about 354 or 355 days long. Because that is roughly 11 days shorter than the solar year, Islamic dates such as Ramadan and the two Eids move about 11 days earlier in the Gregorian calendar each year.
The rest of this guide explains the months, the role of the moon sighting, why dates can differ between countries, and how to keep track of them.
What does the Qur'an say about the months?
The Qur'an sets the number of months and ties them to the moon.
> Lo! the number of the months with Allah is twelve months by Allah's ordinance in the day that He created the heavens and the earth. Four of them are sacred... (Surah At-Tawbah 9:36, opening)
> They ask thee, (O Muhammad), of new moons, say: They are fixed seasons for mankind and for the pilgrimage. (Surah Al-Baqarah 2:189, opening)
> He it is Who appointed the sun a splendour and the moon a light, and measured for her stages, that ye might know the number of the years, and the reckoning. (Surah Yunus 10:5, opening)
> The sun and the moon are made punctual. (Surah Ar-Rahman 55:5)
Together these verses explain the logic of the calendar: twelve months, marked by the new moon, as a way of counting time and setting the seasons of worship.
What are the twelve Hijri months?
In order:
1. Muharram, the first month and one of the four sacred months.
2. Safar
3. Rabi al-Awwal
4. Rabi al-Thani
5. Jumada al-Ula
6. Jumada al-Thani
7. Rajab, a sacred month.
8. Sha'ban
9. Ramadan, the month of fasting.
10. Shawwal, which begins with Eid al-Fitr.
11. Dhul Qa'dah, a sacred month.
12. Dhul Hijjah, the month of Hajj and Eid al-Adha, and a sacred month.
Spellings vary in English, and you will see several versions of each name.
Why does each month start with the moon?
A Hijri month begins when the thin crescent of the new moon is seen after sunset. The moon takes a little over 29 and a half days to go from one new moon to the next, so each month is either 29 or 30 days long. A month never has 31 days, and it cannot be fixed in advance in the way a Gregorian month can.
On the 29th evening of a month, people look for the crescent. If it is seen, the new month begins the next day. If it is not, the month completes 30 days.
Why do Islamic dates move about 11 days each year?
Twelve lunar months add up to about 354 days. The Gregorian year, which follows the sun, has 365 or 366. The difference is roughly 11 days, so each Hijri date arrives about 11 days earlier in the Gregorian calendar than it did the year before.
Over time this carries every Islamic month through every season. Ramadan is sometimes in the long days of summer and sometimes in the short days of winter, depending on the year and where you live. Over roughly 33 years, it travels the whole way around.
Why can dates differ between countries?
Because the month depends on the sighting, and the moon is visible at different times in different places, the same Hijri date can fall on different Gregorian days in different countries. Communities also follow different methods. Some rely on a local sighting, some follow the announcement of another country, and some use astronomical calculation.
That is why families in two countries sometimes celebrate Eid on different days. Neither is wrong; they are following their own community's method. The respectful course is to follow your local community and to check with relatives abroad before sending a greeting.
Why are future dates only estimates?
Any calendar that shows future Hijri dates is using a calculation. It is usually right, but the real start of each month depends on the sighting, and it can move by a day. For that reason, it is wise to treat the date of Ramadan or Eid as approximate until it is announced in your area.
How do I convert a date to Hijri?
Hijri years are counted from the Hijrah, the migration of the Prophet from Makkah to Madinah, and are written with AH after the number. To find the Hijri date of any day, it is easiest to use a calendar that shows both systems side by side rather than calculating by hand.
How can I keep track of the Hijri calendar?
The free Dhikr calendar shows the Hijri day and month beside each Gregorian date, so you can see Ramadan, the sacred months and the Eids approaching. You can save your own dates too, such as a birthday kept in the Hijri calendar, and choose to be reminded a week before and on the day. Saving needs only an email sign-in link, with no password.
When an occasion approaches, the Eid blessings and Jumu'ah blessings on Dhikr let you send a verse with a name. The Dhikr app carries the same tools on your phone.
Questions people ask
Why is the Islamic year shorter than the Gregorian year?
The Islamic year has twelve lunar months of 29 or 30 days, which add up to about 354 or 355 days. The Gregorian year follows the sun and has 365 or 366 days. The difference of about 11 days is why Islamic dates move earlier each year.
How is the start of an Islamic month decided?
A new Hijri month begins when the new crescent moon is sighted after sunset on the 29th day. If it is not seen, the month completes 30 days. Some communities use a local sighting, some follow another country, and some use calculation, so dates can differ.
Can I know the exact date of Eid in advance?
Calendars can estimate it, but the exact date depends on the moon sighting followed by your community, and it can shift by a day. Treat any future date as approximate until it is announced where you live.
By Dhikr
More from the journal
All postsPrintable Islamic books in PDF: what to look for
Before you buy or print an Islamic PDF, check these things: a reference on every verse, accurate Arabic with diacritics, a print-ready layout and fair terms.
17 Nov 2026Islamic e-cards for Muslims in the USA and Canada
Family far away, Eid on a work day, several time zones in one country. Here is how to send an Islamic e-card from the USA or Canada that arrives well.
13 Nov 2026Islamic greeting cards in the UK: send one online
Eid, a new baby, a nikah or a Friday message: here is how to send a personalised Islamic greeting card online from anywhere in the UK, priced in pounds.