Skip to content
Study CupPowered by Tayari Sensei

Calendar basics: mod 7 and leap years

The three facts behind every calendar trick: weekdays as numbers, keeping only the remainder after 7, and which years are leap years.

Beginner

Best for: Calendar tricks · Planning ahead · Birthdays · Mental maths warm-up

mod 7= Sunday

Why it works

The week repeats every 7 days, so day 8 is just day 1 again. That means you never care about big numbers, only the remainder after dividing by 7. Every calendar trick in this section is small additions plus that one habit.

The idea in one line: turn days into numbers, add, then throw away the 7s.

Step by step

  1. Give every weekday a number. Sunday 0, Monday 1, Tuesday 2, Wednesday 3, Thursday 4, Friday 5, Saturday 6.

    Learn it as "Sunday is zero, the week counts up". Saturday is the biggest: 6.

  2. Take "mod 7": keep only the remainder. Divide by 7 and keep what is left over.

    Take away the biggest multiple of 7
    23 − 21 = 2
    21 = 3 × 7
    30 − 28 = 2
    28 = 4 × 7
    45 − 42 = 3
    42 = 6 × 7
    14 − 14 = 0
    14 = 2 × 7

    Know the multiples of 7 up to 70 by heart: 7, 14, 21, 28, 35, 42, 49, 56, 63, 70.

  3. Spot leap years. A year divisible by 4 is a leap year. Century years are the exception: they must be divisible by 400.

    YearDivisible by 4?Century ruleLeap year?
    2024yesnot a centuryyes
    2026nono
    2000yes2000 ÷ 400 worksyes
    1900yes1900 ÷ 400 does notno
  4. Know the year shift. The same date moves forward 1 weekday in a normal year and 2 when a 29 February sits in between.

    18 October, year by year
    2026 Sunday
    2027 Monday
    + 1: a normal year
    2028 Wednesday
    + 2: 29 February 2028 came in between

Worked example

Question: a deadline is 100 days after Monday. Which weekday is it?

100 days after a Monday
Monday 1
the start day as a number
100 days + 2
100 − 98 = 2, because 98 = 14 × 7
Wednesday 3

You never counted 100 days. You only needed 98 = 14 × 7 and one small addition.

What made it work

  • Numbers, not names. Adding 1 + 2 is easier than counting "Tuesday, Wednesday…".
  • Throwing away 7s early. 100 became 2 before you did anything else.

Try it now

2-minute drill

Find the remainder after dividing by 7, then decide if each year is a leap year (type yes or no).

Subject examples

Planning: the same weekday every time

Anything that repeats every 7, 14 or 28 days lands on the same weekday forever, because those numbers leave remainder 0. A fortnightly payday on a Friday stays on a Friday.

History: why 2000 surprised people

Many people expected 2000 to skip its leap day, like 1900 did. It didn't: 2000 is divisible by 400, so 29 February 2000 existed.

Birthdays: next year's weekday in one second

Take this year's weekday and add 1, or 2 if a 29 February falls between the two birthdays. 25 December 2026 is a Friday, so 25 December 2027 is a Saturday.

A year from today, five years from today

Each year adds 1, plus 1 more for every 29 February you pass. From 18 October 2026 (Sunday) to 18 October 2031 is 5 years and one leap day (2028):

18 October 2031
Sunday 0
18 October 2026
years 5
1 for each year
leap days + 1
29 February 2028
Saturday 6

The calendar switch

These methods use the Gregorian calendar, introduced in 1582. Britain and its colonies only switched in 1752, so very old English dates may be written in the older Julian calendar and give a different weekday.

Common mistakes

  • Calling 1900 or 2100 a leap year. Fix: for century years, check divisibility by 400, not 4.
  • Counting the start day. "3 days after Monday" is Thursday, not Wednesday. Fix: add the gap to the start number: 1 + 3 = 4 = Thursday.
  • Slow mod 7. Fix: drill the multiples of 7 until 49, 56 and 63 come instantly.

Combine with

These three facts power the key-code method and the Doomsday method. To remember dates of events, use the Major system.

Check your understanding

1.What is 40 mod 7?
2.Which of these years was a leap year?
3.Your birthday is on a Sunday this year. Next year has no 29 February before it. Which day is it next year?

Practise Calendar basics: mod 7 and leap years every day in the Study Cup Software (Software for Memory Tools & Study Management).

Build palaces, plan your exams and track your study time. Apps for Android, iPhone and Windows are coming soon; use it free in your browser now.

Get the app