Leap Year Calculator

Check if any year is a leap year.

What Is a Leap Year Calculator?

A leap year calculator is a tool that determines whether a given year is a leap year according to the Gregorian calendar rules. It also provides supplementary information such as the next and previous leap years, how many days are in the year, and an explanation of why the year does or does not qualify as a leap year.

Knowing whether a year is a leap year matters in many practical situations. Software developers must handle February 29 correctly in date calculations. Accountants and payroll managers need to know whether a fiscal year has 365 or 366 days. Event planners working with recurring annual dates must account for the extra day. Even casual users checking a birthday or anniversary benefit from a quick and definitive answer.

How Leap Year Rules Work

The Gregorian calendar uses three rules to determine leap years, applied in sequence.

Rule 1: Divisible by 4. If a year is evenly divisible by 4, it is a candidate for leap year status. Years like 2020, 2024, and 2028 pass this test.

Rule 2: Century exception. If a year is divisible by 100, it is not a leap year despite passing Rule 1. This removes the overcorrection that would occur if every fourth year had an extra day. Years like 1800, 1900, and 2100 fail at this step.

Rule 3: 400-year override. If a year is divisible by 400, it is a leap year despite the century exception. This fine-tunes the average year length to match the astronomical year more closely. Years like 1600, 2000, and 2400 pass this final test.

The result of these three rules is that in every 400-year cycle there are exactly 97 leap years: 100 candidate years minus 4 century exceptions plus 1 override. This gives an average year length of 365.2425 days, which is very close to the actual tropical year of approximately 365.2422 days.

How to Use This Calculator

  1. Enter any year from 1 to 9999 in the input field. The calculator accepts the year as a four-digit number.

  2. View the immediate result. The calculator displays a clear yes or no answer along with a detailed explanation of which rule applies to your year.

  3. Check the year facts. Below the main result you will see how many total days and how many February days the year has.

  4. Browse nearby leap years. The next 10 and previous 10 leap years are listed in grid format, making it easy to see the pattern of leap years around your input.

  5. Review the century statistics to see how many leap years fall in the century that contains your year.

  6. Use the quick check buttons to test interesting years like 2024 (standard leap year), 2025 (not a leap year), 1900 (century exception), and 2000 (400-year override).

Worked Examples

Example 1: Standard Leap Year (2024)

2024 divided by 4 equals 506 with no remainder. 2024 is not divisible by 100, so the century exception does not apply. Result: 2024 is a leap year with 366 days and 29 days in February.

Example 2: Common Year (2023)

2023 divided by 4 equals 505 with a remainder of 3. Since 2023 is not divisible by 4, it fails the first rule. Result: 2023 is not a leap year. It has 365 days and 28 days in February.

Example 3: Century Exception (1900)

1900 is divisible by 4 (1900/4 = 475). However, 1900 is also divisible by 100 (1900/100 = 19). Since 1900 is not divisible by 400 (1900/400 = 4.75), the century exception holds. Result: 1900 is not a leap year despite being divisible by 4.

Example 4: 400-Year Override (2000)

2000 is divisible by 4, by 100, and by 400 (2000/400 = 5). The 400-year override takes precedence over the century exception. Result: 2000 is a leap year. This is why the year 2000 had 366 days and included February 29.

Common Use Cases

  • Software development: Correctly handle date arithmetic, age calculations, and scheduling systems that must account for the variable length of February.
  • Financial planning: Determine the number of days in fiscal years for interest calculations, daily rate computations, and payroll processing.
  • Birthday and event planning: Check whether a specific year includes February 29 for people born on that date or for events scheduled around that time.
  • Historical research: Verify whether a historical year was a leap year when cross-referencing dates in historical documents and records.
  • Education: Learn and demonstrate the Gregorian leap year rules through interactive examples, which is a common topic in math and science curricula.
  • Legal compliance: Determine the exact number of days in a contract year or insurance policy period when per-day calculations are required.

Tips and Common Mistakes

Do not assume every fourth year is a leap year. While most years divisible by 4 are leap years, the century exception means that 1700, 1800, and 1900 were not leap years. The next century exception is 2100.

Remember that the year 2000 was a leap year. Because many people learned only the basic "divisible by 4" rule, the century exception for 1900 is well known. But the 400-year override that made 2000 a leap year is less commonly remembered. Both exceptions work together.

Apply the rules in order. Check divisibility by 4 first, then by 100, then by 400. Checking in a different order can lead to incorrect conclusions, especially for century years.

Use this calculator for the Gregorian calendar only. The Julian calendar (used before 1582 in most of Europe) had a simpler rule where every year divisible by 4 was a leap year. Historical dates before the Gregorian adoption may follow different rules depending on the region.

Account for leap seconds separately. Leap years add an extra day to the calendar, but leap seconds (occasional one-second adjustments to UTC) are an entirely different mechanism. They are unrelated to the leap year cycle and are announced by international timekeeping authorities on an irregular schedule.

Frequently Asked Questions

What makes a year a leap year?

A year is a leap year if it is divisible by 4, with two exceptions. Years divisible by 100 are not leap years unless they are also divisible by 400. So 2024 is a leap year (divisible by 4), 1900 is not (divisible by 100 but not 400), and 2000 is a leap year (divisible by 400). This three-part rule keeps the calendar aligned with Earth's orbit.

Why do we need leap years?

Earth takes approximately 365.2422 days to orbit the sun, not exactly 365 days. Without leap years, the calendar would drift by about one day every four years. Over centuries, seasons would shift relative to calendar months. Leap years add one extra day (February 29) to correct this drift and keep the calendar synchronized with the astronomical year.

Why was 1900 not a leap year even though it is divisible by 4?

The century exception exists because adding a leap day every four years slightly overcorrects the calendar. A year has 365.2422 days, not 365.25. Skipping the leap day in most century years (like 1900) removes the overcorrection. The 400-year override (like for 2000) adds back a small correction for even finer accuracy. Together these rules produce an average year of 365.2425 days.

How often do leap years occur?

Leap years occur approximately every four years but not exactly. In a 400-year cycle there are exactly 97 leap years, not 100, because three century years out of every four are skipped. This works out to a leap year roughly every 4.12 years on average. The next several leap years from 2024 are 2028, 2032, 2036, and 2040.

What happens to people born on February 29?

People born on February 29 (sometimes called leaplings) technically have a birthday only once every four years on the actual date. In non-leap years, they typically celebrate on February 28 or March 1 depending on personal preference and local convention. For legal purposes, most jurisdictions treat March 1 as the equivalent birthday in non-leap years.

Is the Gregorian leap year system perfectly accurate?

The Gregorian calendar is extremely accurate but not perfect. Its average year length of 365.2425 days differs from the actual tropical year of about 365.2422 days by approximately 26 seconds per year. This tiny error accumulates to about one day every 3,236 years. No additional correction has been officially adopted because the discrepancy is so small.

Were leap years different in the Julian calendar?

Yes. The Julian calendar, used before 1582, had a simpler rule: every year divisible by 4 was a leap year with no exceptions. This produced an average year of 365.25 days, which was 11 minutes and 14 seconds too long. By the 16th century, the calendar had drifted about 10 days from the astronomical seasons, prompting Pope Gregory XIII to introduce the reformed Gregorian calendar.

How does this calculator handle years before the Gregorian calendar?

The calculator applies the Gregorian leap year rules to all years from 1 to 9999 for consistency, even though the Gregorian calendar was only adopted in 1582. This is called the proleptic Gregorian calendar and is standard practice in computing. For historical dates before 1582, the actual calendar in use would have been the Julian calendar with different leap year rules.