🔁
🔁 Unit converters

Day of the Week Calculator (Zeller’s congruence)

Type a value — the result and every other unit update as you type.

Convert

Understanding the day of the week calculator — concept and principle

This calculator finds the weekday of any date with Zeller's congruence, a short formula published by the German mathematician Christian Zeller in the 19th century. Use it to check what day a birthday, holiday or deadline falls on, or to see how a weekday can be computed by hand.

Zeller's congruence for 25 December 2026The six terms 25, 33, 26, 6, 5 and 100 add to 195; 195 mod 7 is 6, which is Friday.Christmas 2026: add the shifts, keep mod 7DEC 202625q = 2525q33⌊13(m+1)/5⌋26K6⌊K/4⌋5⌊J/4⌋1005Jm = 12 · K = 26 · J = 2025 + 33 + 26 + 6 + 5 + 100 = 195195 = 7 × 27 + 6 → h = 60Sat1Sun2Mon3Tue4Wed5Thu6Frih = 6 → Friday25 December 2026 (h = 0 is Saturday)
Each term counts how many weekday steps that part of the date adds; only the remainder after sevens matters.

How it is calculated

For a date with day q, month m and year Y in the Gregorian calendar:

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

⌊x⌋ means round down; mod 7 is the remainder after dividing by 7. h = 0 is Saturday, 1 Sunday, 2 Monday … 6 Friday.

The principle

Only the day count modulo 7 matters, and each term counts weekday shifts. A 365-day year is 52 weeks plus 1 day, so each year shifts the weekday by one (K). Leap days add more shifts: ⌊K/4⌋ within the century, ⌊J/4⌋ and 5J for the Gregorian century rule (century years are leap years only if divisible by 400). ⌊13(m+1)/5⌋ reproduces the uneven 30/31-day months. Treating January and February as the end of the previous year puts 29 February last, so it never disturbs the month term.

Worked example

Default input: 25 December 2026.

  1. December needs no adjustment, so q = 25, m = 12, Y = 2026.
  2. K = 2026 mod 100 = 26 and J = ⌊2026/100⌋ = 20.
  3. Month term: ⌊13 × 13 / 5⌋ = ⌊33.8⌋ = 33.
  4. Leap terms: ⌊26/4⌋ = 6 and ⌊20/4⌋ = 5; century term 5 × 20 = 100.
  5. Sum: 25 + 33 + 26 + 6 + 5 + 100 = 195.
  6. 195 mod 7 = 6 (because 7 × 27 = 189), and h = 6 means Friday. Christmas 2026 is a Friday, matching the calculator.

How to read the result

The table shows q, the adjusted m, K, J and h so you can follow the arithmetic. For January or February dates, m shows 13 or 14 and K, J come from the previous year; that is expected.

Common mistakes

Keep in mind: The Gregorian rules are applied to every date, even before a country adopted that calendar (proleptic Gregorian). Convert Julian or lunar dates first.

Frequently asked questions

What day of the week is Christmas 2026?

Friday, 25 December 2026.

Does the same date fall on the same weekday every year?

No. It moves forward by one weekday each year, and by two after 29 February of a leap year. The whole Gregorian pattern repeats every 400 years.

Does it work for lunar calendar dates?

No. Convert a lunar date to the solar (Gregorian) date first, then enter it.

Sources: Chr. Zeller, "Kalender-Formeln", Acta Mathematica, vol. 9 · E. M. Reingold and N. Dershowitz, Calendrical Calculations, Cambridge University Press

Checked 8 Nov 2026. Gregorian calendar rules (ISO 8601); Zeller’s congruence.

🔁 All unit converters →🌍 Calculators by country →