Is it a leap year?
Leap year check
— —
— is —
- February that year
- —
- February 29 falls on
- —
- Next leap year
- —
- Previous leap year
- —
- The next five
- —
Century years are the exception people forget: they are leap years only when they divide by 400.
What is coming up
Every date we track that falls inside your window β so a birthday, a bank holiday or a deadline never arrives as a surprise.
Try one of these too
How do you tell whether a year is a leap year?
The DaysUntilNow leap year checker runs all three parts of the Gregorian rule and tells you which one decided the answer. A year is a leap year if it divides by 4, except that it is not if it divides by 100, except that it is again if it divides by 400.
That is why 1900 was an ordinary 365-day year and 2000 was not, and it is the part of the rule almost every hand-written date routine gets wrong β because the exception has not been visible since 1900 and will not be again until 2100.
Along with the verdict come the length of the year, the weekday February 29 falls on, the previous and next leap years, and the next five in sequence. Type any year from 1583, the first full year under the reformed calendar, to 4000.
Most people know the rule as “every four years”, which is right for 397 years out of every 400. The other three are the interesting part, and they are where software, spreadsheets and hand-written date code quietly break.
The rule, in the order it must be applied
- Does the year divide by 400? If yes, it is a leap year. 1600, 2000 and 2400 stop here.
- Does it divide by 100? If yes and it failed the first test, it is a common year. 1700, 1800, 1900 and 2100 stop here.
- Does it divide by 4? If yes, it is a leap year. This is where 2028, 2032 and 2036 are decided.
- Otherwise it is a common year of 365 days.
Run in that order the rule never needs a special case. Run in the reverse order β the way it is usually remembered β step 3 answers “yes” for 1900 and nothing later corrects it.
Century years, 1700 to 2400
Seven century years in a row, and only two of them carry a 29 February:
| Century year | Divides by 100 | Divides by 400 | Leap year? |
|---|---|---|---|
| 1700 | yes | no | no |
| 1800 | yes | no | no |
| 1900 | yes | no | no |
| 2000 | yes | yes | yes |
| 2100 | yes | no | no |
| 2200 | yes | no | no |
| 2300 | yes | no | no |
| 2400 | yes | yes | yes |
Three skips for every one that survives. Across a full 400-year cycle that leaves 97 leap days rather than 100, which is the entire mechanism of the Gregorian correction: 400 calendar years come to 146,097 days, or exactly 20,871 weeks.
How wrong the rule still is
Dividing 146,097 by 400 gives a mean calendar year of 365.2425 days. The mean tropical year β the one the seasons actually keep β is close to 365.2422. The calendar therefore runs about 26 seconds long per year, which accumulates to a full day roughly every 3,200 years.
That is worth comparing with what it replaced. The Julian calendar’s flat leap day every four years gives a mean year of 365.25 days, which drifts a day every 128 years or so; by the 1580s the spring equinox had moved ten days from where the church calendar expected it, and correcting that is why ten dates in October 1582 do not exist in the Catholic states at all.
Three ways software still gets this wrong
Testing only for divisibility by 4. The commonest bug, and one you cannot detect by testing β every test date between 1901 and 2099 gives the right answer anyway. It surfaces in 2100.
Assuming 2000 proved the code correct. A routine that checks only year % 4 and a routine that
implements the full rule agree on every year from 1901 to 2099, including 2000. The year-2000 rollover
tested nothing about this.
Adding a year to 29 February. Anniversary and renewal logic has to decide between 28 February and 1 March, and different systems in the same organisation often decide differently. Pick one, write it down, and check what your database does when it is handed 29 February 2027.
Where the leap day changes an answer
A leap day inside a span adds a day to it, which is why the same pair of dates can be 365 days apart one year and 366 the next β days between dates counts them as ordinary days. It changes how many working days a year holds, though not always in the direction people expect; working days in a year has the counts. It moves the halfway point of the year by twelve hours, which year progress shows, and it stretches the first quarter by a day in quarter dates.
Frequently asked questions
When was the last time a leap year was skipped?
In 1900 β and the next skip is 2100. The 100/400 exception has not been visible in any living person’s lifetime, because 2000 is divisible by 400 and kept its leap day, which is why a great deal of software passed the year-2000 test while still implementing the rule wrongly. Between 1901 and 2099 no century skip interrupts the pattern, so the calendar repeats on a plain 28-year cycle throughout that whole stretch.
If you were born on 29 February, when do you legally turn 18?
Usually on 1 March, not 28 February. Scotland has it in statute β section 6 of the Age of Legal Capacity (Scotland) Act 1991 sets the anniversary at 1 March in non-leap years β and UK electoral guidance applies the same date in England and Wales, so a leapling reaches 18 on 1 March. US practice is set state by state and by the issuing agency: some records roll to 28 February and some to 1 March, so the document itself decides. Nothing in either system changes the date of birth on the certificate; only the anniversary is being defined.
Is the 4/100/400 rule exact?
No β it is an approximation, and a very good one. The Gregorian year averages 365.2425 days against a mean tropical year of about 365.2422, so the calendar runs roughly 26 seconds long each year, which is about one day of drift every 3,200 years. No further correction is scheduled; proposals such as dropping the leap day in years divisible by 4000 have never been adopted by anyone.
Is a leap second the same thing as a leap year?
No. A leap year corrects the calendar against Earth’s orbit around the Sun; a leap second corrects clocks against Earth’s rotation, which is irregular and cannot be predicted years in advance β that is why leap seconds are announced months ahead while leap years are known centuries ahead. Twenty-seven leap seconds have been inserted since 1972, the most recent on 31 December 2016, and the General Conference on Weights and Measures voted in November 2022 to stop adding them by 2035.
How we calculate this
The check is the Gregorian rule applied in the order the rule is written: divisible by 400 is a leap year; otherwise divisible by 100 is not; otherwise divisible by 4 is. The order is the whole point, because testing divisibility by 4 first and stopping there produces a wrong answer once a century.
February 29’s weekday is then computed from the date itself rather than looked up, and the run of the next five leap years is generated by walking forward through the same test, which is why it correctly skips 2100 rather than printing a value four years after 2096.
The tool starts at 1583. The reform took effect in October 1582 in the Catholic states, and Britain and its colonies did not adopt it until 1752, so leap years before that date depend on which calendar the record was kept in β a question no calculator can answer for you.
Worked example
With Year 2028, this page works out Leap year 366 days. 2028 is divisible by 4 and not a century year
- February that year29 days
- February 29 falls onTuesday, February 29, 2028
- Next leap year2032
- Previous leap year2024
- The next five2028, 2032, 2036, 2040, 2044
Sources: