Connect via MCP →

Enter Calculation

Formula

Formula: Gregorian to Hijri Date Calculator

Advertisement

Results

Hijri date of the first day
Rab1 09, 1422 AH
Fri · Julian Day Number 2,452,062
Hijri year 1422
Hijri month 3
Hijri day 9
Days converted 30
Gregorian/Julian date Day of week Hijri date
Jun 01, 2001 Fri Rab1 09, 1422 AH
Jun 02, 2001 Sat Rab1 10, 1422 AH
Jun 03, 2001 Sun Rab1 11, 1422 AH
Jun 04, 2001 Mon Rab1 12, 1422 AH
Jun 05, 2001 Tue Rab1 13, 1422 AH
Jun 06, 2001 Wed Rab1 14, 1422 AH
Jun 07, 2001 Thu Rab1 15, 1422 AH
Jun 08, 2001 Fri Rab1 16, 1422 AH
Jun 09, 2001 Sat Rab1 17, 1422 AH
Jun 10, 2001 Sun Rab1 18, 1422 AH
Jun 11, 2001 Mon Rab1 19, 1422 AH
Jun 12, 2001 Tue Rab1 20, 1422 AH
Jun 13, 2001 Wed Rab1 21, 1422 AH
Jun 14, 2001 Thu Rab1 22, 1422 AH
Jun 15, 2001 Fri Rab1 23, 1422 AH
Jun 16, 2001 Sat Rab1 24, 1422 AH
Jun 17, 2001 Sun Rab1 25, 1422 AH
Jun 18, 2001 Mon Rab1 26, 1422 AH
Jun 19, 2001 Tue Rab1 27, 1422 AH
Jun 20, 2001 Wed Rab1 28, 1422 AH
Jun 21, 2001 Thu Rab1 29, 1422 AH
Jun 22, 2001 Fri Rab1 30, 1422 AH
Jun 23, 2001 Sat Rab2 01, 1422 AH
Jun 24, 2001 Sun Rab2 02, 1422 AH
Jun 25, 2001 Mon Rab2 03, 1422 AH
Jun 26, 2001 Tue Rab2 04, 1422 AH
Jun 27, 2001 Wed Rab2 05, 1422 AH
Jun 28, 2001 Thu Rab2 06, 1422 AH
Jun 29, 2001 Fri Rab2 07, 1422 AH
Jun 30, 2001 Sat Rab2 08, 1422 AH

Tabular (arithmetic) Islamic calendar. The Hijri day begins at sunset of the previous evening, and real religious dates set by moon sighting may differ by about one day.

What this calculator does

This tool converts a Western calendar date (Gregorian or Julian) into the Hijri, the Islamic lunar calendar. The Hijri calendar is a pure lunar calendar of twelve months that alternate between 30 days (full) and 29 days (hollow), with 11 leap years inserted in every 30-year cycle so that month beginnings stay close to the new moon. You can convert a single month or list every day across a span of up to one year.

Two circular calendar wheels showing solar Gregorian year converting to shorter lunar Hijri year
The Gregorian solar year (~365 days) is about 11 days longer than the Hijri lunar year (~354 days).

How to use it

Choose whether your input date is Gregorian or Julian (this matters around the 1582 reform), enter the A.D. year, pick the starting month, choose how long a span to convert, and select the tabular Hijri variant (Standard, Kuwaiti, or Fatimid). The result shows the Hijri date of the first day plus a table of every day in the span with its weekday and converted Hijri date, written as a month abbreviation, day, and year AH.

The formula explained

Both calendars are bridged through the Julian Day Number (JDN), a continuous integer day count. The Western date is first turned into a JDN with the formula above.

$$\text{JDN} = D + \left\lfloor \frac{153m+2}{5} \right\rfloor + 365y + \left\lfloor \frac{y}{4} \right\rfloor - \left\lfloor \frac{y}{100} \right\rfloor + \left\lfloor \frac{y}{400} \right\rfloor - 32045$$$$\text{Hijri} = f\big(\text{JDN} - 1948440\big)$$

The JDN is then mapped into the Islamic calendar using the closed-form tabular (Kuwaiti-algorithm) method: completed 30-year cycles of 10631 days are removed, the remaining days locate the year within the cycle, and further arithmetic yields the Hijri month and day. The weekday comes from JDN modulo 7.

Advertisement
Diagram of Julian Day Number acting as a bridge between the Gregorian and Hijri calendars
The Julian Day Number is the common count of days used to convert between the Gregorian and Hijri calendars.

Worked example

For September 11, 2001 (Gregorian): \(a = 0\), \(y = 6801\), \(m = 6\), giving \(\text{JDN} = 2{,}452{,}164\). Running the tabular conversion produces Jumada al-thani (month 6), day 22, year 1422 AH, on a Tuesday. So the answer is "Jum2 22, 1422 AH".

FAQ

Why might the date differ from my mosque's date? This is an arithmetic (tabular) calendar; real religious dates depend on physical moon sighting and can differ by about a day.

When does the Hijri day start? The Islamic day begins at sunset of the previous Gregorian evening, so a given Hijri date spans from the prior sunset to the named day's sunset.

What is the difference between the three variants? They differ only in which of the 30 cycle years receive an extra day appended to Dhu al-Hijjah, slightly shifting some conversions.

Last updated: