Leap Year Check
Calculator

Inputs

Is a leap year (1 = yes)
1

Results

Is a leap year (1 = yes)
1
Days in the year
366
Extra day added by leap year
1
Weeks in the year
52.285714

Time and date results

Is a leap year (1 = yes)1
Days in the year366
Extra day added by leap year1
Weeks in the year52.285714

formula-map diagram

Is a leap year (1 = yes)
1
Days in the year
366
Extra day added by leap year
1
Weeks in the year
52.285714

Time relationship

Formula

leap year ⇔ (year mod 4 = 0 and year mod 100 ≠ 0) or (year mod 400 = 0)

= 1

Note

This is a simplified model: it uses fixed conversions (60 minutes per hour, 24 hours per day, 7 days per week, 365 days per year) and ignores leap years, daylight saving changes, public holidays and irregular month lengths. Check the result against a real calendar before relying on it.

Example: with the default inputs, calculator.timedate.is_leap_year is 1.

More in Time and date

See all →

Frequently asked questions

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

Enter the year and the calculator tells you whether it is a leap year. It uses the Gregorian rule: divisible by 4 and not by 100, or divisible by 400.

Why is 1900 not a leap year but 2000 is?+

Both are century years. Century years are leap years only if divisible by 400: 2000 is, 1900 is not. That is the exception to the divisible-by-4 rule.

How many days does a leap year have?+

A leap year has 366 days, with the extra day being February 29. A common year has 365 days. The calculator shows the days in the year and the extra day.

Does this work for years before the Gregorian calendar existed?+

The same Gregorian rule is applied to any year you enter, including early ones. For dates before the calendar was adopted, the result is a calculation under that rule, not a historical record.

What is the weeks-in-year figure?+

It is the number of days in the year (365 or 366) divided by 7. It is a plain division, not an ISO week count, which can be 52 or 53.