Leap Year Calculator
Type any year into the box and the calculator tells you at once whether it is a leap year or a common year. It also reports how many days that year holds, then lists the closest leap year before it and the closest one after it. The math uses the complete Gregorian rule, so century years like 1900 and 2100 are handled correctly rather than being treated as ordinary multiples of four.
How to check a leap year
- Click the Year field, which starts on the current year.
- Type the whole-number year you want to test, for example 2100.
- Read the headline result, either 'Leap year' or 'Not a leap year'.
- Check the Days in year value to see whether it is 366 or 365.
- Use the Previous leap year and Next leap year figures for surrounding context.
- Press Copy to grab the leap or not-leap verdict as text.
Examples
A century that is a leap year
2000
Leap year, 366 days, previous 1996, next 2004
A century that is not a leap year
1900
Not a leap year, 365 days, previous 1896, next 1904
An ordinary common year
2026
Not a leap year, 365 days, previous 2024, next 2028
Frequently asked questions
What makes a year a leap year?
A year is a leap year when it divides evenly by 4, with one exception: years that divide by 100 are skipped unless they also divide by 400. That single exception is why the rule looks more complicated than 'every four years'.
Why is 1900 not a leap year but 2000 is?
Both years divide by 4 and by 100, so the century exception removes them from the normal cycle. Only 2000 also divides by 400, which puts it back in, while 1900 stays a 365 day common year.
How many days are in a leap year?
A leap year has 366 days because February gains a 29th day. A common year has 365 days, and the tool shows the exact figure for whichever year you enter.
Can I enter years before year 1 or very large years?
You can enter any whole number, including large future years, and the arithmetic stays exact. Keep in mind the Gregorian calendar was only adopted in 1582, so applying its rule to much older years is a mathematical projection rather than a historical fact.
Does it accept decimals or text?
No. The field expects a whole-number year, and entering a decimal, a blank, or letters shows a short prompt to enter a whole-number year instead of a result.
How does it pick the next and previous leap year?
It steps outward one year at a time from the year you entered and stops at the first leap year it finds in each direction. That means even if you type a leap year itself, the neighbours shown are different years.
Are leap years always four years apart?
Usually, but not always. Around a skipped century such as 1900, the gap stretches to eight years (from 1896 to 1904), which the previous and next figures make visible.
Why does the calendar need leap years at all?
Earth takes about 365.2422 days to orbit the Sun, so a fixed 365 day year drifts against the seasons. Adding a day most four-year cycles, then trimming three of those additions every 400 years, keeps the calendar closely aligned.
Is my data private?
Yes. Every calculation runs locally in your browser and no year you type is ever uploaded to a server.
Learn more
- The leap year rule, and why it has three parts
How the divide by 4, skip by 100, keep by 400 rule works, where it came from, and why it keeps the calendar in step with the seasons.
Related tools
Day of the Week Calculator
Find out what day of the week any date falls on, from past to future. See the weekday name and whether it lands on a weekend. Free and instant.
Days Until Date
Count the days from today, or any start date, until a target date, with a weeks and days breakdown. Works for past dates too. Free and instant.
Add Business Days Calculator
Add or subtract working days from a date, skipping weekends and any holidays you list. See the result date and its day of the week instantly.
Add Days Calculator
Add or subtract calendar days from any date and see the result with its day of the week. Free, instant and works for past or future dates.
Add Time Calculator
Add or subtract hours and minutes from a time of day. See the new clock time and whether it crosses into another day. Free and private.
Add to Date
Add or subtract days, weeks, months and years from any date and get the new date. Handles month-end and leap days correctly. Free and instant.