Most date calculators convert a single date from one calendar to the other. This one answers a different question: how many days are there between two dates? The two dates can both be Hijri, both be Gregorian, or one of each. Enter them below and the tool counts the exact gap in days, shows it in weeks, and displays each date in both calendars with its weekday. It is free, works in your browser, and needs no sign up.
Hijri Gregorian Date Difference Calculator
Pick any two dates below. Each date can be entered in Hijri or in Gregorian, and the two dates do not have to use the same calendar. The result updates as you change the dates.
Please note: this tool uses the tabular (calculated) Hijri calendar, the same calendar used by the other tools on this site. Dates fixed by local moon sighting can differ by one day, and occasionally by two days around the start of a month.
How to use this calculator
- Look at Date A. Choose Hijri or Gregorian, then enter the day, month and year.
- Do the same for Date B. The two dates do not have to use the same calendar.
- Read the result. It updates as you change the dates, and the big number is the exact gap in days.
- Use the example buttons to load ready made comparisons, or press Swap dates to reverse the order. The gap is the same either way.
- Press Set to today on either date to start from the current day.
How the calculation works
Every date, Hijri or Gregorian, is first turned into a Julian Day Number, a simple running count of days that works across both calendars. The tool then subtracts one count from the other. Because both dates are measured on the same scale, the answer is exact within the calculated calendar. It is never estimated from average month or year lengths.
The Hijri side uses the tabular Islamic calendar. Its months alternate between 30 and 29 days, and in 11 years of every 30 year cycle a leap day is added to the last month, making a year of 355 days. The Gregorian side uses the normal civil calendar with its own leap year rule. The same method powers our Hijri to Gregorian converter, so dates match across this site.
A worked example
Take Ramadan 1448. Its first day, 1 Ramadan 1448 AH, falls on Monday, 8 February 2027. The first day of the next month, 1 Shawwal 1448 AH, the day of Eid al-Fitr, falls on Wednesday, 10 March 2027. Ramadan has 30 days in the tabular calendar, so the gap between the two dates is exactly 30 days. You can load this example with the Ramadan to Eid al-Fitr button above.
A longer span: 1 Muharram 1447 AH fell on Friday, 27 June 2025, and 1 Muharram 1448 AH fell on Wednesday, 17 June 2026. The gap is 355 days, because 1447 is one of the leap years in the 30 year cycle and has 355 days instead of the usual 354.
Why Hijri dates move through the year
A Hijri year has about 354 days, roughly 11 days fewer than a Gregorian year. So each Hijri date arrives about 11 days earlier in every Gregorian year, and over about 33 Gregorian years the Islamic months travel through all four seasons and come back to where they started. This is why Ramadan begins in winter in some decades and in high summer in others. Our Ramadan Countdown 2027 counts down to the next Ramadan.
Counting rules and accuracy
How the count works: the result is the number of days from the first date to the second date. If the two dates are the same day, the answer is 0. If they are one day apart, the answer is 1. The starting day is not counted twice.
Accuracy: the Hijri dates here come from the tabular, calculated calendar. In many countries the start of a month is fixed by the sighting of the new moon, so an observed date can be one day different from the calculated one, and occasionally two days different around the start of a month. This tool is a planning and learning aid, not an official announcement. For the start of Ramadan and the two Eids, always confirm with your local authority.
One more point: in Islamic reckoning the new day begins at sunset. If your event is in the evening, such as the first night of Ramadan or the night before Eid, the Hijri date you need is usually the day after the converted civil date.
Frequently asked questions
Can I enter one date in Hijri and the other in Gregorian?
Yes. Each date has its own calendar choice, and you can mix them freely. The tool converts both dates to the same day count before subtracting.
Why is my result one day different from the calendar in my country?
This calculator uses the tabular Hijri calendar, which is fixed by arithmetic. Calendars based on moon sighting, including the official calendar of Saudi Arabia, can start a month one day earlier or later. A difference of one day is normal and expected.
Does the tool count the first day and the last day?
It counts the days between the two dates. The same day gives 0, the next day gives 1, and so on. Neither date is counted twice.
What if my event is in the evening?
The Islamic day begins at sunset, so for an evening event the Hijri date is usually the next day after the converted date. Keep this in mind for the night before Eid and the first night of Ramadan.
What date range does the tool cover?
Any date from 1 Muharram 1 AH, which is 19 July 622 CE, onwards. The form accepts Hijri years from 1 to 1600 and Gregorian years from 622 to 2600, so it works for historical dates as well as future planning.
Can it work out an age or a countdown?
Yes. For an age in days, enter the birth date as Date A and today as Date B. For a countdown, enter today as Date A and the event date as Date B. For an age in full Hijri years, months and days, use our Hijri Age Calculator.
Explore more free tools in our Islamic Date Tools hub, including today's Hijri date and the Hijri Calendar 1447.