Leap Year Checker
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free leap year checker. Enter any year to see if it's a leap year and why, how many days it has, and the previous and next leap years.
- Days in the year
- 0
- Days in February
- 0
- Previous leap year
- 0
- Next leap year
- 0
- Upcoming leap years
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the leap year checker
- Enter a year, such as 2028, 1900 or 2400.
- Read the answer: whether it's a leap year, and why.
- See the details: how many days the year has, how many days February has, the previous and next leap years, and the next six leap years from the year you entered.
The leap year checker runs in your browser and works for any year from 1 onwards.
What a leap year is
A leap year has 366 days instead of 365, with an extra day, 29 February, added to the calendar.
Leap years exist because the Earth takes about 365.2422 days to go around the Sun (a tropical, or solar, year). A calendar of exactly 365 days would drift by almost a quarter of a day each year, so over a century the seasons would slip by about 24 days. Adding a day every four years keeps the calendar in step with the seasons.
The leap year rules
In the Gregorian calendar, used by most of the world, a year is a leap year if:
- It's divisible by 4,
- except if it's divisible by 100,
- unless it's also divisible by 400.
So:
- 2028: divisible by 4 and not by 100, so it's a leap year.
- 2026: not divisible by 4, so it's not a leap year.
- 1900: divisible by 100 but not by 400, so it's not a leap year.
- 2000: divisible by 400, so it is a leap year.
- 2100: divisible by 100 but not by 400, so it won't be a leap year.
The leap year checker shows which rule applies to your year.
Why the century rule exists
Adding a leap day every four years would give an average year of 365.25 days, which is slightly too long (by about 11 minutes a year). Over centuries, that adds up. The Gregorian rule skips three leap years every 400 years, giving an average of 365.2425 days, very close to the solar year. The remaining error is about one day every few thousand years.
A little history
The Julian calendar, introduced by Julius Caesar in 46 BC, added a leap day every four years without exceptions. By the 16th century, it had drifted about 10 days from the seasons. In 1582, Pope Gregory XIII introduced the Gregorian calendar, which removed 10 days and added the century rule.
Countries adopted it at different times. Catholic countries such as Spain, Portugal and Italy switched in 1582; Britain and its colonies (including what became the United States) switched in 1752, skipping 11 days; Russia switched in 1918, and Greece in 1923. For years before a country's switch, historical dates may follow the Julian calendar, where every fourth year was a leap year. The leap year checker applies the Gregorian rules, and notes when a year is before 1582.
Leap year facts
- Leap day babies ("leaplings") born on 29 February have a birthday on the calendar only every four years. They often celebrate on 28 February or 1 March in other years; for legal purposes, the rule depends on the country.
- Leap seconds are a different thing: occasional one-second adjustments to clock time, unrelated to leap years.
- Some calendars have leap months instead of leap days, such as the Hebrew and Chinese calendars.
Leap years in date calculations
Leap years affect many calculations: the number of days between dates, ages, interest calculated by the day, and deadlines that span February. All DeepRit date tools use real calendar dates, so they handle leap years automatically. The days until calculator counts days between dates, the age calculator works out exact ages, the day of the week calculator finds the weekday of any date, and the date calculator adds days, months or years.
Leap years in spreadsheets and code
- Excel and Google Sheets:
=IF(OR(MOD(A1,400)=0,AND(MOD(A1,4)=0,MOD(A1,100)<>0)),"Leap","Not leap"). (Excel's date system famously treats 1900 as a leap year for compatibility with an old spreadsheet program, even though it wasn't.) - Code:
(year % 4 == 0 && year % 100 != 0) || year % 400 == 0.
Leap years and software bugs
Leap years regularly catch out software. Common problems include:
- Assuming every year has 365 days, which breaks calculations that span 29 February.
- Assuming February always has 28 days, which rejects valid dates like 29 February 2028.
- Adding a year to 29 February: the result has to be either 28 February or 1 March, and different systems choose differently.
- Forgetting the century rule, which made some older systems treat 1900 or 2100 incorrectly.
Testers often include leap days and century years in their test data. The leap year checker is a quick way to confirm which years are leap years before writing tests.
Leap years and pay, interest and contracts
Leap years can affect money:
- Daily interest: some loans and savings accounts calculate interest using 365 days, others use the actual number of days (366 in a leap year), and some use 360.
- Salaries: employees paid an annual salary but calculated daily may see slightly different daily rates in a leap year.
- Contracts and leases: a one-year contract starting on 1 March 2027 ends on 29 February 2028, so it covers 366 days.
These details matter most for large sums or legal calculations, so check the specific rules in your contract or policy.
Leap years in other calendars
The Gregorian calendar isn't the only one with leap rules:
- The Julian calendar, still used by some Orthodox churches for religious dates, adds a leap day every four years without the century exception, so it's now 13 days behind the Gregorian calendar.
- The Hebrew calendar adds a whole leap month seven times in a 19-year cycle.
- The Islamic calendar is lunar and doesn't try to stay aligned with the seasons, so its months move through the solar year.
- The Chinese calendar adds leap months to keep lunar months in step with the solar year.
The leap year checker uses the Gregorian rules, which apply to civil dates in almost every country today.
Quick list: leap years this century
The leap years from 2000 to 2096 are every fourth year: 2000, 2004, 2008, … 2024, 2028, 2032, … 2096. The next century year, 2100, is not a leap year, so there will be an eight-year gap between 2096 and 2104. Enter any year into the leap year checker to confirm, and to see the leap years that follow it.
Quick tip
When testing software, include 29 February, 28 February in a non-leap year, and a century year like 1900 or 2100 in your test dates.
Who uses a leap year checker
Software testers check date handling. Students learn the calendar rules. Payroll and finance teams check years with 366 days, and curious people settle debates about whether a particular year was a leap year.
In summary
A year is a leap year if it's divisible by 4, except century years, which must be divisible by 400. Enter any year to see whether it's a leap year, why, how many days it has, and when the next and previous leap years fall.
A worked example
A software tester is writing test cases for a booking system and needs years that test every leap year rule. She checks several in the leap year checker:
- 2028: leap year, divisible by 4 and not by 100. 366 days; February has 29.
- 1900: not a leap year, divisible by 100 but not by 400.
- 2000: leap year, divisible by 400.
- 2026: not a leap year. Previous leap year: 2024. Next: 2028.
The upcoming leap years from 2028 are 2028, 2032, 2036, 2040, 2044 and 2048. She adds 29 February 2028 and 28 February 2100 to her test data, since 2100 isn't a leap year.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
Sources and further reading
- Leap year on Wikipedia: the rules, history and leap years in other calendars.
- Gregorian calendar on Wikipedia: the 1582 reform and when countries adopted it.
- NASA Space Place explains what a leap year is and why we need them.
Frequently asked questions
How do you know if a year is a leap year?
It's a leap year if it's divisible by 4, except century years, which must be divisible by 400. The leap year checker applies the rules for you.
Is 2028 a leap year?
Yes. It's divisible by 4 and not by 100.
Was 1900 a leap year?
No. It's divisible by 100 but not by 400.
Was 2000 a leap year?
Yes, because it's divisible by 400.
How many days are in a leap year?
366, with 29 days in February.
Is the leap year checker free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.