Skip to main content
Islamic Portal
Join freeJoin free
Islamic Portal
Explore everything
Theme

Muslim holidays

The Islamic Calendar

How the Hijri calendar works and why dates move each year

Every Muslim holiday follows the Islamic, or Hijri, calendar. Understanding a few simple ideas, a lunar year, the new moon, the sacred months and the day that begins at sunset, explains why dates move each year and why communities sometimes celebrate a day apart.

Explained

The Hijri Calendar

A lunar calendar of twelve months that counts its years from the Hijrah.

The Islamic calendar is called the Hijri calendar. It is a purely lunar calendar: each month begins with the new crescent moon and lasts 29 or 30 days. Twelve such months make a year of 354 or 355 days.

The Quran states that the number of months with God is twelve, and describes the new moons as signs for marking time for people and for the pilgrimage. The calendar is used to set the dates of Ramadan, the two Eids, the Hajj and other occasions, and in some countries it is also used for civil purposes alongside the Gregorian calendar.

Its years are counted from the Hijrah, the migration of the Prophet Muhammad and the early Muslims from Makkah to Madinah in 622 CE. Year 1 begins on the first of Muharram of that year, and years are written with the letters AH, for after the Hijrah. The system of dating from the Hijrah was adopted some years later, in the time of the second caliph, Umar ibn al-Khattab.

Unlike some lunar calendars, the Hijri calendar never adds an extra month to keep in step with the seasons, so its dates move steadily through the solar year.

Read the verses (9:36, 2:189, 10:5)
إِنَّ عِدَّةَ ٱلشُّهُورِ عِندَ ٱللَّهِ ٱثْنَا عَشَرَ شَهْرًۭا فِى كِتَٰبِ ٱللَّهِ يَوْمَ خَلَقَ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضَ مِنْهَآ أَرْبَعَةٌ حُرُمٌۭ ۚ ذَٰلِكَ ٱلدِّينُ ٱلْقَيِّمُ ۚ فَلَا تَظْلِمُوا۟ فِيهِنَّ أَنفُسَكُمْ ۚ وَقَٰتِلُوا۟ ٱلْمُشْرِكِينَ كَآفَّةًۭ كَمَا يُقَٰتِلُونَكُمْ كَآفَّةًۭ ۚ وَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ مَعَ ٱلْمُتَّقِينَ

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: that is the right religion. So wrong not yourselves in them. And wage war on all of the idolaters as they are waging war on all of you. And know that Allah is with those who keep their duty (unto Him).

At-Tawbah 9:36 · Marmaduke Pickthall (en.pickthall)
۞ يَسْـَٔلُونَكَ عَنِ ٱلْأَهِلَّةِ ۖ قُلْ هِىَ مَوَٰقِيتُ لِلنَّاسِ وَٱلْحَجِّ ۗ وَلَيْسَ ٱلْبِرُّ بِأَن تَأْتُوا۟ ٱلْبُيُوتَ مِن ظُهُورِهَا وَلَٰكِنَّ ٱلْبِرَّ مَنِ ٱتَّقَىٰ ۗ وَأْتُوا۟ ٱلْبُيُوتَ مِنْ أَبْوَٰبِهَا ۚ وَٱتَّقُوا۟ ٱللَّهَ لَعَلَّكُمْ تُفْلِحُونَ

They ask thee, (O Muhammad), of new moons, say: They are fixed seasons for mankind and for the pilgrimage. It is not righteousness that ye go to houses by the backs thereof (as do the idolaters at certain seasons), but the righteous man is he who wardeth off (evil). So go to houses by the gates thereof, and observe your duty to Allah, that ye may be successful.

Al-Baqarah 2:189 · Marmaduke Pickthall (en.pickthall)
هُوَ ٱلَّذِى جَعَلَ ٱلشَّمْسَ ضِيَآءًۭ وَٱلْقَمَرَ نُورًۭا وَقَدَّرَهُۥ مَنَازِلَ لِتَعْلَمُوا۟ عَدَدَ ٱلسِّنِينَ وَٱلْحِسَابَ ۚ مَا خَلَقَ ٱللَّهُ ذَٰلِكَ إِلَّا بِٱلْحَقِّ ۚ يُفَصِّلُ ٱلْءَايَٰتِ لِقَوْمٍۢ يَعْلَمُونَ

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. Allah created not (all) that save in truth. He detaileth the revelations for people who have knowledge.

Yunus 10:5 · Marmaduke Pickthall (en.pickthall)

Source: 'Islamic calendar', Wikipedia; the Quran, al-Tawbah 9:36 and al-Baqarah 2:189

Explained

Moon Sighting and Calculation

Why some communities wait to see the crescent while others calculate in advance.

A Hijri month begins with the new crescent (hilal), the thin sliver of moon visible just after sunset a day or two after the astronomical new moon. Communities decide the start of a month in different ways:

  • Local sighting: on the evening of the 29th, people look for the crescent. If it is seen by reliable witnesses, the new month begins the next day; if not, the current month completes 30 days.
  • Wider sighting: some communities accept a sighting from another country, such as Saudi Arabia, or from anywhere in the world.
  • Calculation: some national authorities and councils use astronomical calculations of when the crescent can be seen, or of the moon's position, to fix dates in advance.

Each approach is followed by respected scholars and communities, and the difference is long-standing. The result is that the same occasion, such as the start of Ramadan or Eid, can fall a day apart between countries, or even between mosques in one city. Most Muslims simply follow their local mosque or national religious authority, which is why exact dates are usually confirmed only shortly beforehand.

Read the verses (2:189)
۞ يَسْـَٔلُونَكَ عَنِ ٱلْأَهِلَّةِ ۖ قُلْ هِىَ مَوَٰقِيتُ لِلنَّاسِ وَٱلْحَجِّ ۗ وَلَيْسَ ٱلْبِرُّ بِأَن تَأْتُوا۟ ٱلْبُيُوتَ مِن ظُهُورِهَا وَلَٰكِنَّ ٱلْبِرَّ مَنِ ٱتَّقَىٰ ۗ وَأْتُوا۟ ٱلْبُيُوتَ مِنْ أَبْوَٰبِهَا ۚ وَٱتَّقُوا۟ ٱللَّهَ لَعَلَّكُمْ تُفْلِحُونَ

They ask thee, (O Muhammad), of new moons, say: They are fixed seasons for mankind and for the pilgrimage. It is not righteousness that ye go to houses by the backs thereof (as do the idolaters at certain seasons), but the righteous man is he who wardeth off (evil). So go to houses by the gates thereof, and observe your duty to Allah, that ye may be successful.

Al-Baqarah 2:189 · Marmaduke Pickthall (en.pickthall)

Source: 'Islamic calendar', Wikipedia

Explained

The Twelve Months

The names of the Hijri months and what each is known for.

The twelve months of the Hijri year are:

  1. Muharram: a sacred month that opens the year; Ashura falls on the 10th.
  2. Safar: an ordinary month. Some cultures once regarded it as unlucky, a belief Islamic teaching rejects.
  3. Rabi al-Awwal: the month in which the Prophet Muhammad was born, according to most historians, and in which he passed away.
  4. Rabi al-Thani (also called Rabi al-Akhir).
  5. Jumada al-Ula (Jumada al-Awwal).
  6. Jumada al-Akhirah (Jumada al-Thani).
  7. Rajab: a sacred month, seen by many as the start of preparing for Ramadan.
  8. Sha'ban: the month before Ramadan, in which many Muslims increase voluntary fasting.
  9. Ramadan: the month of fasting and of the Quran.
  10. Shawwal: begins with Eid al-Fitr; many keep six voluntary fasts in it.
  11. Dhul Qa'dah: a sacred month and one of the months of Hajj.
  12. Dhul Hijjah: a sacred month, the month of Hajj and Eid al-Adha.

Spellings vary in English, for example Dhu al-Hijjah or Zul Hijjah, because the names are transliterated from Arabic.

Read the verses (9:36)
إِنَّ عِدَّةَ ٱلشُّهُورِ عِندَ ٱللَّهِ ٱثْنَا عَشَرَ شَهْرًۭا فِى كِتَٰبِ ٱللَّهِ يَوْمَ خَلَقَ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضَ مِنْهَآ أَرْبَعَةٌ حُرُمٌۭ ۚ ذَٰلِكَ ٱلدِّينُ ٱلْقَيِّمُ ۚ فَلَا تَظْلِمُوا۟ فِيهِنَّ أَنفُسَكُمْ ۚ وَقَٰتِلُوا۟ ٱلْمُشْرِكِينَ كَآفَّةًۭ كَمَا يُقَٰتِلُونَكُمْ كَآفَّةًۭ ۚ وَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ مَعَ ٱلْمُتَّقِينَ

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: that is the right religion. So wrong not yourselves in them. And wage war on all of the idolaters as they are waging war on all of you. And know that Allah is with those who keep their duty (unto Him).

At-Tawbah 9:36 · Marmaduke Pickthall (en.pickthall)

Source: 'Islamic calendar', Wikipedia

Explained

The Sacred Months

Muharram, Rajab, Dhul Qa'dah and Dhul Hijjah: four months of special sanctity.

The Quran states that four of the twelve months are sacred (al-ashhur al-hurum), and warns believers not to wrong themselves in them. These four are:

  • Dhul Qa'dah, the 11th month;
  • Dhul Hijjah, the 12th month;
  • Muharram, the 1st month;
  • Rajab, the 7th month.

Three of them come together at the turn of the year, around the season of the Hajj, and Rajab stands alone in the middle of the year. Even before Islam, the Arabs observed a truce in these months so that pilgrims and traders could travel safely, and the Quran confirmed their sanctity.

For Muslims today, the sacred months are a reminder to take extra care: to avoid sin and injustice, to make peace, and to increase in good deeds such as voluntary fasting, prayer and charity. Scholars explain that just as good deeds are especially valued in these months, wrongdoing in them is especially serious.

Ramadan, though the most blessed month of the year, is not one of the four sacred months; it has its own special status.

Read the verses (9:36, 5:2)
إِنَّ عِدَّةَ ٱلشُّهُورِ عِندَ ٱللَّهِ ٱثْنَا عَشَرَ شَهْرًۭا فِى كِتَٰبِ ٱللَّهِ يَوْمَ خَلَقَ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضَ مِنْهَآ أَرْبَعَةٌ حُرُمٌۭ ۚ ذَٰلِكَ ٱلدِّينُ ٱلْقَيِّمُ ۚ فَلَا تَظْلِمُوا۟ فِيهِنَّ أَنفُسَكُمْ ۚ وَقَٰتِلُوا۟ ٱلْمُشْرِكِينَ كَآفَّةًۭ كَمَا يُقَٰتِلُونَكُمْ كَآفَّةًۭ ۚ وَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ مَعَ ٱلْمُتَّقِينَ

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: that is the right religion. So wrong not yourselves in them. And wage war on all of the idolaters as they are waging war on all of you. And know that Allah is with those who keep their duty (unto Him).

At-Tawbah 9:36 · Marmaduke Pickthall (en.pickthall)
يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تُحِلُّوا۟ شَعَٰٓئِرَ ٱللَّهِ وَلَا ٱلشَّهْرَ ٱلْحَرَامَ وَلَا ٱلْهَدْىَ وَلَا ٱلْقَلَٰٓئِدَ وَلَآ ءَآمِّينَ ٱلْبَيْتَ ٱلْحَرَامَ يَبْتَغُونَ فَضْلًۭا مِّن رَّبِّهِمْ وَرِضْوَٰنًۭا ۚ وَإِذَا حَلَلْتُمْ فَٱصْطَادُوا۟ ۚ وَلَا يَجْرِمَنَّكُمْ شَنَـَٔانُ قَوْمٍ أَن صَدُّوكُمْ عَنِ ٱلْمَسْجِدِ ٱلْحَرَامِ أَن تَعْتَدُوا۟ ۘ وَتَعَاوَنُوا۟ عَلَى ٱلْبِرِّ وَٱلتَّقْوَىٰ ۖ وَلَا تَعَاوَنُوا۟ عَلَى ٱلْإِثْمِ وَٱلْعُدْوَٰنِ ۚ وَٱتَّقُوا۟ ٱللَّهَ ۖ إِنَّ ٱللَّهَ شَدِيدُ ٱلْعِقَابِ

O ye who believe! Profane not Allah's monuments nor the Sacred Month nor the offerings nor the garlands, nor those repairing to the Sacred House, seeking the grace and pleasure of their Lord. But when ye have left the sacred territory, then go hunting (if ye will). And let not your hatred of a folk who (once) stopped your going to the inviolable place of worship seduce you to transgress; but help ye one another unto righteousness and pious duty. Help not one another unto sin and transgression, but keep your duty to Allah. Lo! Allah is severe in punishment.

Al-Ma'idah 5:2 · Marmaduke Pickthall (en.pickthall)

Source: The Quran, al-Tawbah 9:36 and al-Ma'idah 5:2; 'Islamic calendar', Wikipedia

Explained

Why Dates Shift About Eleven Days Each Year

A lunar year is shorter than a solar year, so Islamic dates move through the seasons.

The Gregorian calendar used in most of the world follows the sun, with a year of 365 or 366 days. The Hijri calendar follows the moon, with twelve months of 29 or 30 days, adding up to about 354 days.

That difference of roughly eleven days means that every Islamic date arrives about eleven days earlier in the Gregorian calendar than it did the year before. If Ramadan begins in early March one year, it will begin in late February the next.

Over about 33 years, each Islamic month travels all the way around the seasons. A Muslim who lives a long life will fast Ramadan in the long, hot days of summer and the short, cool days of winter. Many Muslims see a gentle wisdom in this: no region or season is always favoured or always burdened.

It also means that about every 33 years, one Gregorian year contains two Ramadans or two Eids of the same kind, once near its beginning and once near its end. When planning, always check the expected dates for the current year rather than assuming they match last year.

Read the verses (10:5)
هُوَ ٱلَّذِى جَعَلَ ٱلشَّمْسَ ضِيَآءًۭ وَٱلْقَمَرَ نُورًۭا وَقَدَّرَهُۥ مَنَازِلَ لِتَعْلَمُوا۟ عَدَدَ ٱلسِّنِينَ وَٱلْحِسَابَ ۚ مَا خَلَقَ ٱللَّهُ ذَٰلِكَ إِلَّا بِٱلْحَقِّ ۚ يُفَصِّلُ ٱلْءَايَٰتِ لِقَوْمٍۢ يَعْلَمُونَ

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. Allah created not (all) that save in truth. He detaileth the revelations for people who have knowledge.

Yunus 10:5 · Marmaduke Pickthall (en.pickthall)

Source: 'Islamic calendar', Wikipedia; the Quran, Yunus 10:5

Explained

The Islamic Day Begins at Sunset

Each night comes before its day, which is why celebrations often start the evening before.

In the Islamic calendar, a new date begins at sunset, not at midnight. The night comes first, and then the day that follows it. This is natural for a lunar calendar, because a new month is marked by sighting the crescent just after sunset.

This has some practical effects that often surprise people:

  • The first tarawih prayer of Ramadan is held on the evening before the first day of fasting.
  • The 27th night of Ramadan, when many seek Laylat al-Qadr, is the evening before the 27th day.
  • The night of Eid begins at sunset on the last day of Ramadan, and is when the takbir starts and, in South Asia, the festive Chaand Raat.
  • A Friday begins on Thursday evening, so Thursday night is often called the night of Friday.

The fast itself, however, runs from dawn to sunset, so daily timetables are based on dawn and sunset times. When a school or workplace is told that Eid is on a certain day, it means the daytime of that date, beginning the evening before.

Source: 'Islamic calendar', Wikipedia