{
  "id": "days-until-easter",
  "version": "4b3e5d13b914",
  "status": "published",
  "name": "Days Until Easter",
  "question": "Days until Easter",
  "summary": "Counts the days from today, or any date you choose, to the next Easter, with its date and day of the week.",
  "category": "days",
  "subcategory": "countdowns",
  "url": "https://www.acalculator.org/days/days-until-easter",
  "markdown": "https://www.acalculator.org/days/days-until-easter.md",
  "kind": "function",
  "method": "Find the first date of Easter on or after the start date, then count the days from the start date to it.",
  "assumptions": [
    "Easter Sunday (Western churches) is the first Sunday after the ecclesiastical full moon on or after March 21, so it falls between March 22 and April 25.",
    "Start dates from January 1, 1900 to December 31, 2400 work, because the date field accepts that range.",
    "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."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "from": {
        "title": "Count from",
        "description": "The date to count from. Today, unless you change it.",
        "type": "string",
        "format": "date"
      }
    }
  },
  "outputs": {
    "days": {
      "label": "Days until Easter",
      "description": "Whole days from the start date to the next Easter; 0 on the day itself.",
      "format": "integer"
    },
    "date": {
      "label": "Date",
      "description": "The next date of Easter on or after the start date.",
      "format": "date-long"
    },
    "weekday": {
      "label": "Day of the week",
      "description": "The weekday of that date.",
      "format": "text"
    },
    "weeks": {
      "label": "In weeks",
      "description": "The same number of days in weeks and days.",
      "format": "text"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "from": "2026-09-29"
    },
    "outputs": {
      "days": 180,
      "date": "2027-03-28",
      "weekday": "Sunday",
      "weeks": "25 weeks and 5 days"
    },
    "text": "From September 29, 2026, there are 180 days until Easter on Sunday, March 28, 2027."
  },
  "examples": [
    {
      "given": {
        "from": "2026-01-01"
      },
      "expect": {
        "date": "2026-04-05",
        "days": 94
      },
      "source": "Western (Gregorian) Easter: the Sunday after the ecclesiastical full moon, as in python-dateutil easter()"
    },
    {
      "given": {
        "from": "2026-04-06"
      },
      "expect": {
        "date": "2027-03-28",
        "days": 356
      },
      "source": "Western (Gregorian) Easter: the Sunday after the ecclesiastical full moon, as in python-dateutil easter()"
    }
  ],
  "sources": [
    "Western (Gregorian) Easter: the Sunday after the ecclesiastical full moon, as in python-dateutil easter()"
  ],
  "related": [
    "days-until-earth-day",
    "days-until-cinco-de-mayo",
    "days-until-mothers-day",
    "days-until-memorial-day",
    "days-until-summer",
    "days-between-dates"
  ],
  "changelog": []
}
