Planning & countdowns

Leap year checker

Apply the Gregorian leap-year rule and find the year’s day count.

Your starting point

Your result
Let’s make it clear.
Choose your inputs, then calculate.

Calculated in your browser. Your inputs are not uploaded.

Apply the Gregorian leap-year rule and find the year’s day count. A year divisible by four is normally a leap year, but century years must also divide by four hundred. This explains why 1900 is common while 2000 is leap.

Apply the Gregorian century rule

The result shows the year’s day count and February length. It uses a proleptic Gregorian rule for the supported year range and does not infer historical civil adoption dates.

The leap-year rule does not define leap seconds or a time-zone transition. Use the relevant dated-time method for an instant-based question.

Make the century check before trusting a shortcut

For Gregorian years, start by checking whether the year divides by four. If it does not, February has 28 days. If it does, look for the two zeroes at the end of a century year. Ordinary multiples of four add February 29. A century also needs to divide by 400 to add that date. The calendar repeats this leap-year pattern every 400 years. The result shows the year status, count of annual dates, February length and the relevant rule.

The year 1900 divides by four and by 100. It fails the 400 test and has an ordinary February in the Gregorian calendar. The year 2000 does satisfy the final test and includes 29 February. A check that treats every multiple of four as leap will work for many years and quietly fail at some civil centuries. Test these two cases together when validating a date function or historical export.

ScenarioEntriesWhat the calculator showsHow to use it
A modern ordinary yearCalendar year = 2026Common year. 2026. Calendar days = 365, February days = 28, Rule = Years divisible by 4 are leap yearsCheck a common result that fails the initial test.
A modern leap yearCalendar year = 2028Leap year. 2028. Calendar days = 366, February days = 29, Rule = Years divisible by 4 are leap yearsApply the rule for a non-century multiple of four.
First year of the twentieth century boundary exampleCalendar year = 1900Common year. 1900. Calendar days = 365, February days = 28, Rule = Century years must also divide by 400This century fails the final divisibility test.
Divisible by 400Calendar year = 2000Leap year. 2000. Calendar days = 366, February days = 29, Rule = Century years must also divide by 400The Gregorian century exception itself has an explicit exception.
Next common centuryCalendar year = 2100Common year. 2100. Calendar days = 365, February days = 28, Rule = Century years must also divide by 400Check before planning a future 29 February date.
Leap again in a later centuryCalendar year = 2400Leap year. 2400. Calendar days = 366, February days = 29, Rule = Century years must also divide by 400The 400-year pattern returns a leap year.

Why date comparison tools care about February

In a common year there is one date transition from 28 February to 1 March. In a leap year there are two. A one-day calendar offset from 28 February consequently reaches different destination labels in different years. Check the specific year attached to the date before deciding whether a February 29 record is possible. A document that says “29 February” without a year does not provide a complete date.

Under the Gregorian rules, 365 days make 52 full weeks plus one date, while 366 days make 52 weeks plus two. Those extras alter the weekday on which later anniversaries fall. Which weekdays change across two equal month/day labels depends on whether the interval contains the extra February date. A weekday or ISO week result should be derived from the full date rather than an assumption about the year name alone.

Use the output to test a real program or calendar import

A century needs the additional divide-by-four-hundred rule.

Calendar year: 1900.

The primary result is Common year, labeled “1900”. Calendar days: 365. February days: 28. Rule: Century years must also divide by 400.

A year divisible by four is normally a leap year, but century years must also divide by four hundred. This explains why 1900 is common while 2000 is leap.

This century satisfies that additional rule.

Calendar year: 2000.

The primary result is Leap year, labeled “2000”. Calendar days: 366. February days: 29. Rule: Century years must also divide by 400.

An ordinary divisible-by-four year includes the extra February date.

Calendar year: 2028.

The primary result is Leap year, labeled “2028”. Calendar days: 366. February days: 29. Rule: Years divisible by 4 are leap years.

An import should validate a written date before it accepts it. Try 28 February, 29 February and 1 March in a common year and a leap year. Check the ordinary years, the four-year rule, a century exception and the year 2000. A well-specified test records both the expected accepted dates and the expected rejections. An application that quietly coerces an invalid 29 February to 1 March can change a booking, birthday or report cutoff without warning.

Another test looks at annual totals or ordinal data. Use the day of year tool for 1 March and 31 December in each example. March 1 shifts from day 60 to 61, and December 31 shifts from 365 to 366. January and the first 28 days of February preserve their ordinal positions in either calendar. These comparisons verify that an extra date appears in the right month and that year-end tallies include it.

Small year with zero padding in a date

Gregorian leap arithmetic applies to the supported year, independent of how many digits are displayed.

Calendar year = 4

Leap year · 4

  • Calendar days · 366
  • February days · 29
  • Rule · Years divisible by 4 are leap years

Final supported year

The same integer tests apply near the upper limit.

Calendar year = 9999

Common year · 9999

  • Calendar days · 365
  • February days · 28
  • Rule · Years divisible by 4 are leap years

A weekday-pattern comparison year

Use the year result to expect a changed ordinal for dates after February.

Calendar year = 2032

Leap year · 2032

  • Calendar days · 366
  • February days · 29
  • Rule · Years divisible by 4 are leap years

Distinguish leap years from other time adjustments

A leap year adds a whole Gregorian date. Time zone clock changes alter a region's clock offset. A leap second belongs to timekeeping on a different scale from this date rule. Use suitable time sources for second-level timestamp work. The leap year result says only whether the Gregorian date 29 February exists within the chosen year. If the job is to calculate elapsed time across a change of clocks, use the appropriate dated clock tool.

For historical records, geography and the recorded calendar can matter. An institution may have used the Julian calendar at the time it wrote a date. The modern Gregorian rule applied retrospectively does not convert the label or establish local adoption. Check reliable archival convention or get an explicit calendar conversion before using historical dates in other tools. This form applies Gregorian arithmetic across years 0001–9999.

Review a 400-year block

The pattern contains 100 multiples of four in a span such as 2000 through 2399. Four of those years are centuries. Three fail the 400 rule and the first one passes, giving 97 leap years in the block. Multiplying 400 by 365 and adding those extra dates gives 146,097 dates. This total is divisible by seven, which explains why the Gregorian weekday layout also repeats after 400 years. A clock change or local historical calendar does not follow that same assumption. Use the repeated pattern as a mathematical check on Gregorian data, and verify source calendar conventions when working with the original dates.

Gregorian leap year questions

Why is 1900 common if it divides by four?

Gregorian century years must also divide by 400 to contain 29 February. The year 1900 fails that final test and therefore contains 365 calendar dates.

Why was 2000 a leap year?

It is divisible by 400. That passes the special century test in the Gregorian calendar and adds 29 February to the year.

Will 2100 have a 29 February?

Under the Gregorian rule, 2100 is an ordinary year. It divides by 100 but not by 400, leaving February with 28 dates.

Does a leap year change how many days other months have?

February changes from 28 to 29. The month length pattern for January and March through December stays the same. Later dates acquire an ordinal number one higher within the year.

Can I use the checker for another calendar?

Select it for Gregorian years only. Other calendars use their own intercalation rules. Obtain a verified conversion if your records need to be worked with in Gregorian dates.

Which date is the extra one?

It is 29 February. From 28 February the next Gregorian date in a leap year is the 29th, followed by 1 March. In a common year the next date is 1 March directly.

Does a leap year have exactly 52 weeks and two days?

As a length, 366 days equals 52 complete groups of seven plus two days. ISO week-year numbering is distinct and depends on the placement of Thursdays at year boundaries.

A useful next step