Worked example
Take 1900: 1900 ÷ 4 = 475, a whole number, so it could be a leap year. 1900 is a century year (1900 ÷ 100 = 19), so it is only a leap year if it divides by 400. 1900 ÷ 400 = 4.75, not a whole number, so 1900 is not a leap year. Now 2000: 2000 ÷ 4 = 500, a whole number, so it could be a leap year. 2000 is a century year (2000 ÷ 100 = 20), so it is only a leap year if it divides by 400. 2000 ÷ 400 = 5, a whole number, so 2000 is a leap year. So after 1896 there was no 29 February until 1904, an eight-year gap, while 2000 kept its leap day.
Leap years from 2024 to 2060
2024, 2028, 2032, 2036, 2040, 2044, 2048, 2052, 2056, 2060
The next century year that is not a leap year is 2100, so anyone writing date code that simply checks “divisible by 4” will be wrong in 2100, 2200 and 2300 but right again in 2400.
The rule in code
The whole rule fits in one line: a year y is a leap year when (y mod 4 = 0 and y mod 100 ≠ 0) or y mod 400 = 0. In a spreadsheet, =DATE(year,2,29) lands on 1 March in a common year, so checking whether that date’s month is 2 is a handy shortcut (except that Excel wrongly treats 1900 as a leap year, a bug kept for compatibility with Lotus 1-2-3).
Leap days, birthdays and pay
About 1 in 1,461 people is born on 29 February. A leap year also has 52 weeks and 2 days, so salaried staff paid weekly or every two weeks occasionally get an extra payday in a year, and daily rates worked out from an annual salary change slightly. Interest calculated on an actual/365 basis earns one extra day in a leap year, while actual/actual divides by 366.
Leap seconds are a separate fix: they adjust clock time to the Earth’s slightly irregular rotation, not the calendar, and are set to be phased out by 2035.
Related tools
- Birthday countdown
- Daylight saving time dates
- Sunrise and sunset times
- Age calculator
- Day of the week calculator
- Days between dates
- Week number
Sources
Checked on November 26, 2026:
- NIST: Leap seconds FAQs
- BIPM, CGPM 2022 Resolution 4 (leap seconds to end by 2035)
- US Naval Observatory: Introduction to calendars
- Microsoft: Excel incorrectly assumes that the year 1900 is a leap year
Frequently asked questions
What is the leap year rule?
Is 2028 a leap year?
Why do we have leap years?
Why skip three century leap years every 400 years?
When did this rule start?
How many days are in a leap year?
Last updated: 2026-11-26