How to Find the Day of the Week for Any Date by Hand

You don't need a calendar to know that March 15, 1994 was a Tuesday. A German mathematician named Christian Zeller worked out a formula in the 1880s that gets you there with plain arithmetic. Here's how it works, and a worked example you can check by hand.

On this page
Skip the manual math → Use the Day of the Week Calculator

Zeller's Congruence

For the Gregorian calendar, the formula is:

h = (q + ⌊13(m+1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ + 5J) mod 7

Where q is the day of the month, m is the month number, K is the year of the century (the last two digits of the year), J is the zero-based century (the first two digits), and the brackets mean round down to the nearest whole number. The result h maps to a weekday: 0 is Saturday, 1 is Sunday, 2 is Monday, and so on through 6 for Friday.

Why January and February are different

The formula treats the year as running from March through the following February, not January through December. So if your date falls in January or February, you count it as month 13 or 14 of the previous year: subtract 1 from the year and add 12 to the month number before you start. This is just a mathematical convenience, it puts the leap-day adjustment (February 29th) at the very end of the counted year instead of in the middle, which keeps the rest of the formula simpler.

Step by step

  1. Write down the day, month, and year.
  2. If the month is January or February, subtract 1 from the year and add 12 to the month (so January becomes month 13, February becomes month 14).
  3. Split the year into K (last two digits) and J (first two digits).
  4. Plug everything into the formula above and reduce mod 7.
  5. Map the result to a weekday using the 0-through-6 scale (Saturday through Friday).

A worked example

Let's find the weekday for March 15, 1994.

March is month 3, so no adjustment needed (it's already March or later)
q = 15, m = 3, year = 1994 → K = 94, J = 19
13(m+1)/5 = 13(4)/5 = 52/5 = 10.4 → floor to 10
K/4 = 94/4 = 23.5 → floor to 23
J/4 = 19/4 = 4.75 → floor to 4
h = (15 + 10 + 94 + 23 + 4 + 5×19) mod 7 = (15+10+94+23+4+95) mod 7 = 241 mod 7 = 3
h = 3 → Tuesday

March 15, 1994 was in fact a Tuesday, you can check that against any calendar or the Day of the Week Calculator on this site.

Frequently asked questions

What is Zeller's Congruence?

It's a formula, developed by German mathematician Christian Zeller, that calculates the day of the week for any date in the Gregorian calendar directly from the day, month, and year, without needing a calendar or counting forward day by day.

Why does the formula treat January and February differently?

Zeller's Congruence treats the calendar year as running from March through the following February, so January and February are counted as months 13 and 14 of the previous year. This is a mathematical convenience that makes the leap-day adjustment (February 29th) fall at the very end of the counted year instead of in the middle of it.

Sources

  • GeeksforGeeks, Zeller's Congruence, cross-checked against Wikipedia's Zeller's congruence article, nayuki.io, and codedrome.substack.com

Cedrick Reese

Ready Utilities was founded by Cedrick Reese, a retired veteran and web developer who enjoys building free, user-friendly online tools that simplify everyday tasks. His journey began in the early 2000s with affiliate marketing and niche site development, which grew into a passion for creating practical digital utilities and calculators. After retiring, he earned a Computer Systems Technician certificate from UEI College, completed Electro-Mechanical Technologies at Tulsa Welding School, and finished the Carpentry program at Florida State College at Jacksonville. Today, he combines his technical background and craftsmanship by building furniture using traditional woodworking methods, gardening, and developing helpful online tools for users worldwide.