The Islamic Hijri calendar
The purely lunar Islamic calendar - its 622 CE epoch, the ban on intercalation, crescent sighting versus calculation, and its solar offshoots.

Overview
The Hijri calendar is the religious calendar of Islam and one of the few purely lunar calendars in wide use. A year is 12 lunar months and has 354 or 355 days, with no leap month to hold it to the seasons. It runs about 11 days short of the solar year (a lunar year is about 354.37 days), so every date drifts back through the seasons, completing a circuit in about 33 Hijri years. Years are counted from the Hijra, the emigration of Muhammad from Mecca to Medina in 622 CE, and written AH (anno Hegirae). The year 1448 AH began on 16 June 2026 CE by the Umm al-Qura calendar and runs to about 5 June 2027.
Origins and history
Pre-Islamic Arabia used twelve months, four of them sacred (Dhu al-Qa'da, Dhu al-Hijja, Muharram and Rajab), in which fighting was forbidden. Some month names look seasonal (Ramadan, from a root for scorching heat, was glossed as the month of great heat), and many scholars infer that the Meccan calendar was once held to the seasons by an occasional extra month, as described in The length of the year and intercalation and done in the The Hebrew (Jewish) calendar and the Sumerian and Babylonian calendars. This is contested (see Controversies).
The Quran (9:36-37) fixes the number of months at twelve, four of them sacred, and condemns nasi', the postponement or transposition of a sacred month, as an addition to unbelief. Tradition places the prohibition at Muhammad's Farewell Pilgrimage in 10 AH (632 CE), on 9 Dhu al-Hijja (6 March 632 CE); since then the calendar has been strictly lunar.
The era itself is later. According to the traditional account, around 17 AH (638 CE) Abu Musa al-Ash'ari, a governor in Basra, complained that the caliph Umar ibn al-Khattab's letters carried no year, and Umar then made the year of the Hijra year 1. Tradition credits Uthman with proposing that the year start with Muharram. The epoch is therefore not the day of the emigration, which fell about 66 days into the year, around 8 Rabi' al-Awwal (September 622 CE). It is 1 Muharram, which the tabular calendar places on Friday 16 July 622 CE in the Julian calendar; the Islamic day began at the preceding sunset, on the evening of 15 July. The earliest surviving document that pairs a Hijri date with a Coptic date is an Egyptian papyrus of 22 AH (643 CE), known as PERF 558; it is a bilingual Greek-Arabic document recording a requisition of sheep. See Eras, epochs and how years are counted.
How it works
Observed months. The day begins at sunset (see The day: dawn, morning, noon, twilight and when the day begins). On the evening of the 29th day of a month, observers look for the thin new crescent (hilal) low in the western sky. If it is seen, the new month starts that evening; if not, the month runs to 30 days. The mean month follows the synodic month of about 29.53 days described in Moon phases and the lunar month. Because visibility depends on place and weather, countries can start a month a day or two apart.
The tabular calendar. Medieval Muslim astronomers built an arithmetic scheme for their tables. Months alternate between 30 and 29 days, giving 354 days, and in 11 years out of every 30 one day is added to the last month, Dhu al-Hijja, giving 355. A 30-year cycle holds 360 months and 10,631 days, a mean month of 29.53056 days, which slips against the true Moon by one day in about 2,500 solar years, although it can differ from observed dates by a day or two at any given time. The most common list of leap years in the cycle is 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29; a variant uses 15 instead of 16, and al-Biruni and the Ismaili Tayyibi (Bohra) schemes use other patterns. Historians use it for date conversion, and the Dawoodi Bohras follow a Fatimid-era tabular calendar in religious life.
Umm al-Qura. Saudi Arabia's civil calendar is calculated by the astronomical institute at KACST in Riyadh. Its rule has changed over time. From 1392 to 1419 AH it depended on the new moon's time relative to Saudi midnight; from 1420 to 1422 AH a month began if the Moon set after the Sun at Mecca; and since 1423 AH (March 2002 CE) a month begins the next day if, on the 29th, conjunction has occurred before sunset at Mecca and the Moon sets after the Sun. This does not ensure the crescent can be seen: by one analysis the crescent is invisible to the naked eye on the first evening in about 75% of cases, so Umm al-Qura often runs a day ahead of sighting-based calendars. Bahrain, Qatar and the UAE follow the calendar too.
What it was used for
The calendar sets the religious year: the fast of Ramadan (month 9), Eid al-Fitr on 1 Shawwal, and Eid al-Adha on 10 Dhu al-Hijja. The Hajj in Dhu al-Hijja also follows it. Because the year is about 11 days short, a Ramadan fast in short winter days comes round to long summer days roughly 16 years later. See Sacred time, ritual and prayer hours.
A lunar year suits ritual but not farming or land tax. Muslim states therefore kept solar calendars alongside it: the Coptic calendar in Egypt, Syrian (Julian) months in the Levant, Persian solar years for the land tax, and star calendars (anwa') for farmers (unverified). See Calendars as power: religion, state, tax and law and Calendars for farming and seasons.
The Ottoman Rumi calendar is the best-known hybrid: Julian months, a year beginning in March, and Hijri-style year numbers counted from 622 CE. It grew out of an older fiscal calendar. In 1677 the head treasurer Hasan Pasha proposed dropping one year every 33 years to keep the fiscal count in step with the solar year; in 1740 (1152 AH) March became the start of the fiscal year, and on 13 March 1840 CE (1 March 1256 AH) the Julian calendar became the official civil calendar under the name Rumi. In 1917 CE the calendar dropped 13 days (the day after 15 February 1332 AH was 1 March 1333 AH, equal to 1 March 1917 Gregorian) and 1 January 1918 became 1 January 1334, and Turkey abandoned the era by an act of December 1925, using the Gregorian year from 1 January 1926 CE. Iran and Afghanistan use a different offshoot, the Solar Hijri calendar, which keeps the 622 CE epoch but counts solar years; see Iranian calendars: Zoroastrian, Jalali and Solar Hijri.
Today and legacy
Most Muslim-majority states now use the Gregorian calendar for civil life and the Hijri calendar for religion (unverified). Saudi Arabia was the main exception; on 14 February 2016 CE it moved the monthly pay of government employees to the Gregorian calendar as a cost-cutting measure, keeping the Hijri calendar for religious purposes. Turkey fixes religious dates by calculation; its rule from 1979 to 2014 required the computed crescent to be over 5 degrees above the horizon and 8 degrees from the Sun somewhere on Earth, and since 2014 it requires the computed crescent to be above Ankara's horizon at sunset. The Fiqh Council of North America endorsed calculation to set all month starts in 2006 CE, and the European Council for Fatwa and Research followed in 2007.
Controversies and debates

What was nasi'? The medieval writer Abu Ma'shar al-Balkhi (787-886 CE) is named as the first to read it as intercalation, an added month that kept the pilgrimage in a favourable season, and al-Biruni and al-Mas'udi later agreed; on this view the Arabs adopted a lunisolar scheme about 200 years before the Hijra, with seven months added in 19 years or nine in 24, though scholars disagree on the scheme. The rival reading, found in the biographical tradition of Ibn Hisham and in the dictionary of Ibn Manzur, holds that nasi' only postponed the sacred months, shifting the ban on fighting when convenient, within a calendar that stayed lunar. Some Western scholars side with intercalation: Caussin de Perceval argued in 1843 that the Arabs took the practice from the Jews of Yathrib, though not the 19-year cycle, and A. Moberg wrote the Encyclopaedia of Islam entry on the term, linking it to the Hebrew nasi'. The 19th-century Ottoman scholar Mahmud Effendi argued the opposite, that the pre-Islamic year was purely lunar and nasi' only postponed a sacred month. It matters: if months were added until 10 AH, dates in Muhammad's lifetime cannot be converted by running the lunar calendar backwards, and carry an uncertainty of up to several months. The Hijra itself would then fall earlier in the solar year, around April in one proposal.
Sighting or calculation? Most traditional theologians oppose calculation as a way to start a month, holding that Muhammad's instruction was to observe the crescent. Advocates of calculation include the Egyptian jurist Ahmad Muhammad Shakir (1939 CE), Yusuf al-Qaradawi (2004 CE), the Fiqh Council of North America (2006 CE) and the European Council for Fatwa and Research (2007 CE). Observers who insist on sighting criticise Umm al-Qura, and around Ramadan and Dhu al-Hijja observed and calculated dates can differ by one to three days.
Visibility and official calendars. Umm al-Qura starts months by calculation, and by one analysis the crescent is invisible to the naked eye on the first evening in about 75% of cases, so its Ramadan and Dhu al-Hijja dates often differ from those of communities that rely on sighting. The Islamic Crescents' Observation Project (ICOP), founded in 1998 CE under the International Astronomical Center, publishes sighting reports used to test such announcements.
The epoch and its name. That the count starts in 622 CE is consensus. The usual date for Umar's decision is 17 AH, though early reports differ by a year or so. Revisionist historians Patricia Crone and Michael Cook, in Hagarism (1977), argue that the hijra was a migration to Palestine rather than the move to Medina, a reading most scholars do not accept (unverified).
The "Kuwaiti algorithm". Microsoft has said its default Hijri conversion in Windows was derived from statistical analysis of Kuwaiti practice and called it the "Kuwaiti algorithm". Rob van Gent argues it is simply the standard tabular algorithm of medieval astronomical tables, so it is not an official Kuwaiti method.
Debunked claims. The Hijri year does not begin on the anniversary of the emigration, which fell about two months into the first year, and Umm al-Qura is not based on actual crescent sighting.
Sources
- Elements of the Jewish and Muhammadan Calendars (S.B. Burnaby, 1901, Internet Archive) — seasonal month names including Ramadan, Caussin de Perceval on intercalation learned from the Jews, Mahmud Effendi's lunar-only view, Umar's era, epoch date.
- The Dotting of a Script and the Dating of an Era (Alan Jones, 1998) — PERF 558, bilingual Greek-Arabic, dated 22 AH.
- The Umm al-Qura calendar of Saudi Arabia: criteria (R.H. van Gent, Utrecht University) — rule periods, 1423 AH change, 75% invisible crescents.
- The Umm al-Qura calendar of Saudi Arabia: introduction (R.H. van Gent, Utrecht University) — countries using it, differing Ramadan and Dhu al-Hijja dates, ISNA, FCNA and ECFR.
- Islamic-Western calendar converter: introduction (R.H. van Gent, Utrecht University) — key observance days, Hajj, arithmetical schemes.
- International Astronomical Center / ICOP — ICOP founded 1998.
- Moonsighting.com — FCNA and ISNA follow calculated Hijri dates.