Method Deck / dates

Date of Easter (Western, Gregorian)

Computes the date of Western (Gregorian calendar) Easter Sunday for a given year using the Meeus/Jones/Butcher algorithm.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.

Try it

Inputs

Outputs

Steps

  1. a = year mod 19.
  2. b = floor(year / 100); c = year mod 100.
  3. d = floor(b / 4); e = b mod 4.
  4. f = floor((b + 8) / 25); g = floor((b - f + 1) / 3).
  5. h = (19a + b - d - g + 15) mod 30.
  6. i = floor(c / 4); k = c mod 4.
  7. l = (32 + 2e + 2i - h - k) mod 7.
  8. m = floor((a + 11h + 22l) / 451).
  9. month = floor((h + l - 7m + 114) / 31); day = ((h + l - 7m + 114) mod 31) + 1.

Constants

None.

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"year":2026}2026-04-05
test vector: year 2000{"year":2000}2000-04-23
test vector: year 2024{"year":2024}2024-03-31

Published card