Islamic calendar
Hijri Era: What It Means, When It Started & How It Works
Every Hijri date you've seen, on a mosque noticeboard, a Ramadan announcement, a marriage contract, traces back to a single migration in 622 CE. Here is what the era actually marks, who decided where it should begin, and why its dates keep sliding against the Gregorian calendar you use every other day of the year. Muhasaba, the iOS journaling app behind this site, shows the Hijri date alongside the Gregorian one on every entry, which is the question that sent us looking into where that date actually comes from.
By Zaman Ishtiyaq · October 2026
9 min read
In this guide
- 01Where the era begins
- 02Why Year One doesn't start on the day of the migration
- 03Who set the starting point, and when
- 04How the Hijri calendar is actually built
- 05Reading a Hijri date: AH, BH, and the "H"
- 06Why the dates keep moving against the Gregorian calendar
- 07The four sacred months
- 08Why the era still matters today
- 09Begin tonight
- 10Journal with the Hijri date beside the Gregorian one, free on iOS.
Definition
The Hijri era is the dating system of the Islamic lunar calendar, numbering years from the Hijra (the migration of the Prophet Muhammad ﷺ and his companions from Mecca to Medina in 622 CE) rather than from a ruler's reign or a fixed astronomical event. Dates in this system are marked AH, from the Latin Anno Hegirae, "in the year of the Hijra," and some texts count earlier years as BH, "before the Hijra." The calendar itself is purely lunar: twelve months of twenty-nine or thirty days, totalling 354 or 355 days a year, with no extra month ever inserted to keep pace with the sun. That eleven-day shortfall against the solar year is why Ramadan, Hajj, and every other date tied to the Hijri calendar arrive about eleven days earlier each Gregorian year, slowly working through all four seasons over roughly three decades.
The reference point is the Hijra itself: the migration of the Prophet Muhammad ﷺ and roughly seventy of his followers from Mecca to Yathrib, the city that would be renamed Medina, in 622 CE. The move wasn't a retreat. Mecca's leadership had made it impossible for the small Muslim community to practice openly or safely, and Medina's tribes had invited the Prophet ﷺ to settle among them as an arbiter after years of tribal conflict they could not resolve on their own.
Where the era begins
What happened next is why later generations picked this date over any other available option: within months, Medina had a working constitution (the document historians call the Constitution of Medina, setting out rights and obligations between Muslims, Jews, and other Medinan clans as one political community) and the first instance of Muslims governing themselves rather than surviving under someone else's rule. The Hijra marks the birth of the ummah as a political and social fact, not only a spiritual one, which is part of why it, rather than the Prophet's ﷺ birth or the first revelation, became the fixed point the calendar counts from. Revelation had already been coming for thirteen years in Mecca; what changed at Medina was that the community could finally act on it openly.
Why Year One doesn't start on the day of the migration
A detail that trips people up: 1 Muharram, the first day of the Hijri year, is not the day the Hijra happened. The migration itself is traditionally placed around the twelfth of Rabi al-Awwal, the third month, meaning the Hijra occurred something like two months into what we now call "Year One." When the calendar was formalized, nobody moved the new year to match the event. The existing Arab practice of starting the year at Muharram was kept exactly as it was; only the numbering changed, counting forward from the year the Hijra fell in rather than from any other marker.
That is a small but telling choice. It tells you the calendar's designers were organizing an existing system around a reference event, not inventing a new one from scratch, which matches everything else we know about how the era came together. It also explains why 1 Muharram, the Islamic New Year, is observed quietly rather than with the countdown-and-celebration energy of a Gregorian January 1: the date itself was never the point of the Hijra; the migration two months later was.
Who set the starting point, and when
Classical histories (al-Tabari and Ibn Kathir among them) credit the second caliph, Umar ibn al-Khattab (رضي الله عنه), with formally adopting the Hijra as the calendar's starting point, during his caliphate in roughly 17 AH (sources differ between 16 and 17 AH, which is itself a sign of how this account comes down to us through historical reports rather than a single settled chain). The commonly told version has a practical, almost bureaucratic origin: a provincial governor, often named as Abu Musa al-Ash'ari, wrote to Umar complaining that incoming official letters carried no year, so there was no way to tell which document was more recent.
Umar consulted his companions. Several starting points were proposed: the Prophet's ﷺ birth, the start of revelation, his death. The Hijra was chosen instead, reportedly because it marked the point where truth became distinguishable from falsehood in public life, with a visible community rather than a private mission. It is worth being direct about what kind of claim this is: it is a historical-administrative account, not a ruling anchored in a specific hadith. No authentic hadith establishes the calendar; the attribution rests on how early Muslim historians recorded Umar's decision, which is why reputable fatwa bodies describe it as "the most common opinion" rather than settled fact. Treat the exact year and the precise wording of the consultation as tradition rather than a verified chain back to the event itself. The broad outline (Umar, a dating dispute, the Hijra chosen over other candidates) is well attested across multiple early historians, even where the fine details vary between them.
How the Hijri calendar is actually built
The calendar has twelve lunar months, each beginning with the sighting (or, in modern practice, the calculated birth) of the new crescent moon: Muharram, Safar, Rabi al-Awwal, Rabi al-Thani, Jumada al-Awwal, Jumada al-Thani, Rajab, Sha'ban, Ramadan, Shawwal, Dhul-Qa'dah, and Dhul-Hijjah. Each month runs twenty-nine or thirty days depending on the moon, which is why the Hijri year totals 354 or 355 days rather than a fixed number.
There is no leap month, unlike the Hebrew or older Chinese calendars, which periodically insert an extra month to keep their lunar years roughly aligned with the solar seasons. The Hijri calendar makes no such correction. That is a deliberate feature, not an oversight: the Quran (9:36-37) explicitly criticizes the pre-Islamic Arab practice of inserting an intercalary month to manipulate which months counted as sacred, and the Hijri calendar was built to avoid exactly that manipulation. This is also where real-world disagreement creeps in: because months begin on sighting rather than a fixed rule, different countries and schools of thought sometimes start Ramadan or Eid a day apart, depending on whether they require local sighting, accept a sighting reported from elsewhere, or defer to astronomical calculation instead.
Reading a Hijri date: AH, BH, and the "H"
A Hijri year is usually written with AH after it (Anno Hegirae, Latin for "in the year of the Hijra"), the same way CE or AD follows a Gregorian year. Arabic-language sources more often use the letter H on its own, or write the year out with the Arabic phrase "هـ" as shorthand. Years before the Hijra are occasionally marked BH in English-language academic writing, though this is a modern convenience rather than a label classical scholars themselves used; traditionally, pre-Hijra events were simply described relative to the Hijra in prose ("so many years before the migration") rather than given their own numbered era. You will also see the current Hijri year converted against the Gregorian one on our Hijri date converter, since the eleven-day drift means there is no fixed offset you can just subtract by hand.
Why the dates keep moving against the Gregorian calendar
A solar year is about 365.25 days; a Hijri year, with its twelve lunar months, is about 354.37 days. The gap (roughly 10 to 11 days) means that a fixed Hijri date arrives about eleven days earlier on the Gregorian calendar with each passing year. Ramadan in a given decade might begin in winter; a generation later, in summer. Over approximately 33 Hijri years (about 32 Gregorian years), the calendar completes a full cycle through every season and returns close to where it started.
Someone born in a Ramadan that fell in July could, within their own lifetime, see Ramadan arrive in January: the same fast, the same month name, a completely different season. This is the single most practical thing to understand about the Hijri era if you are trying to plan around it: you cannot assume a Hijri occasion will land near the same Gregorian date two years running, which is exactly why tools and lunar calendars exist rather than people memorizing a fixed conversion.
The four sacred months
The Quran names four of the twelve months as sacred: "Indeed, the number of months with Allah is twelve months in the register of Allah from the day He created the heavens and earth, of which four are sacred" (9:36). The Prophet ﷺ identified them by name in his Farewell Sermon, preserved in Sahih al-Bukhari and Sahih Muslim: Dhul-Qa'dah, Dhul-Hijjah, and Muharram as three in a row, and Rajab on its own between Jumada and Sha'ban. Warfare was historically prohibited during these months except in self-defense, and scholars have long treated them as a season for heightened restraint and reflection rather than ordinary conduct, part of why Muharram, the first of them, is often treated as a natural point for a fresh muhasaba, even though the Hijri new year carries none of the celebratory weight that January 1 does in the Gregorian calendar.
Why the era still matters today
Almost every Muslim-majority country runs its civil life (contracts, school years, government business) on the Gregorian calendar, while reserving the Hijri calendar for religious timing. Fasting in Ramadan, the Hajj pilgrimage, Eid al-Fitr and Eid al-Adha, the anniversary used for zakat al-fitr, and the start of the Islamic year at Muharram are all fixed to the Hijri calendar rather than the Gregorian one. Saudi Arabia is the notable exception that runs an official Hijri calendar (the Umm al-Qura calendar) alongside the Gregorian one for government use, which is also why Saudi public holidays can look misaligned with the Hijri dates announced by mosques elsewhere: the two systems are calculated slightly differently depending on whether a country relies on moon sighting or astronomical prediction.
The calendar also governs smaller, more personal timing than most people realize: the one-lunar-year holding period that makes wealth liable for zakat is counted in Hijri years, not Gregorian ones, so two people who became eligible to pay zakat on the same Gregorian date can owe it on different days the following year. This split matters practically everywhere it applies: a Ramadan date you plan a year ahead using the Gregorian calendar will be wrong by roughly eleven days, which is why mosques and Islamic organizations publish their calendars a year at a time rather than printing a permanent conversion table.
Begin tonight
The Hijri era is, in the end, a record of a choice: to date Islamic history from the migration that turned a persecuted following into a functioning community, rather than from a birth, a revelation, or a death. Thirteen centuries later, that choice still sets the rhythm of fasting, pilgrimage, and the sacred months, even for the millions of Muslims who check a Gregorian calendar every other day of the year.
Knowing where the date comes from doesn't change how you fast or when Eid falls, but it changes how the number reads: not an arbitrary count, but a running tally of years since a community first governed itself in the open. The next time you open a muhasaba entry and see today's Hijri date sitting beside the Gregorian one, that is the whole history behind it.
Reflect by the Hijri date
Journal with the Hijri date beside the Gregorian one, free on iOS.
The Muhasaba app shows today's Hijri date on every entry, so your nightly reflection stays anchored to the calendar the Prophet's ﷺ own community kept.
Download on the App StoreNew to muhasaba? Learn what muhasaba al-nafs means →
