What is the Hijri to Gregorian Date Converter?
This tool converts a date in the Hijri (Islamic lunar) calendar into its corresponding date in the Gregorian (Western) calendar. It uses the arithmetic, or tabular, Islamic calendar rather than an astronomical crescent-sighting calendar, so a computed date may differ by plus or minus one day from a religiously observed date. The Hijri calendar is a pure lunar calendar of 12 months totalling 354 days in a common year and 355 days in a leap year. An Islamic day begins at sunset of the preceding Gregorian day, so the Gregorian date shown corresponds to the daytime portion. This conversion is universal and not tied to any country.
How to use it
Pick a calendar type (Standard, Kuwaiti, or Fatimid), each of which uses a slightly different set of leap years within the 30-year cycle. Choose the starting Hijri month and enter the Hijri year in AH. Then select how long a period to convert: one month, two months, half a year, or a full year. The result shows the Gregorian start date (day 1 of the chosen month), the Gregorian end date (last day of the final month), the total number of days, and a month-by-month table.
The formula
The Hijri date is first converted to a Julian Day Number (JDN): $$\text{JDN} = \text{day} + \left\lceil 29.5 \times (\text{month} - 1) \right\rceil + (\text{year} - 1) \times 354 + \text{leapDaysBefore}(\text{year}) + \text{EPOCH} - 1,$$ with \(\text{EPOCH} = 1948440\). The JDN is then mapped to a Gregorian date with the Fliegel-Van Flandern algorithm. Each 30-year cycle contains 11 leap years, giving 10631 days per cycle.
Worked example
Convert 1 Ramadan 1447 AH (Standard). \(\left\lceil 29.5 \times 8 \right\rceil = 236\); \(1446 \times 354 = 511884\); leap days before \(= 530\); $$\text{JDN} = 1 + 236 + 511884 + 530 + 1948440 - 1 = 2461090,$$ which is 18 February 2026. Ramadan has 30 days, so the period ends 19 March 2026.
Leap Years in the 30-Year Cycle by Calendar Type
The tabular Hijri calendar repeats every 30 years. In each cycle, 11 years are leap years (355 days) and 19 are common years (354 days). The calculator finds a year's position in the cycle and checks whether that position is in the leap list for the chosen calendar type.
| Calendar type | Leap-year positions in the cycle (1–30) | Leap years per cycle | Days per cycle |
|---|---|---|---|
| Standard (Type II) | 2, 5, 7, 10, 13, 16, 18, 21, 24, 26, 29 | 11 | 10631 |
| Kuwaiti (Microsoft) | 2, 5, 7, 10, 13, 15, 18, 21, 24, 26, 29 | 11 | 10631 |
| Fatimid (Bohra / Type IIb-style) | 2, 5, 8, 10, 13, 16, 19, 21, 24, 27, 29 | 11 | 10631 |
Note: The rule depends only on the year's position in the cycle, which is the year mod 30 (a remainder of 0 means position 30, which is a common year in all three types). Every type has \(30 \times 354 + 11 = 10631\) days per cycle, so the types differ only in which years carry the extra day. Because of this, converted dates can differ by one day between types.
Hijri Months and Their Lengths
In the tabular calendar, odd-numbered months have 30 days and even-numbered months have 29 days. The twelfth month, Dhu al-Hijjah, gains a 30th day in a leap year.
| No. | Month | Days |
|---|---|---|
| 1 | Muharram | 30 |
| 2 | Safar | 29 |
| 3 | Rabi' al-awwal | 30 |
| 4 | Rabi' al-thani | 29 |
| 5 | Jumada al-awwal | 30 |
| 6 | Jumada al-thani | 29 |
| 7 | Rajab | 30 |
| 8 | Sha'ban | 29 |
| 9 | Ramadan | 30 |
| 10 | Shawwal | 29 |
| 11 | Dhu al-Qi'dah | 30 |
| 12 | Dhu al-Hijjah | 29 (30 in a leap year) |
Totals: a common year has \(6 \times 30 + 6 \times 29 = 180 + 174 = 354\) days. A leap year has \(354 + 1 = 355\) days.
Interpreting the Converted Date
- Tabular civil date, not a sighting. The result follows fixed arithmetic rules. It is not an official moon-sighting date, and actual calendars based on observation or astronomical criteria can differ by a day or more.
- The day begins at sunset. A Hijri day starts at sunset, while a Gregorian day starts at midnight. An event on the evening that begins a Hijri day therefore falls on the evening of the previous Gregorian date. The daytime part of that Hijri day falls on the Gregorian date shown.
- Day count equals the sum of month lengths. The conversion counts the days from the calendar epoch. That count is the days in all complete years, plus the lengths of the complete months in the current year, plus the day of the month. The Julian Day Number is then converted to a Gregorian date.
- The Hijri year is shorter. The average Hijri year is \(10631 / 30 \approx 354.37\) days, against about 365.24 days for the Gregorian year. That is roughly 11 days shorter, so Hijri dates move earlier through the Gregorian seasons each year.
- Confirm important dates locally. For the start of Ramadan, Eid, or any other date with religious significance, check with your local religious or official authority. This tool gives a calendar conversion only and offers no religious rulings.
FAQ
Why might the date be off by a day? The tabular calendar is purely arithmetic; clerics who confirm a new month by post-sunset crescent observation can report a date one day earlier or later.
Which calendar type should I choose? Standard (Tabular type II) is the most common; Kuwaiti matches the Microsoft algorithm; Fatimid follows the Ismaili Bohra rule.
Can I convert years before 1 AH? No - the converter requires a positive Hijri year, since earlier years extrapolate before the calendar epoch.