The Doomsday Algorithm: Calculate Any Weekday in Your Head

Illustration for The Doomsday Algorithm: Calculate Any Weekday in Your Head

Someone tells you their birthday, and you name the day of the week before they finish the sentence. That is the payoff for two hours of learning Conway's Doomsday algorithm. Twelve anchor dates to memorize, one small addition, one mod 7, and the calendar for the next century belongs to you.

What the Doomsday Algorithm Does

John Conway built the method in 1973 to reduce weekday calculation to three additions and one modulus. The engine is a set of memorable anchor dates that all fall on the same weekday within any given year. That shared weekday is called the year's doomsday. Once you know that year's doomsday, every other date sits a countable distance from the nearest anchor. Total math per date: century offset, year offset, and a short walk from the anchor. The full flow takes under ten seconds after a week of practice, and it works cleanly from 1583 through the end of the Gregorian calendar.

The Twelve Anchor Dates You Memorize First

The anchors were chosen to be sticky. Every even month from April on uses its own number twice: 4/4, 6/6, 8/8, 10/10, and 12/12. The odd months pair up into a mnemonic Conway wrote himself, 'I work 9 to 5 at the 7-Eleven,' which gives 5/9, 9/5, 7/11, and 11/7. March gets Pi Day, 3/14. February takes its final day, 28 or 29. January uses the 3rd in common years and the 4th in leap years.

  • Even months: 4/4, 6/6, 8/8, 10/10, 12/12
  • Odd months (9 to 5 at the 7-Eleven): 5/9, 9/5, 7/11, 11/7
  • March: 3/14 (Pi Day)
  • February: last day, 28 in common years, 29 in leap years
  • January: 3rd in common years, 4th in leap years

Lock these twelve dates cold before touching any arithmetic. A three-day flashcard drill gets most people to sub-second recall. If you already run percentage anchors, the pattern is identical: memorize the anchor, then all offsets collapse to short additions.

The Century Rule and Year Offset

Gregorian centuries cycle through four doomsday anchors on repeat: Tuesday, Sunday, Friday, Wednesday. The 1800s land on Friday, the 1900s on Wednesday, the 2000s on Tuesday, the 2100s on Sunday. To place a year inside its century, use Conway's twelves method. Divide the two-digit year by 12 for a quotient q and remainder r. Divide r by 4, floor to get s. Sum q + r + s, add the century weekday as a number where Sunday is 0 and Saturday is 6, then take mod 7.

Worked example. Year 1985. 85 divided by 12 is 7 remainder 1. 1 divided by 4 floors to 0. Sum: 7 + 1 + 0 = 8. Wednesday is 3, so 8 + 3 = 11, and 11 mod 7 = 4 = Thursday. Doomsday 1985 is Thursday. Compare with 2024: 24/12 = 2 r 0, 0/4 = 0, sum 2, plus Tuesday (2) = 4 = Thursday. Same doomsday, different century. That symmetry is why the twelves method survives regardless of decade.

Running a Full Date in Under Ten Seconds

Combine both halves and target a real date. Pick July 20, 1969. Century anchor Wednesday (3). Year offset: 69/12 = 5 r 9, 9/4 = 2, sum 5 + 9 + 2 = 16. Then 16 + 3 = 19, and 19 mod 7 = 5 = Friday. Doomsday 1969 is Friday. July's anchor is 7/11. Target 7/20 sits nine days after 7/11, and 9 mod 7 = 2. Friday plus two weekdays lands on Sunday. Apollo 11 touched down on a Sunday. The full calculation runs in under eight seconds once the anchors are automatic.

Try December 25, 2000. Century anchor Tuesday (2). 0/12 = 0 r 0, 0/4 = 0, sum 0. 0 + 2 = 2 = Tuesday. Doomsday 2000 is Tuesday. December anchor is 12/12. The 25th sits 13 days after the 12th, and 13 mod 7 = 6. Tuesday plus 6 lands on Monday. Christmas 2000 was a Monday. Once you can run this without paper, the daily Mathness puzzle becomes a quick warmup rather than a training block.

The Four Failure Modes and How to Kill Them

Four errors account for almost every miss. First: leap-year January and February. In leap years the anchors shift to 1/4 and 2/29; miss this and every date in the first two months slides one weekday. The rest of the calendar is unaffected. Second: sign errors when the target sits before the monthly anchor. Instead of subtracting a negative, add 7 to the target date and subtract normally, or count backward from the anchor using the mod-7 complement. Third: century-boundary leap rules. 2000 is a leap year, 1900 is not, and 2100 is not, because the Gregorian calendar drops century leaps unless the century is divisible by 400. Fourth: mixing Sunday-as-0 with Sunday-as-7 mid-calculation, which flips every answer by one day.

Build a single check habit. After each answer, verify against one known date in the same year: your own birthday, a national holiday, or a public event you remember. One anchor check per session catches almost every arithmetic slip. The same discipline is what saves most players in mental subtraction, where a single last-digit check kills the errors before they compound.

A Ten-Day Drill Schedule That Locks the Method

The method rewards spaced repetition, not marathon sessions. Ten to fifteen minutes a day for two weeks gets almost anyone under ten seconds per date. Push past two weeks and the numbers stop being computed and start being retrieved. That retrieval-mode reflex is the goal.

  1. Days 1 to 2: memorize the twelve month anchors on flashcards until recall is under one second per prompt
  2. Days 3 to 4: compute doomsdays for years 2020 through 2030 without notes, then check against a calendar
  3. Days 5 to 6: run ten family and friend birthdays cold, targeting 15 seconds per full date
  4. Days 7 to 8: pull five random dates per session from Wikipedia's On This Day page, targeting 10 seconds
  5. Days 9 to 10: time yourself under 8 seconds per date; if you miss twice on the same year, redrill that year's offset before moving on
Aim for six seconds per date after two weeks of drills. That is fast enough to name any weekday inside a normal conversation without breaking eye contact, which is the whole party trick.

The Doomsday algorithm is one of the highest-ROI investments in the whole mental math toolkit. Two hours in, you own a party trick. Two weeks in, you own a genuine calendar-in-head that stays sharp for years with a monthly refresh, because the anchor set never changes. If you already build daily reflex time on Mathness, swap one warmup round per week for a Doomsday date and the skill compounds without stealing time from ranked practice.

← All posts