Skip to content
  1. Home
  2. Hijri calendar

The Islamic year

Hijri Calendar: How the Islamic Calendar Works, Where It Began and Why It Follows the Moon

The lunar calendar of the Muslims: its start at the Hijrah, its months, its moon and how it differs from the Gregorian year

The Hijri calendar is the Islamic calendar: a lunar calendar of twelve months that counts the years from the Hijrah, the Prophet’s ﷺ migration from Makkah to Madinah in 622 CE. Each month begins with the new crescent moon, so a Hijri year has 354 or 355 days and moves about 11 days earlier each Gregorian year. Muslims use it to fix Ramadan, the two Eids, Hajj and every other occasion. Today is 12 Jumada al-Akhirah 1448, in the year 1448 AH.

Card titled Hijri calendar: a lunar calendar of 12 months, 354 or 355 days, counted from the Hijrah of 622 CE

What the Hijri calendar is

يَسۡـَٔلُونَكَ عَنِ ٱلۡأَهِلَّةِۖ قُلۡ هِيَ مَوَٰقِيتُ لِلنَّاسِ وَٱلۡحَجِّۗ وَلَيۡسَ ٱلۡبِرُّ بِأَن تَأۡتُواْ ٱلۡبُيُوتَ مِن ظُهُورِهَا وَلَٰكِنَّ ٱلۡبِرَّ مَنِ ٱتَّقَىٰۗ وَأۡتُواْ ٱلۡبُيُوتَ مِنۡ أَبۡوَٰبِهَاۚ وَٱتَّقُواْ ٱللَّهَ لَعَلَّكُمۡ تُفۡلِحُونَ ١٨٩

yasalūnaka ʿani l-ahilati qul hiya mawāqītu lilnnāsi wal-ḥaji walaysa l-biru bi-an tatū l-buyūta min ẓuhūrihā walākinna l-bira mani ittaqā watū l-buyūta min abwābihā wa-ittaqū l-laha laʿallakum tuf'liḥūna

They ask you, [O Muḥammad], about the crescent moons. Say, "They are measurements of time for the people and for ḥajj [pilgrimage]." And it is not righteousness to enter houses from the back, but righteousness is [in] one who fears Allāh. And enter houses from their doors. And fear Allāh that you may succeed.

Quran, Al-Baqarah 2:189

Allah made the phases of the moon a measure of time for people and for Hajj. The Hijri calendar follows them: a month is one cycle of the moon, from one new crescent to the next.

  • Lunar: months of 29 or 30 days, following the moon alone.
  • Twelve months: from Muharram to Dhul Hijjah. See the Hijri months.
  • 354 or 355 days: about 11 days shorter than the solar year.
  • Days begin at sunset: an Islamic date, and its night, begin at Maghrib. That is why the night of the 27th of Ramadan comes before its day.

Hijri meaning

Hijri comes from hijrah, migration. The calendar is named after the Hijrah of the Prophet ﷺ, and its years are written AH, for the Latin anno Hegirae, “in the year of the Hijrah”.

How the Hijri calendar began

إِلَّا تَنصُرُوهُ فَقَدۡ نَصَرَهُ ٱللَّهُ إِذۡ أَخۡرَجَهُ ٱلَّذِينَ كَفَرُواْ ثَانِيَ ٱثۡنَيۡنِ إِذۡ هُمَا فِي ٱلۡغَارِ إِذۡ يَقُولُ لِصَٰحِبِهِۦ لَا تَحۡزَنۡ إِنَّ ٱللَّهَ مَعَنَاۖ فَأَنزَلَ ٱللَّهُ سَكِينَتَهُۥ عَلَيۡهِ وَأَيَّدَهُۥ بِجُنُودٖ لَّمۡ تَرَوۡهَا وَجَعَلَ كَلِمَةَ ٱلَّذِينَ كَفَرُواْ ٱلسُّفۡلَىٰۗ وَكَلِمَةُ ٱللَّهِ هِيَ ٱلۡعُلۡيَاۗ وَٱللَّهُ عَزِيزٌ حَكِيمٌ ٤٠

illā tanṣurūhu faqad naṣarahu l-lahu idh akhrajahu alladhīna kafarū thāniya ith'nayni idh humā fī l-ghāri idh yaqūlu liṣāḥibihi lā taḥzan inna l-laha maʿanā fa-anzala l-lahu sakīnatahu ʿalayhi wa-ayyadahu bijunūdin lam tarawhā wajaʿala kalimata alladhīna kafarū l-suf'lā wakalimatu l-lahi hiya l-ʿul'yā wal-lahu ʿazīzun ḥakīmun

If you do not aid him [i.e., the Prophet (ﷺ)] - Allāh has already aided him when those who disbelieved had driven him out [of Makkah] as one of two, when they were in the cave and he [i.e., Muḥammad (ﷺ)] said to his companion, "Do not grieve; indeed Allāh is with us." And Allāh sent down His tranquility upon him and supported him with soldiers [i.e., angels] you did not see and made the word of those who disbelieved the lowest, while the word of Allāh - that is the highest. And Allāh is Exalted in Might and Wise.

Quran, At-Tawbah 9:40

In the years after the Prophet ﷺ, letters and records in the growing Muslim state needed dates. Historians report that the caliph Umar ibn al-Khattab gathered the Companions to agree on a calendar, around 17 years after the Hijrah.

They chose to count from the Hijrah, the event that separated the time of hardship in Makkah from the time of the Muslim community in Madinah, rather than from the Prophet’s ﷺ birth or death. Muharram was kept as the first month, because it follows the Hajj. Year 1 AH began in the summer of 622 CE.

The Islamic year name

The calendar is called the Hijri calendar, the Islamic calendar, the Muslim calendar or, informally, the Arabic calendar. Each year is named by its number: the year 1448 AH now.

How a Hijri month is fixed

هُوَ ٱلَّذِي جَعَلَ ٱلشَّمۡسَ ضِيَآءٗ وَٱلۡقَمَرَ نُورٗا وَقَدَّرَهُۥ مَنَازِلَ لِتَعۡلَمُواْ عَدَدَ ٱلسِّنِينَ وَٱلۡحِسَابَۚ مَا خَلَقَ ٱللَّهُ ذَٰلِكَ إِلَّا بِٱلۡحَقِّۚ يُفَصِّلُ ٱلۡأٓيَٰتِ لِقَوۡمٖ يَعۡلَمُونَ ٥

huwa alladhī jaʿala l-shamsa ḍiyāan wal-qamara nūran waqaddarahu manāzila litaʿlamū ʿadada l-sinīna wal-ḥisāba mā khalaqa l-lahu dhālika illā bil-ḥaqi yufaṣṣilu l-āyāti liqawmin yaʿlamūna

It is He who made the sun a shining light and the moon a derived light and determined for it phases - that you may know the number of years and account [of time]. Allāh has not created this except in truth. He details the signs for a people who know.

Quran, Yunus 10:5

A new month begins when the crescent is seen after sunset on the 29th of the month before. If it is not seen, the month completes 30 days. The Prophet ﷺ said: fast when you see it and end the fast when you see it, and if it is hidden, complete thirty days (Sahih al-Bukhari 1909).

  • Local sighting: many communities wait for the crescent to be seen in their own country.
  • Following another country: some follow the announcement from Saudi Arabia or another country.
  • Calculated calendars: Umm al-Qura, the official calendar of Saudi Arabia, and others are worked out in advance by astronomy.

This is why Ramadan or Eid can begin a day apart in different places. The dates on DonateOpenly’s pages follow Umm al-Qura, and the pages say when your mosque may differ.

Hijri calendar vs Gregorian calendar

  • Basis: the Hijri calendar follows the moon; the Gregorian follows the sun.
  • Length: 354 or 355 days against 365 or 366.
  • Seasons: Gregorian months stay in their season; Hijri months move through all the seasons in about 33 years, so Ramadan falls in winter and in summer within a lifetime.
  • Count: about 103 Hijri years pass in 100 Gregorian years, which is why the Hijri count gains on the Gregorian one.

Converting Hijri and Gregorian dates

To turn a Hijri date into a Gregorian one, or the other way, use the converter on the Islamic date today page.

The solar Hijri calendar

Iran and Afghanistan use a different civil calendar, the solar Hijri calendar. It also counts from the Hijrah but follows the sun, with months fixed to the seasons. Islamic occasions everywhere still follow the lunar Hijri months.

Written for DonateOpenly from the sources it cites, and awaiting review by ulama. Dates are worked out from the Islamic calendar and depend on the moon sighting.

Choose a charity, then give on its own website

Every registered UK Muslim charity has a page on DonateOpenly: what it does, where its work reaches people and where donors review it.

Find a charity

Hijri calendar: questions

What is the Hijri calendar?

The Hijri calendar is the Islamic lunar calendar of twelve months, counted from the Prophet’s ﷺ Hijrah to Madinah in 622 CE.

What Hijri year is it now?

It is 1448 AH. Today’s full date is 12 Jumada al-Akhirah 1448.

Who started the Hijri calendar?

Historians report that the caliph Umar ibn al-Khattab and the Companions agreed on it, counting the years from the Hijrah.

Why is the Islamic calendar called Hijri?

Because it counts from the Hijrah, the migration of the Prophet ﷺ from Makkah to Madinah.

Why do Islamic dates move every year?

The Hijri year follows the moon and is about 11 days shorter than the solar year, so each occasion comes about 11 days earlier each Gregorian year.

Is the Hijri calendar the same in every country?

The months are the same, but their start can differ by a day, because some countries follow a local moon sighting and others a calculated calendar.