Hijri to Gregorian Date Converter

Hijri to Gregorian Date Converter

Popular AI Skill PRO

Enter Calculation

AH (year)

Formula

JDN=⌈29.5(m−1)⌉+354(y−1)+L(y)+EPOCHwhere{m=Hijri Monthy=Hijri YearL(y)=leap days before year y(from Calendar Type)EPOCH=1948440\begin{gathered} \text{JDN} = \left\lceil 29.5\,(m-1) \right\rceil + 354\,(y-1) + L(y) + \text{EPOCH} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} m &= \text{Hijri Month} \\ y &= \text{Hijri Year} \\ L(y) &= \text{leap days before year } y \;(\text{from } \text{Calendar Type}) \\ \text{EPOCH} &= 1948440 \end{aligned} \right. \end{gathered}
Show calculation steps (1)
  1. Julian Day Number to Gregorian Date

    (Y,M,D)=GregorianFrom(JDN)overPeriod (months)\begin{gathered} (\,Y,\,M,\,D\,) = \text{GregorianFrom}(\text{JDN}) \\[1.5em] \text{over}\quad \text{Period (months)} \end{gathered}

    The JDN is converted to the Gregorian date (year-month-day) using the standard astronomical algorithm; the conversion spans Period = periodCount months from the start.

Usage stats

Advertisement

Results

Gregorian start date
2026-02-18
corresponds to day 1 of the selected Hijri month
Gregorian end date 2026-03-19
Total days in period 30
Hijri month Gregorian (1st day) Days
Ramadan 1447 AH 2026-02-18 30

Arithmetic (tabular) Islamic calendar. Sighting-based observed dates may differ by plus or minus one day. An Islamic day begins at sunset of the previous Gregorian day.

Report an error on this page

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.

Two side-by-side calendar pages, one lunar with a crescent moon, one solar with a sun, linked by a conversion arrow
The converter maps a Hijri lunar date onto the Gregorian solar calendar.

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.

Advertisement
Diagram showing stacked components adding up to a Julian Day Number on a number line
Each term — day, month, year and leap-day correction — accumulates into a Julian Day Number.

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.

Advertisement

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.

Last updated:

Most popular in Time and Date

View all Time and Date calculators