The History of the Islamic (Hijri) Calendar
تاريخ التقويم الإسلامي (الهجري) — من العصر الجاهلي إلى العصر الحديث
Pre-Islamic Origins of Lunar Timekeeping
Long before the advent of Islam, the Arab peoples of the Arabian Peninsula used a lunisolar calendar to track time. This pre-Islamic calendar (known as the calendar of the Jāhiliyyah) consisted of twelve lunar months, but it included an intercalary month — called Nasī' (النسيء) — that was periodically inserted to keep the calendar roughly aligned with the seasons. This practice of intercalation ensured that the annual pilgrimage to Mecca and the great trade fairs occurred during favorable weather and harvest periods.
The pre-Islamic Arabs had already established the names of the twelve months that are still used in the Hijri calendar today: Muharram, Safar, Rabi' al-Awwal, Rabi' al-Thani, Jumada al-Ula, Jumada al-Thania, Rajab, Sha'ban, Ramadan, Shawwal, Dhul Qi'dah, and Dhul Hijjah. Four of these months — Muharram, Rajab, Dhul Qi'dah, and Dhul Hijjah — were considered sacred (الأشهر الحرم), during which warfare was prohibited.
The Quranic Prohibition of Intercalation
The practice of Nasī' (intercalation) was explicitly banned in the Quran in Surah At-Tawbah (9:36-37): "Indeed, the number of months with Allah is twelve months in the register of Allah from the day He created the heavens and the earth; of these, four are sacred." The verse continues to describe the postponement of sacred months as an "increase in disbelief."
This prohibition transformed the Arab calendar from a lunisolar system (which stayed roughly aligned with seasons) into a purely lunar calendar. As a result, the Islamic calendar is approximately 11 days shorter than the Gregorian year (354-355 days vs. 365-366 days), and Islamic months rotate through all seasons over a cycle of approximately 33 years. This means that Ramadan, for example, occurs in summer in some decades and in winter in others.
The Establishment of the Hijri Calendar
The Islamic calendar as a formal dating system was established during the caliphate of Umar ibn al-Khattab (رضي الله عنه) in approximately 638 CE (17 AH). According to historical accounts, the caliph recognized the need for a unified dating system after receiving a document dated simply "Sha'ban" with no year indicated, creating confusion about when it was written.
After consultation with other companions of the Prophet, Umar decided to begin the calendar from the year of the Hijra — Prophet Muhammad's migration from Mecca to Medina in 622 CE. This event was chosen not because it was the most important event in Islamic history (the first revelation or the Prophet's birth could also have been chosen), but because it represented a clear, well-documented turning point: the establishment of the first Muslim community in Medina.
The epoch was set to the first day of Muharram in the year of the Hijra, which corresponds approximately to July 16, 622 CE in the proleptic Julian calendar. This date marks 1 Muharram 1 AH (Anno Hegirae). The calendar has been in continuous use since then, making it one of the oldest continuously used calendars in the world.
The Twelve Months of the Hijri Calendar
| # | Name | بالعربية | Meaning & Significance |
|---|---|---|---|
| 1 | Muharram | محرّم | "Forbidden" — Sacred month, warfare prohibited. 10th Muharram is Ashura. |
| 2 | Safar | صفر | "Void" — Named because pre-Islamic Arabs left homes empty during travel. |
| 3 | Rabi' al-Awwal | ربيع الأول | "First Spring" — Month of the Prophet's birth (Mawlid). |
| 4 | Rabi' al-Thani | ربيع الثاني | "Second Spring" — Continuation of the spring period. |
| 5 | Jumada al-Ula | جمادى الأولى | "First of Parched Land" — Originally a dry/winter month. |
| 6 | Jumada al-Thania | جمادى الثانية | "Second of Parched Land" — Continuation. |
| 7 | Rajab | رجب | "Respect" — Sacred month. Night Journey (Isra' and Mi'raj) on 27th Rajab. |
| 8 | Sha'ban | شعبان | "Scattered" — Month before Ramadan. 15th Sha'ban (Laylat al-Bara'ah). |
| 9 | Ramadan | رمضان | "Burning Heat" — Month of fasting. Laylat al-Qadr in last 10 nights. |
| 10 | Shawwal | شوّال | "Raised" — Eid al-Fitr on 1st Shawwal. Six days of optional fasting. |
| 11 | Dhul Qi'dah | ذو القعدة | "Master of Rest" — Sacred month, preparation for Hajj. |
| 12 | Dhul Hijjah | ذو الحجة | "Master of Pilgrimage" — Sacred month. Hajj on 8-12th. Eid al-Adha on 10th. |
Modern Hijri Calendar Systems
Today, multiple systems exist for determining the Hijri calendar, reflecting the diversity of Islamic jurisprudential opinions:
- Physical Sighting (Ru'yah): Most traditionalist approach. The new month begins only when reliable witnesses report seeing the crescent moon. Used by Saudi Arabia's Supreme Court, Pakistan's Ruet-e-Hilal Committee, and many others.
- Calculated Calendar (Hisab): Uses astronomical formulas to predict when the crescent will be visible. Turkey's Diyanet and some Southeast Asian countries use this approach.
- Umm al-Qura Calendar: Saudi Arabia's civil calendar. Uses calculated conjunction times with a visibility criterion. Dates may differ from the religious sighting announcement.
- Unified Calendars: Various attempts have been made to create a single global Islamic calendar (such as the Fiqh Committee of the Organization of Islamic Cooperation), but consensus has not yet been achieved.
Moon Visibility Explorer supports all perspectives by providing scientifically-grounded visibility predictions using the Odeh V-criterion, allowing users to make informed decisions regardless of which methodology their community follows.
Explore the Hijri Calendar
Want to see when each Islamic month begins for your city? Use our Moon Visibility Explorer to generate a complete 12-month lunar calendar, or read our User Guide to learn how.