Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Calendar designer

Design a leap-year rule and test it: mean year length, seconds out per year, years until a day of drift, weekday cycles, Julian, Gregorian and more.

The next leap years

How to use it

  1. Start from a real calendar or type your own rule. Rule one: a leap year every A years, except every B years, except every C years. Rule two: a set number of leap years spread as evenly as possible over a cycle.
  2. Press Test the calendar. You get the mean length of your calendar year, how many seconds a year it is out, how long until it is a whole day out, and whether the days of the week repeat each cycle.
  3. The chart shows the drift over 10,000 years: how many days your calendar runs ahead of or behind the seasons.

Keyboard

TabMove between the boxes
EnterTest the calendar

Tips

  • The Julian calendar (a leap year every 4 years) is about 11 minutes a year too long. By 1582 it had drifted 10 days, which is why the Gregorian reform skipped 10 days that October.
  • The Gregorian rule makes the year 365.2425 days: about 27 seconds too long, or a day every 3,200 years or so.
  • Cycle rules such as 8 leap years in 33 can be even closer than the Gregorian rule, but they are harder to remember.
  • The Gregorian cycle of 400 years is exactly 20,871 weeks, so the calendar’s weekdays repeat every 400 years.

About this tool

A calendar year must be a whole number of days, but the seasons repeat every 365.24219 days or so (the mean tropical year). Leap years add a day now and then so that, on average, the calendar keeps pace. The question every calendar answers is which years should be leap years.

The designer counts the leap years over one full cycle of your rule to get the exact mean year, then compares it with the year you choose. The tropical year itself slowly gets shorter, by about half a second per century; the designer keeps it fixed, which is fine for comparing rules. The 33-year preset spreads the leap years evenly, the idea behind some solar calendars, without being a copy of any official one.

The tests compare every mean year, error and leap-year list with a separately written Python version, including the Gregorian rule’s 97 leap years in 400.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product