# Days until Eid al-Fitr

Counts the days from today, or any date you choose, to the next Eid al-Fitr, with its date and day of the week.

- Page: https://www.acalculator.org/days/days-until-eid
- JSON spec: https://www.acalculator.org/days/days-until-eid.json
- Version: 289d12da6bdb

## Default answer

Example with the default inputs (Count from September 30, 2026) on the example date Wednesday, September 30, 2026: From September 30, 2026, there are 160 days until Eid al-Fitr on Tuesday, March 9, 2027.

## Inputs

| Key | Label | Description |
| --- | --- | --- |
| from | Count from | The date to count from. Today, unless you change it. |

## Outputs

| Key | Label | Description |
| --- | --- | --- |
| days | Days until Eid al-Fitr | Whole days from the start date to the next Eid al-Fitr; 0 on the day itself. |
| date | Date | The next date of Eid al-Fitr on or after the start date. |
| weekday | Day of the week | The weekday of that date. |
| weeks | In weeks | The same number of days in weeks and days. |

## Method

Find the first date of Eid al-Fitr on or after the start date, then count the days from the start date to it.

## Assumptions

- Eid al-Fitr is on 1 Shawwal, the day after Ramadan ends (here on the Umm al-Qura calendar).
- Where the month starts when the new crescent is seen, the day observed can be a day later, or rarely earlier.
- Start dates from January 1, 2000 to December 31, 2076 work, because the published Umm al-Qura table used here runs from 1420 AH (1999) to 1500 AH (2077).
- The start date itself is not counted: from the day before, the count is 1; on the day itself, it is 0.
- Dates are calendar days with no time of day, so a time zone or a daylight-saving change never adds or loses a day.

## Worked examples

1. from = 2019-06-05 gives date = 2020-05-24, days = 354. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
2. from = 2020-05-25 gives date = 2021-05-13, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
3. from = 2021-05-14 gives date = 2022-05-02, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
4. from = 2022-05-03 gives date = 2023-04-21, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
5. from = 2023-04-22 gives date = 2024-04-10, days = 354. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
6. from = 2024-04-11 gives date = 2025-03-30, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
7. from = 2025-03-31 gives date = 2026-03-20, days = 354. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
8. from = 2026-03-21 gives date = 2027-03-09, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
9. from = 2027-03-10 gives date = 2028-02-26, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).
10. from = 2028-02-27 gives date = 2029-02-14, days = 353. Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).

## FAQ

### When is Eid al-Fitr 2027?

Eid al-Fitr 2027 is on Tuesday, March 9, 2027.

### When is Eid al-Fitr 2028?

Eid al-Fitr 2028 is on Saturday, February 26, 2028.

### When is the last day of Ramadan before Eid al-Fitr 2027?

Eid al-Fitr is on the day after the last fast, so the last day of fasting is Monday, March 8, 2027, and Eid begins at sunset that evening.

### Why can Eid be on a different day where I live?

The dates here follow the Umm al-Qura calendar, the civil calendar of Saudi Arabia, which is computed from the Moon’s position in advance. Many communities, and the religious authorities in Saudi Arabia too, start the month when the new crescent is seen, so the day observed where you live can be a day later, or rarely a day earlier. Check with your local mosque or Islamic center.

### How is the date of Eid al-Fitr set?

Eid al-Fitr is on 1 Shawwal, the day after Ramadan ends (here on the Umm al-Qura calendar). Source: Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm).

### How are the days until Eid al-Fitr counted?

From the start date (today, unless you change it) to the date, without counting the start date. The day before, the count is 1; on the day itself, it is 0; the day after, the count moves on to the next Eid al-Fitr.

## Sources

- Umm al-Qura calendar of Saudi Arabia, month-start table 1356 to 1500 AH, as published by R. H. van Gent (https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm); principal days 1420 to 1450 AH (ummalqura_principal.htm)
