Skip to content
MasterMath

Day of the Week Calculator

What day of the week any date fell on, or will fall on. Works for any date in the Gregorian calendar, past or future.

Day of the week

—

Day of the week—
Full date—
Week of the year—
Day of the year—
Leap year—

How this was worked out

    How it is worked out

    the weekday repeats every 7 days, so it is the remainder of the day count divided by 7

    Why it is done this way

    Weekdays cycle with a period of seven, so the day of the week for any date is fixed by how many days separate it from a date whose weekday you already know. The complication is only in counting those days correctly across months and leap years.

    Step by step

    1. Count the days elapsed from a reference date you know
    2. Divide by seven and keep the remainder
    3. The remainder tells you how far round the cycle you are
    4. Add that offset to the reference weekday

    What is worth knowing

    There are mental methods for this — the Doomsday algorithm is the best known — and they all rest on the same fact: the calendar repeats exactly every 400 years, because 400 Gregorian years contain a whole number of weeks. That also means the 13th of the month falls on a Friday slightly more often than on any other day, which is a genuine quirk of the Gregorian calendar rather than superstition. One caution for historical dates: countries adopted the Gregorian calendar at different times, from 1582 in Catholic Europe to 1923 in Greece, so a date before adoption may have been recorded under the Julian calendar and fall on a different weekday.

    Frequently asked questions

    Does this work for historical dates?

    For Gregorian dates, yes. Before a country adopted the Gregorian calendar its records use the Julian one, and the weekday can differ.

    Why does the calendar repeat every 400 years?

    Because 400 Gregorian years contain exactly 20,871 weeks. The pattern of weekdays and leap years starts over.

    Is Friday the 13th really more common?

    Slightly, yes. Over the 400-year cycle the 13th falls on a Friday marginally more often than on any other weekday.

    Can I work it out in my head?

    Yes, with the Doomsday algorithm. It takes practice but needs no tools at all.