The Doomsday algorithm: the weekday of any date, in your head

John Conway's method turns any date into its weekday with four small steps and about a dozen facts. Here's the whole thing, the easy way, in about ten minutes of reading.

1. The one fact behind it

Our calendar has a coincidence built into it. In any year, these five dates fall on the same weekday:

4/4
6/6
8/8
10/10
12/12

4 April, 6 June, 8 August, 10 October and 12 December. Each one is exactly nine weeks (63 days) after the one before, so they can never drift apart. They read the same in the day/month and month/day conventions, too.

Conway called that shared weekday the year's doomsday. There's one per year, and the whole method comes down to two questions: what is this year's doomsday, and how far is my date from a doomsday date?

Learn one weekday, get the whole year. Once you know a year's doomsday, every date in it is a short count away.

2. Weekdays as numbers

The arithmetic is easier if each weekday is a number. Sunday is 0, and the rest follow:

SunMonTueWedThuFriSat
0123456

Conway's mnemonic: Noneday, Oneday, Twosday, Treblesday, Foursday, Fiveday, Six-a-day.

The other habit is that sevens don't matter. Seven days later is the same weekday, so you can add or take away 7, 14, 21 or 28 whenever it helps. Going 6 days forward is the same as 1 day back.

3. The twelve doomsday dates

Every month has a date that lands on the year's doomsday. You have five already. The rest come with hooks:

MonthDoomsday dateHow to remember it
January3rd (4th in a leap year)"The 3rd three years in four, the 4th in the fourth"
February28th (29th in a leap year)The last day of February
March14thPi Day, 3/14
April4th4/4
May9th"I work 9-to-5 at the 7-Eleven": 5/9
June6th6/6
July11th7/11
August8th8/8
September5th9/5
October10th10/10
November7th11/7
December12th12/12

The odd months pair up and swap: 5/9 and 9/5, 7/11 and 11/7. That's the 7-Eleven sentence. A leap year is any year divisible by 4, except century years, which must be divisible by 400: 2000 was a leap year, 1900 was not.

Practise the month dates in the trainer →

4. Any date this year

For a date in the current year you can skip straight here, because you only need to know this year's doomsday. It's Saturday in 2026.

Take 18 September 2024, whose year has Thursday as its doomsday:

  1. Month doomsday

    September's doomsday date is the 5th (9/5), so 5 September 2024 is a Thursday.

  2. Jump in sevens

    5 + 14 = 19, so 19 September is a Thursday too.

  3. Count the rest

    The 18th is one day earlier: Wednesday.

That's already a party trick: once you've looked up this year's doomsday, anyone's birthday this year is a few seconds away. Try it with this year's dates →

5. Century anchors

For other years, you build the doomsday yourself from two parts. The first is the century's anchor, the doomsday of its year 00. There are only four, and they repeat every 400 years:

CenturyAnchorNumber
1600s, 2000sTuesday2
1700s, 2100sSunday0
1800s, 2200sFriday5
1900s, 2300sWednesday3

Almost every date you'll be asked about is in the 1900s or 2000s, so start with two: 1900 is "We-in-dis-day" (Wednesday), and 2000 is "Y-Tue-K" (Tuesday).

6. The year offset

The second part is how far the year has moved the doomsday since its century began. Each ordinary year moves it one weekday on, and each leap year two. The classic way to count that is simple and always works:

  1. Take the last two digits of the year, y.
  2. Divide y by 4 and drop the remainder. That's the number of leap days so far.
  3. Add the two.
  4. Take away sevens until you're left with 0 to 6. That's the offset.

Add the offset to the century anchor, and you have the year's doomsday.

1969: 69 ÷ 4 = 17 (drop the remainder) 69 + 17 = 86 86 − 84 = 2 (84 is twelve weeks) Wednesday + 2 = Friday → 1969's doomsday

Practise year doomsdays →

7. All four steps

Put together, every date goes the same way: century anchor → year offset → month doomsday → count.

The moon landing: 20 July 1969

Anchor 1900s Wednesday Offset 69 + 17 = 86 → 2 Wednesday + 2 = Friday Month July → 7/11 11 July is a Friday Count 18 July is a Friday (+7), the 20th is 2 later → Sunday

The US Declaration of Independence: 4 July 1776

Anchor 1700s Sunday Offset 76 + 19 = 95 → 4 Sunday + 4 = Thursday Month July → 7/11 11 July is a Thursday Count 4 July = 11 − 7, same weekday → Thursday

New Year's Day 2050

Anchor 2000s Tuesday Offset 50 + 12 = 62 → 6 Tuesday + 6 = Monday Month January → the 3rd (2050 is not a leap year) Count 1 January is 2 days before the 3rd → Saturday

8. Try any date

Enter a date and see the same four steps worked out for it.

9. Cheat sheet

Everything on one card. Print it, or keep it open while you use the trainer.

Century anchors

1600s, 2000sTuesday
1700s, 2100sSunday
1800s, 2200sFriday
1900s, 2300sWednesday

Year offset

y + (y ÷ 4, remainder dropped), then take away sevens. Add it to the anchor.

Weekdays

Sun 0 · Mon 1 · Tue 2 · Wed 3 · Thu 4 · Fri 5 · Sat 6

Month doomsdays

Jan 3 (leap: 4)Jul 11
Feb 28 (leap: 29)Aug 8
Mar 14Sep 5
Apr 4Oct 10
May 9Nov 7
Jun 6Dec 12

Leap year: divisible by 4; century years only if divisible by 400.

10. Faster year offsets

The classic offset is the easiest to understand, but it makes you hold three numbers at once. With practice, most people switch to a method that keeps only one in their head. The best known is Odd + 11, published by Chamberlain Fong and Michael K. Walters in 2010:

  1. If y is odd, add 11.
  2. Halve it.
  3. If the result is odd, add 11.
  4. Take away sevens, then subtract what's left from 7.
1969: 69 is odd → 80 → halve → 40 → even 40 − 35 = 5 → 7 − 5 = 2 (same offset as before)

The Doomsday app teaches several faster routes, from the dozens method Conway used to memorising all hundred offsets outright, and helps you pick the one that suits you.

11. Where it comes from

John Horton Conway, the mathematician best known for the Game of Life, introduced the method in 1973 in a paper called Tomorrow is the Day After Doomsday, in the Cambridge student journal Eureka. He built it on a rule Lewis Carroll had sent to Nature in 1887 and said so himself; his own addition was the doomsday dates for each month. Conway practised constantly: his computer is said to have quizzed him with random dates every time he logged in.

It works for any date in the Gregorian calendar, which began in 1582. Dates kept in the older Julian calendar, as in Britain until 1752, need a small adjustment.

Turn this into a habit

Reading the method takes ten minutes. Making it fast takes practice. The Doomsday app has a 48-lesson course built from this method, drills for each step, a Daily Challenge and a rating that tracks your speed. The first 16 lessons are free.

Questions

What is the Doomsday algorithm?

A method by mathematician John Conway, published in 1973, for finding the weekday of any date in your head. It uses the fact that certain easy dates, such as 4/4, 6/6, 8/8, 10/10 and 12/12, always share a weekday within a year, called that year's doomsday.

What are the doomsday dates for each month?

January 3 (January 4 in leap years), the last day of February, March 14, April 4, May 9, June 6, July 11, August 8, September 5, October 10, November 7 and December 12.

What are the century anchor days?

1800s: Friday. 1900s: Wednesday. 2000s: Tuesday. 2100s: Sunday. The pattern repeats every 400 years, so the 1600s match the 2000s and the 1700s match the 2100s.

How do you calculate the year offset?

Take the last two digits of the year, add a quarter of them with the remainder dropped, and take away sevens until the result is between 0 and 6. Add that number to the century anchor to get the year's doomsday.