# Days until Ramadan

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

- Page: https://www.acalculator.org/days/days-until-ramadan
- JSON spec: https://www.acalculator.org/days/days-until-ramadan.json
- Version: 73eadc658a21

## 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 131 days until Ramadan on Monday, February 8, 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 Ramadan | Whole days from the start date to the next Ramadan; 0 on the day itself. |
| date | Date | The next date of Ramadan 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 Ramadan on or after the start date, then count the days from the start date to it.

## Assumptions

- Ramadan starts on 1 Ramadan, the first day of the ninth month of the Islamic calendar (here the Umm al-Qura calendar). Islamic days begin at sunset, so the first night prayers are on the evening before.
- 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-05-07 gives date = 2020-04-24, 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).
2. from = 2020-04-25 gives date = 2021-04-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-04-14 gives date = 2022-04-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-04-03 gives date = 2023-03-23, 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).
5. from = 2023-03-24 gives date = 2024-03-11, 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).
6. from = 2024-03-12 gives date = 2025-03-01, 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).
7. from = 2025-03-02 gives date = 2026-02-18, 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).
8. from = 2026-02-19 gives date = 2027-02-08, 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).
9. from = 2027-02-09 gives date = 2028-01-28, 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-01-29 gives date = 2029-01-16, 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 does Ramadan 2027 start?

Ramadan 2027 starts on Monday, February 8, 2027.

### When does Ramadan 2028 start?

Ramadan 2028 starts on Friday, January 28, 2028.

### When is the first fast of Ramadan 2027?

Ramadan 2027 starts at sunset on Sunday, February 7, 2027, with the first night prayers (tarawih). The first day of fasting is Monday, February 8, 2027.

### Why can Ramadan start 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 Ramadan set?

Ramadan starts on 1 Ramadan, the first day of the ninth month of the Islamic calendar (here the Umm al-Qura calendar). Islamic days begin at sunset, so the first night prayers are on the evening before. 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 Ramadan 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 Ramadan.

## 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)
