How to Convert Gregorian to Hijri Dates

Islamic calendar6 min read

A Gregorian date can be converted to a Hijri date with a conversion table, an online converter or an approximate formula. The Hijri year is lunar and has 354 or 355 days, about 11 days fewer than the Gregorian year, so the same Hijri date falls earlier by about 11 days each year. Because months begin with the sighting of the moon, a converted date may differ by a day from the local one.

1

Why the two calendars differ

The Gregorian calendar follows the sun and has 365 days, or 366 in a leap year. The Hijri calendar follows the moon. Allah says that He made "the sun a shining light and the moon a derived light and determined for it phases, that you may know the number of years and the account of time" (Quran 10:5), and that "the number of months with Allah is twelve [lunar] months in the register of Allah" (Quran 9:36). The new moons are "measurements of time for the people and for Hajj" (Quran 2:189).

A lunar month is 29.53 days on average, so a month has 29 or 30 days. Twelve of them make 354 or 355 days. The solar year is about 365.24 days, so the difference is about 10 or 11 days each year. This is why Ramadan moves through the seasons. For example, 1 Ramadan 1446 fell on 1 March 2025, and 1 Ramadan 1447 fell on about 18 or 19 February 2026, about 11 days earlier.

After about 33 Hijri years, which is close to 32 Gregorian years, the Hijri calendar returns to the same season.

2

A quick formula for the year

A simple estimate of the year is enough for general use, and it does not give the day or the month:

  • From Hijri to Gregorian: G = (H × 0.970229) + 621.57
  • From Gregorian to Hijri: H = (G − 621.57) × 1.030684

For example, for the Hijri year 1447, 1447 × 0.970229 is about 1403.9, and adding 621.57 gives about 2025.5, which means the middle of 2025. This matches the start of 1447 in the middle of 2025. The result is a decimal year, so the digits after the point show roughly the month.

For an exact day you need a table or a tool, since the calculation does not know the actual lengths of the months.

3

The methods that give a date

There are three common methods and they can differ by a day or two:

  • The tabular (civil) calendar, which uses a fixed 30-year cycle. In each cycle 11 years are leap years with 355 days, and the months alternate between 30 and 29 days. It is easy to program, and it is the one used by many simple converters. It can differ from the real moon by a day or two.
  • The Umm al-Qura calendar, which is based on astronomical calculation and is used in Saudi Arabia for civil dates. It is more consistent with the real moon, but the dates of Ramadan, Eid and Hajj are still announced after sighting.
  • The local sighting, which is the announcement of the moon-sighting authority in your country or community. This is the calendar for acts of worship.

For dates before 1582, and in some countries much later, remember that older dates are often given in the Julian calendar, so converting needs a Julian-aware tool.

4

How to convert a date step by step

  • Choose the calendar method that your community follows, such as the Umm al-Qura or the local moon-sighting calendar.
  • Enter the Gregorian date in a converter or look up the month in a table.
  • Check the time of the day. The Hijri day starts at sunset (Maghrib), not at midnight. A date after sunset on the Gregorian day belongs to the next Hijri date. So a Hijri day runs from one sunset to the next, and it begins on the evening before the Gregorian day it is matched with.
  • Compare with a local calendar. If the result differs by one day, trust the local announcement for worship.

The Hijri calendar tool on this website converts a date in both directions and shows the month names.

5

Moon sighting and worship

The start of Ramadan and the two Eids depend on the sighting of the crescent. The Prophet ﷺ said: "Fast when you see it and break the fast when you see it. If it is hidden from you, complete the month of Sha'ban as thirty days" (Sahih al-Bukhari 1909). Scholars differ on the role of astronomical calculation: many rely on sighting, some accept calculation to rule out an impossible sighting, and some countries follow the calculation. Follow the practice and the announcements of your local community and scholars. The tools can tell you the expected date, and it is the local announcement that settles the day of fasting and Eid.

For other things, such as birthdays, anniversaries and appointments, the converted date is enough. A margin of a day or two is normal.

6

Tips for using tables and tools

  • Keep a printed Hijri year table or use a calendar app that shows both dates.
  • Choose one method and be consistent. Mixing methods causes confusion.
  • Mark the important Hijri dates as expected, then confirm them near the time, such as the start of Ramadan, the days of Arafah and Eid.
  • Remember the month names in order: Muharram, Safar, Rabi al-Awwal, Rabi al-Thani, Jumada al-Ula, Jumada al-Akhirah, Rajab, Sha'ban, Ramadan, Shawwal, Dhul Qa'dah and Dhul Hijjah.
  • For the details on the months and the sacred months, see the article on the Islamic months.

Sources

Common questions

Why is the Hijri year about 11 days shorter?

It follows twelve lunar months of 29 or 30 days, which is 354 or 355 days, while the Gregorian year is 365 or 366 days. So Hijri dates move about 11 days earlier each year.

Is the converted date always exact?

No. Different methods can differ by a day or two, and the start of a month in worship depends on the sighting of the moon. Use the local announcement for Ramadan, Eid and Hajj.

When does the Hijri day begin?

At sunset (Maghrib), not at midnight. A time after sunset belongs to the next Hijri date.

How long until a Hijri date returns to the same Gregorian date?

About 33 Hijri years, which is close to 32 Gregorian years, for the dates to return to the same season, though not necessarily the exact same day.