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
- Check divisibility by 400: If true, the year is a leap year.
- Otherwise check divisibility by 100: If true, it is not a leap year.
- Otherwise check divisibility by 4: If true, it is a leap year; otherwise it is a common year.
- 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
- Start with the inputs: divisible by 400
- Apply the relationship: leap = divisible by 400 OR (divisible by 4 AND not divisible by 100)
- Calculate the result: Leap year
- 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
- 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.
- 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.
- 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.
- 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.
- 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
| Year | Leap? | Reason |
|---|---|---|
| 1900 | No | divisible by 100, not 400 |
| 2000 | Yes | divisible by 400 |
| 2024 | Yes | divisible by 4, not 100 |
| 2026 | No | not divisible by 4 |
| 2100 | No | divisible 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.