What is the Days Until Eid Calculator?
This tool tells you exactly how many days remain until Eid — whether you are counting down to Eid al-Fitr (which marks the end of Ramadan) or Eid al-Adha (the Festival of Sacrifice). Because the Islamic calendar is lunar, Eid dates shift by about 10–11 days earlier each Gregorian year and are often confirmed by moon sighting, so the calculator lets you enter the precise Eid date you are planning around.
How to use it
Enter today's date in the first field and the expected Eid date in the second field, then submit. The calculator returns the whole number of days remaining. If the Eid date is in the past, the result will be negative, which can be a handy way to count days since Eid.
The formula explained
The calculator converts both dates to a millisecond timestamp at midnight, subtracts today from the Eid date, and divides by the milliseconds in a single day (86,400,000 = 1000 × 60 × 60 × 24). The result is rounded up with a ceiling function so any partial day still counts as a full day remaining.
$$\text{Days} = \left\lceil \frac{\text{Eid Date} - \text{Today Date}}{1\ \text{day}} \right\rceil$$
Worked example
Suppose today is 1 January 2024 and Eid al-Fitr falls on 10 April 2024. The gap is 100 days. The calculator returns 100 days remaining. As each day passes, re-running the tool with the new "today" date counts the number down.
Expected Eid Dates for Upcoming Years
The table below shows the expected Gregorian dates for Eid al-Fitr (1 Shawwal) and Eid al-Adha (10 Dhul Hijjah). Use these dates as the "Eid date" in the calculator to see how many days remain.
| Year | Eid al-Fitr (1 Shawwal) | Eid al-Adha (10 Dhul Hijjah) |
|---|---|---|
| 2025 | About 30 or 31 March | About 6 or 7 June |
| 2026 | About 20 March | About 27 May |
| 2027 | About 9 or 10 March | About 16 or 17 May |
Please note: these are astronomical estimates. The actual date of Eid depends on local moon sighting (or on the calculation method adopted by each country), so it can differ by a day between regions. Always confirm the final date with your local religious authority or national moon-sighting committee before making plans.
Key Islamic Calendar Terms
- Eid al-Fitr: the "Festival of Breaking the Fast," celebrated on 1 Shawwal to mark the end of Ramadan.
- Eid al-Adha: the "Festival of Sacrifice," celebrated on 10 Dhul Hijjah. It commemorates Prophet Ibrahim's willingness to sacrifice his son and coincides with the Hajj pilgrimage period.
- Ramadan: the 9th month of the Hijri calendar, during which Muslims fast from dawn to sunset.
- Shawwal: the 10th month of the Hijri calendar, which begins right after Ramadan. Its first day is Eid al-Fitr.
- Dhul Hijjah: the 12th and final month of the Hijri calendar, the month of the Hajj pilgrimage. Eid al-Adha falls on its 10th day.
- Hijri (lunar) calendar: the Islamic calendar, made up of 12 lunar months of 29 or 30 days each. A Hijri year has about 354-355 days, compared with 365 or 366 days in the Gregorian year. This is why Eid moves roughly 10-11 days earlier in the Gregorian calendar each year.
- Moon sighting (hilal): the observation of the first thin crescent moon after the new moon. In many communities it marks the start of a new Hijri month, and so decides the exact day of Ramadan and Eid. Some countries use astronomical calculation instead.
FAQ
Why might my Eid date differ from a friend's? Eid dates depend on local moon sighting and can vary by a day between countries and communities. Use the date confirmed by your local authority.
Does it count today? The result is the number of days from today up to the Eid date, so the day of Eid itself is the final day counted.
Can I count down to Eid al-Adha too? Yes — just enter the Eid al-Adha date in the Eid field. The calculator works for any target date.