Gregorian to Hijri Date Converter (Islamic Calendar)
The Hijri (Islamic) year, month and day for a Gregorian date, using the standard arithmetical (tabular) Islamic calendar.
Results
What this tool does
The Islamic calendar counts lunar months of 29 or 30 days from the Hijra in 622 CE, so its year is about 11 days shorter than the solar year and its months drift through the seasons. This converter uses the tabular calendar, an arithmetic model in which months alternate between 30 and 29 days and 11 years in every cycle of 30 have a leap day. It is accurate to the model, but real calendars are set by observation of the new moon (or, in Saudi Arabia, the Umm al-Qura tables), so the actual date in a given country, especially for Ramadan and the two Eids, can differ by a day or two.
Formula
days since 1 Muharram 1 AH = JDN − 1 948 440 · year = ⌊(30 N + 10 646) ÷ 10 631⌋ · months alternate 30 and 29 days · 11 leap years in every 30
Variables
| Symbol | Meaning | Unit |
|---|---|---|
gy | Year | — |
gm | Month (1–12) | — |
gd | Day of the month | — |
HY | Hijri year (AH) | — |
HM | Hijri month (1–12) | — |
HD | Hijri day of the month | — |
HN | Name of the Hijri month | — |
Worked example
- Year2026
- Month (1–12)10
- Day of the month11
- Hijri year (AH)1448
- Hijri month (1–12)4
- Hijri day of the month28
- Name of the Hijri monthRabi' al-thani
Limitations
- The result is an estimate based only on the values you type. Real situations often include factors this calculator does not know about.
- Dates are handled in the proleptic Gregorian calendar, which is the one computers use. For dates before the Gregorian reform of 1582 this differs from what was written at the time.