What Is the Hijri Calendar and How Is It Calculated?
Published: 2026-11-21 · Last updated: 2026-12-04
Origin of the Hijri calendar
The Hijri calendar is a lunar calendar that begins counting from the year the Prophet Muhammad ﷺ migrated from Mecca to Medina in 622 CE. It follows the Moon's orbit around the Earth, unlike the Gregorian calendar, which follows the Earth's orbit around the Sun.
Length of the Hijri year and month
A Hijri year has 12 lunar months, each lasting 29 or 30 days depending on the sighting of the new crescent moon. This makes the average Hijri year about 354 days long — roughly 10 to 11 days shorter than a Gregorian year.
Because of this gap, Hijri occasions (such as Ramadan and the two Eids) shift earlier by about 10–11 days each Gregorian year, completing a full cycle through the seasons roughly every 33 Gregorian years.
Two ways to determine the start of a month: sighting vs. calculation
There are two main ways to determine the start of a Hijri month: actual sighting of the crescent moon, either by the naked eye or astronomical instruments (the method used for official religious rulings and occasions), and tabular (civil) calculation — a fixed mathematical formula used by most digital tools, including the converter on this site, since it can be programmed with precision, though it may differ by one day from actual sighting.
A real worked example from this site's own tool
To make this concrete: this site's converter turns 1 January 2026 CE — using the fixed tabular (civil) calculation — into 12 Rajab 1447 AH. You can verify this yourself with the converter tool above. This is the actual output of the site's own engine, not an illustrative made-up figure.
When should you check the official announcement?
For this reason, when planning an official religious occasion like the start of Ramadan, Eid al-Fitr, or Eid al-Adha, always check your local religious authority's announcement. Converter tools like this one are best used for everyday purposes — such as finding a birth date in Hijri or scheduling daily matters.