1. Home
  2. Calculators
  3. Leap Year Calculator

Leap Year Calculator

For students, developers and the curious who want to know whether a year has a 29 February and why.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Leap Year Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table.

Features

  • Gregorian and Julian rules
  • The reason in words
  • Previous and next leap year
  • Leap years counted in a range
  • Weekday of 29 February

Supported formats

Input

  • A typed year

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Leap Year Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The Gregorian rule is applied to every year, including years before 1582.
  • The Julian option applies the every-fourth-year rule only.
  • Everything runs in your browser; nothing you type is sent anywhere.

Guide

Is it a leap year? The Gregorian rule, the Julian rule and the neighbouring leap years

A leap year has 366 days instead of 365, with an extra day on 29 February. The rule is easy to half-remember: every fourth year. The full rule has two exceptions that decide years such as 1900, 2000 and 2100, and they matter in school tests, in software date handling and in anything that spans a century boundary. This page tests a year, explains the answer in words and shows the years around it.

The Gregorian rule

A year is a leap year if it is divisible by 4, but not if it is divisible by 100, unless it is also divisible by 400. In order: 2024 is divisible by 4 and not by 100, so it is a leap year. 1900 is divisible by 100 but not by 400, so it is not. 2000 is divisible by 400, so it is. The rule gives 97 leap years in every 400 years, so the average year is 365.2425 days, very close to the length of the tropical year.

The Julian rule

Choose the Julian calendar to apply Julius Caesar’s rule, which adds a day every fourth year with no exceptions. Under it 1900 and 2100 are leap years. The Julian year averages 365.25 days, a little too long, so the calendar drifts about 3 days every 400 years against the seasons, which is why the Gregorian reform of 1582 was introduced. The page does not tell you when a place changed from one calendar to the other.

What you see

The result states yes or no, gives the reason in words, the number of days in the year and in February, the previous and next leap year, and a table of the next eight leap years. For Gregorian leap years it also gives the weekday on which 29 February falls. If you enter an end year, the page counts the leap years from your year up to that year, including both ends.

Edge cases

Years must be from 1 to 9999. The count in a range includes both end years when they are leap years. The weekday of 29 February is omitted in Julian mode, because the weekday of a Julian date would need the Julian calendar’s own day count, which this page does not use for weekdays. Year 0 does not exist in the calendar used here. The next leap year of a leap year is four years later, except across a skipped century such as 2096 to 2104.

A worked example

For 2100 the page says no, and the reason is that 2100 is divisible by 100 but not by 400. The days in the year are 365, February has 28, the previous leap year is 2096 and the next is 2104, and there are 24 leap years from 2100 to 2200. For 2000 the answer is yes because it is divisible by 400, with 366 days, the previous leap year 1996 and the next 2004, and 29 February 2000 was a Tuesday. There are 25 leap years from 2000 to 2100. For 2024 the 29th falls on a Thursday and there are 7 leap years from 2024 to 2050.

Limits

The page applies a rule; it does not know the history of calendar changes in any country, and it does not model leap seconds, which are added to clocks separately. The Julian option applies the every-fourth-year rule to all years. For historical research, check which calendar the source used before comparing dates.

Checked against the current version of the Leap Year Calculator on .

Frequently asked questions

Why do we have leap years at all?

The Earth takes about 365.2422 days to go round the Sun, so a calendar of exactly 365 days drifts against the seasons by almost a day every four years. An extra day in most fourth years keeps the dates lined up with the seasons.

Was 1900 a leap year in Excel?

Excel treats 29 February 1900 as a real date for compatibility with an old spreadsheet program, although 1900 was not a leap year in the Gregorian calendar. This page follows the Gregorian rule and says that 1900 is not one.

Is 2100 a leap year?

No. It is divisible by 4 and by 100 but not by 400, so the century exception applies. 2000 was a leap year and 1900 and 2100 are not.

How many leap years are there from 2000 to 2100?

25, counting both ends: 2000 and then every fourth year up to 2096 gives 25 years, and 2100 is not one of them.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.