Desmarto
Utility instrumentAnswer first. Adjust only what matters.
Date · Calculator

Leap Year Calculator

Determine whether any year is a leap year and discover why — with clear explanations of the rules.

← All date calculators
Calculated result

Common Year

365 Days

February has 28 days

2026 is not divisible by 4 — it is not a leap year.

Days in Year

365

Next Leap Year

2028

Next leap year

Previous Leap

2024

Last leap year

Century Rule

2026 is not a century year.

How the Leap Year Rule Works

  • Divisible by 4: Most years divisible by 4 are leap years.
  • Divisible by 100: Century years are NOT leap years unless...
  • Divisible by 400: ...they are also divisible by 400.

Smart Insights

2026 is a common year with 365 days.
The next leap year after 2026 is 2028.
The last leap year before 2026 was 2024.
There are about 730 days until the next leap year.

How It Works

The leap year rules were established by Pope Gregory XIII in 1582. They correct for the fact that Earth orbit around the sun takes approximately 365.2422 days — slightly more than 365 days.

Frequently Asked Questions

What is a leap year?

A leap year has 366 days instead of 365. An extra day (February 29) is added to keep our calendar aligned with the Earth orbit.

How do I know if a year is a leap year?

A year is a leap year if it is divisible by 4, except for century years (years divisible by 100), which are only leap years if also divisible by 400.

Why do we have leap years?

Earth orbit takes approximately 365.2422 days. Without leap years, our calendar would drift by about 24 days every century.

What happens on February 29 in a non-leap year?

February has 28 days in common years. February 29 only exists in leap years.

Why was the year 2000 a leap year?

2000 is divisible by 400, so it is a leap year despite being a century year.

Why is 2100 not a leap year?

2100 is divisible by 100 but not by 400, so it is a common year despite being divisible by 4.

Last reviewed: September 10, 2026

Leap year rules and checks

A leap year adds February 29 to keep the civil calendar aligned with the solar year. In the Gregorian calendar, most years divisible by 4 are leap years, but century years are an exception unless they are also divisible by 400. This is why 2000 was a leap year but 1900 and 2100 are not.

How to use it accurately

  1. Check divisibility by 400: If true, the year is a leap year.
  2. Otherwise check divisibility by 100: If true, it is not a leap year.
  3. Otherwise check divisibility by 4: If true, it is a leap year; otherwise it is a common year.
  4. Use the result for date arithmetic: A leap year has 366 days and shifts ordinal dates after February by one.

Gregorian leap-year test

leap = divisible by 400 OR (divisible by 4 AND not divisible by 100)

The century exception prevents the calendar from gaining too many leap days over long periods while the 400-year rule restores the needed correction.

Worked examples

Year 2000

Inputs: divisible by 400

Result: Leap year

Although it is a century year, divisibility by 400 makes it leap.

Year 2100

Inputs: divisible by 100 but not 400

Result: Not a leap year

The ordinary divisible-by-4 rule is overridden for this century year.

Calculation steps from a worked example

  1. Start with the inputs: divisible by 400
  2. Apply the relationship: leap = divisible by 400 OR (divisible by 4 AND not divisible by 100)
  3. Calculate the result: Leap year
  4. Sanity-check the answer: Although it is a century year, divisibility by 400 makes it leap.

How to interpret the result

Leap Year Calculator should be interpreted together with the inputs and the convention used to produce the answer. The core relationship on this page is “leap = divisible by 400 OR (divisible by 4 AND not divisible by 100)”. The century exception prevents the calendar from gaining too many leap days over long periods while the 400-year rule restores the needed correction. In practical use, that means the displayed number is not just an isolated output: it represents a result under the assumptions stated on this page. Date calculations depend on calendar conventions such as inclusive versus exclusive endpoints, month length, leap years, weekday rules, and sometimes holidays. A result is most useful when the counting convention is recorded with it.

A useful sanity check is to compare your result with a nearby worked example. For “Year 2000”, the inputs divisible by 400 produce Leap year. Although it is a century year, divisibility by 400 makes it leap. A second boundary check is “Year 2100”: divisible by 100 but not 400 produces Not a leap year. The ordinary divisible-by-4 rule is overridden for this century year. If your result moves in the opposite direction from these examples when you change a similar input, recheck units, signs, endpoints, rounding, or any special option before copying the answer elsewhere.

How to verify the calculation

  1. Re-read the original inputs before checking the result. A correct formula cannot compensate for an incorrect date, time, rate, duration, amount, or sign entered at the start.
  2. Recalculate the central relationship once by hand or with a simple independent method: leap = divisible by 400 OR (divisible by 4 AND not divisible by 100). The purpose is not to reproduce every display detail, but to confirm that the answer is in the right range and direction.
  3. Check the output units and formatting. The reference table “Century examples” is a second quick check when your inputs fall near one of the listed values.
  4. Test the edge case that is most similar to your situation. One important warning on this calculator is: Not every year divisible by 4 is a leap year; century exceptions matter.
  5. Before using the result for a consequential decision, read the assumptions section. The calculator uses Gregorian leap-year rules, including for years where a historical region may have used another calendar. For historical scholarship, use the calendar system actually in force at the place and time.

When this calculator is useful

  • Checking whether February has 28 or 29 days.
  • Validating date ranges across February.
  • Explaining day-of-year differences after February.
  • Planning recurring events around February 29.

Century examples

YearLeap?Reason
1900Nodivisible by 100, not 400
2000Yesdivisible by 400
2024Yesdivisible by 4, not 100
2026Nonot divisible by 4
2100Nodivisible by 100, not 400

Common mistakes and edge cases

  • Not every year divisible by 4 is a leap year; century exceptions matter.
  • The Julian calendar uses a different historical rule.
  • A leap year has 366 days, but a calendar year interval can still depend on endpoints.
  • Legal treatment of February 29 birthdays can be jurisdiction-specific.

Assumptions and limitations

The calculator uses Gregorian leap-year rules, including for years where a historical region may have used another calendar. For historical scholarship, use the calendar system actually in force at the place and time.

Frequently asked questions

How can I verify a Leap Year Calculator result?

Keep the original inputs, apply the page's core relationship (leap = divisible by 400 OR (divisible by 4 AND not divisible by 100)), and compare the answer with the worked examples. For example, divisible by 400 should give Leap year. The reference table “Century examples” is a second quick check when your inputs fall near one of the listed values. If the independent check is close but not identical, inspect rounding, endpoint, unit, or convention differences before assuming either result is wrong.

Why might another Leap Year Calculator show a different answer?

Two calculators can use the same basic mathematics but differ in assumptions or input interpretation. On this page, an especially important source of disagreement is: The Julian calendar uses a different historical rule. Another is: A leap year has 366 days, but a calendar year interval can still depend on endpoints. Compare the settings and definitions first; only then compare the final numbers.

What should I save with a Leap Year Calculator result?

Save the inputs, result, units, date of calculation, and any option that changes the convention. This is particularly useful when the result is later copied into a timesheet, schedule, budget, report, invoice, application, or spreadsheet. Recording the assumptions makes it possible to reproduce the calculation instead of relying on a number with no context.

When is this Leap Year Calculator not enough on its own?

The calculator uses Gregorian leap-year rules, including for years where a historical region may have used another calendar. For historical scholarship, use the calendar system actually in force at the place and time. Use the result as the arithmetic or planning layer, then verify any legal, payroll, lender, tax, time-zone, holiday, policy, or specialist rule that applies to the real decision. The calculator is most reliable when the question matches the stated scope rather than when a general result is stretched into a domain-specific ruling.

AI & citation information

This public block gives search, answer, and citation systems a concise description of what this page covers. It does not replace the calculator instructions or the assumptions above.

Tool
Leap Year Calculator
Publisher
Desmarto
Page type
Free online calculator and explanatory reference
Key concepts
Leap Year Calculator; Date; Gregorian leap-year test
Use this page when
A leap year adds February 29 to keep the civil calendar aligned with the solar year.
Calculation basis
leap = divisible by 400 OR (divisible by 4 AND not divisible by 100). The century exception prevents the calendar from gaining too many leap days over long periods while the 400-year rule restores the needed correction.
Important caveat
The calculator uses Gregorian leap-year rules, including for years where a historical region may have used another calendar.
Canonical page
https://desmarto.com/date-calculators/leap-year
Last reviewed
September 10, 2026

Suggested citation: Desmarto. “Leap Year Calculator.” https://desmarto.com/date-calculators/leap-year. Updated September 10, 2026.