Date & time

Leap Year Calculator

Check whether a Gregorian calendar year contains February 29 and 366 days.

Date conventions explained belowClear start and end values
Date workspace
Date workspace

Check which endpoints and calendar conventions are included.

See the method

Choose your dates and times

Runs on your device

Your time calculation

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter year.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
YearNumeric value. Minimum: 100. Maximum: 9999.2028

Result for these sample inputs

Leap year
Days in year
366
Days in February
29

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

A year is a leap year if divisible by 4, except years divisible by 100 unless they are also divisible by 400.

A WORKED EXAMPLE

2000 is a leap year because it is divisible by 400. 1900 is not a leap year, although it is divisible by 4.

What to keep in mind

Applies Gregorian rules consistently to years 0100–9999. Historical adoption dates differed by country; this is not a historical local-calendar reconstruction.

Common questions

Why are some century years not leap years?

The Gregorian rule omits three leap days in every 400-year cycle by excluding century years not divisible by 400.

How many days are in February?

29 in a Gregorian leap year and 28 otherwise.

Methodology maintained by ClarityKit. How these tools are built and checked.