Skip to main content

Leap Year Calculator

Check if any year is a leap year and list all leap years in a given range. Enter values for instant results with step-by-step formulas.

Skip to calculator
Date & Time

Leap Year Calculator

Check if any year is a leap year and list all leap years in a range. Understand the Gregorian calendar rules with detailed explanations.

Last updated: December 2025

Calculator

Adjust values & calculate
Year 2024
LEAP YEAR
Divisible by 4 but not 100 โ†’ Leap Year
Days in Year
366
February Has
29 days
Jan 1 Falls On
Monday
Previous Leap Year
2020
Next Leap Year
2028

Divisibility Check

Divisible by 4?Yes
Divisible by 100?No
Divisible by 400?No
Leap years in century (2001โ€“2100)24

Leap Years in 2000โ€“2100 (25 total)

2000200420082012201620202024202820322036204020442048205220562060206420682072207620802084208820922096
Your Result
2024 is a LEAP YEAR (366 days) | Divisible by 4 but not 100 โ†’ Leap Year
Share Your Result
Understand the Math

Formula

Leap if: (year % 4 == 0) AND (year % 100 != 0 OR year % 400 == 0)

A year is a leap year if it is divisible by 4, except for century years which must also be divisible by 400. This gives an average calendar year of 365.2425 days, closely matching Earth's orbital period of 365.2422 days.

Last reviewed: December 2025

Worked Examples

Example 1: Checking Year 1900 vs 2000

Determine whether 1900 and 2000 are leap years and explain which rules apply.
Solution:
Year 1900: - Divisible by 4? Yes (1900/4 = 475) - Divisible by 100? Yes (1900/100 = 19) โ†’ Exception applies - Divisible by 400? No (1900/400 = 4.75) โ†’ NOT a leap year Year 2000: - Divisible by 4? Yes - Divisible by 100? Yes โ†’ Exception applies - Divisible by 400? Yes (2000/400 = 5) โ†’ IS a leap year
Result: 1900 = NOT a leap year (365 days) | 2000 = Leap year (366 days)

Example 2: Leap Years in the 21st Century

How many leap years are there between 2001 and 2100, and is 2100 a leap year?
Solution:
Leap years from 2001-2100: every 4th year starting from 2004 2004, 2008, 2012, ..., 2096 = 24 leap years 2100: Divisible by 4 and 100, but NOT by 400 โ†’ NOT a leap year Total: 24 leap years in the 21st century Compare: Most centuries have 24 or 25 leap years
Result: 24 leap years in 2001-2100 | 2100 is NOT a leap year
Expert Insights

Background & Theory

The Leap Year Calculator applies the following established principles and formulas. Date and time calculations underpin a vast range of applications from financial settlement to scheduling and age verification. The complexity arises because civil timekeeping uses irregular units: months have 28, 29, 30, or 31 days; years have 365 or 366 days; hours, minutes, and seconds use base-60 arithmetic; and time zones introduce offsets ranging from -12:00 to +14:00 relative to UTC. The Gregorian calendar's leap year rule is a compound condition: a year is a leap year if it is divisible by 4, except for century years, which must be divisible by 400. Thus 1900 was not a leap year but 2000 was. This rule keeps the calendar synchronized with the solar year to within about 26 seconds per year. For algorithmic date calculations, the Julian Day Number provides a continuous integer count of days since January 1, 4713 BCE, eliminating the irregularity of calendar months and making interval arithmetic straightforward. The Unix epoch, by contrast, counts seconds since 00:00:00 UTC on January 1, 1970, and is the basis of POSIX time used in most computing systems. ISO 8601 standardizes date and time representation as YYYY-MM-DD and combined datetime as YYYY-MM-DDTHH:MM:SSยฑHH:MM, ensuring unambiguous machine-readable interchange across locales that would otherwise differ in day/month/year ordering. Business day calculation requires excluding weekends and, optionally, a jurisdiction-specific list of public holidays. Duration calculations expressed in years, months, and days must account for the variable length of months, making them non-commutative: the interval from January 31 to February 28 is different from the interval from February 28 to March 31. Age calculation algorithms must handle the edge case of birthdays on February 29 and ensure that a person born on December 31 is not counted as one year older on January 1 of the following year until the clock passes midnight. Zeller's Congruence provides a closed-form formula to determine the day of the week for any Gregorian or Julian calendar date using only integer arithmetic.

History

The history behind the Leap Year Calculator traces back through the following developments. The need to track time and predict astronomical events gave rise to calendrical systems independently across many civilizations. The Babylonians, around 2000 BCE, developed a lunisolar calendar with 12 months of alternating 29 and 30 days, inserting an intercalary month periodically to keep pace with the solar year. They also divided the day into 24 hours and the hour into 60 minutes, a sexagesimal convention that persists in every modern clock. The Egyptian civil calendar used 12 months of exactly 30 days plus five epagomenal days, totaling 365 days. Though simple for administrative purposes, it drifted against the solar year by one day every four years. Julius Caesar, advised by the Egyptian astronomer Sosigenes, reformed the Roman calendar in 45 BCE. The Julian calendar introduced a 365-day year with a leap day every four years, a system that served Europe for over sixteen centuries. By the 16th century, the accumulated error of the Julian calendar had shifted the spring equinox ten days from its ecclesiastically mandated date, disrupting the calculation of Easter. Pope Gregory XIII commissioned the calendar reform that bears his name, and the Gregorian calendar was introduced in Catholic countries in October 1582. The transition required skipping ten days: October 4 was followed by October 15. Protestant and Orthodox countries adopted the reform slowly; Britain and its colonies switched in 1752, Russia not until 1918, and Greece in 1923. The expansion of railways in the 1840s created an urgent practical problem: each city operated on its own local solar time, making train timetables impossible to coordinate. British railways adopted Greenwich Mean Time as a standard in 1847. The International Meridian Conference of 1884 in Washington formalized the prime meridian at Greenwich and established the global framework of 24 time zones. Daylight saving time was first adopted nationally during World War I to reduce coal consumption. The development of atomic clocks after World War II led to the definition of Coordinated Universal Time (UTC) in 1960, accurate to nanoseconds. The Y2K problem of 1999-2000 demonstrated that two-digit year storage in legacy systems could cause widespread failures, prompting a global remediation effort costing an estimated 300 to 600 billion dollars.

Share this calculator

Explore More

Frequently Asked Questions

A leap year is a year with 366 days instead of the usual 365, with the extra day added as February 29th. Leap years exist because Earth's orbital period around the Sun is not exactly 365 days โ€” it is approximately 365.2422 days (365 days, 5 hours, 48 minutes, and 46 seconds). Without leap years, the calendar would drift by about one day every four years relative to the seasons. After 100 years, the calendar would be off by about 24 days, meaning seasons would gradually shift to different months. The leap year system keeps the calendar aligned with Earth's orbital position, ensuring that equinoxes and solstices occur at roughly the same calendar dates each year. The Gregorian calendar, introduced in 1582, refined the leap year rules for greater accuracy.
The Gregorian calendar uses three rules to determine leap years, applied in order: (1) If the year is divisible by 4, it is a leap year. (2) However, if the year is also divisible by 100, it is NOT a leap year. (3) But if the year is divisible by 400, it IS a leap year despite rule 2. So the year 2024 is a leap year (divisible by 4, not by 100). The year 1900 was NOT a leap year (divisible by 4 and 100, but not 400). The year 2000 WAS a leap year (divisible by 4, 100, and 400). This three-tier system produces an average year length of 365.2425 days, which is extremely close to the actual tropical year of 365.2422 days, with an error of only one day every 3,236 years.
Different calendar systems handle the fractional day problem differently. The Julian calendar (introduced by Julius Caesar in 46 BC) simply added a leap day every 4 years, giving an average year of 365.25 days โ€” slightly too long, causing a drift of about 11 minutes per year. By 1582, this had accumulated to 10 days of error, prompting Pope Gregory XIII to introduce the Gregorian calendar with the century-year correction rules. The Islamic calendar is purely lunar with 354 or 355 days per year and does not attempt to track the solar year. The Hebrew calendar uses a 19-year Metonic cycle, adding an extra month seven times in 19 years. The Persian (Solar Hijri) calendar uses astronomical observations for exceptional accuracy, with an error of less than one day per 3.8 million years.
A year is a leap year if divisible by 4, except century years must also be divisible by 400. So 2000 was a leap year but 1900 was not. Leap years add February 29 to correct for the fact that Earth's orbit takes approximately 365.2422 days, not exactly 365.
Yes, leap years add February 29, extending the year to 366 days and affecting any date range that spans that date. A period from January 1 to December 31 covers 365 days in a regular year but 366 in a leap year. Similarly, 'one year from February 28' in a non-leap year is February 28, but in a leap year the next day (February 29) also exists, so applications must define whether 'one year later' maps to February 28 or February 29. Financial instruments like bonds and loans use specific day-count conventions (Actual/360, Actual/365, Actual/Actual) to handle these edge cases consistently.
You may use the results for reference and educational purposes. For professional reports, academic papers, or critical decisions, we recommend verifying outputs against peer-reviewed sources or consulting a qualified expert in the relevant field.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

Leap if: (year % 4 == 0) AND (year % 100 != 0 OR year % 400 == 0)

A year is a leap year if it is divisible by 4, except for century years which must also be divisible by 400. This gives an average calendar year of 365.2425 days, closely matching Earth's orbital period of 365.2422 days.

Worked Examples

Example 1: Checking Year 1900 vs 2000

Problem: Determine whether 1900 and 2000 are leap years and explain which rules apply.

Solution: Year 1900:\n- Divisible by 4? Yes (1900/4 = 475)\n- Divisible by 100? Yes (1900/100 = 19) โ†’ Exception applies\n- Divisible by 400? No (1900/400 = 4.75) โ†’ NOT a leap year\n\nYear 2000:\n- Divisible by 4? Yes\n- Divisible by 100? Yes โ†’ Exception applies\n- Divisible by 400? Yes (2000/400 = 5) โ†’ IS a leap year

Result: 1900 = NOT a leap year (365 days) | 2000 = Leap year (366 days)

Example 2: Leap Years in the 21st Century

Problem: How many leap years are there between 2001 and 2100, and is 2100 a leap year?

Solution: Leap years from 2001-2100: every 4th year starting from 2004\n2004, 2008, 2012, ..., 2096 = 24 leap years\n2100: Divisible by 4 and 100, but NOT by 400 โ†’ NOT a leap year\nTotal: 24 leap years in the 21st century\nCompare: Most centuries have 24 or 25 leap years

Result: 24 leap years in 2001-2100 | 2100 is NOT a leap year

Frequently Asked Questions

What is a leap year and why do we have them?

A leap year is a year with 366 days instead of the usual 365, with the extra day added as February 29th. Leap years exist because Earth's orbital period around the Sun is not exactly 365 days โ€” it is approximately 365.2422 days (365 days, 5 hours, 48 minutes, and 46 seconds). Without leap years, the calendar would drift by about one day every four years relative to the seasons. After 100 years, the calendar would be off by about 24 days, meaning seasons would gradually shift to different months. The leap year system keeps the calendar aligned with Earth's orbital position, ensuring that equinoxes and solstices occur at roughly the same calendar dates each year. The Gregorian calendar, introduced in 1582, refined the leap year rules for greater accuracy.

What are the rules for determining a leap year?

The Gregorian calendar uses three rules to determine leap years, applied in order: (1) If the year is divisible by 4, it is a leap year. (2) However, if the year is also divisible by 100, it is NOT a leap year. (3) But if the year is divisible by 400, it IS a leap year despite rule 2. So the year 2024 is a leap year (divisible by 4, not by 100). The year 1900 was NOT a leap year (divisible by 4 and 100, but not 400). The year 2000 WAS a leap year (divisible by 4, 100, and 400). This three-tier system produces an average year length of 365.2425 days, which is extremely close to the actual tropical year of 365.2422 days, with an error of only one day every 3,236 years.

How does the leap year system compare to other calendar systems?

Different calendar systems handle the fractional day problem differently. The Julian calendar (introduced by Julius Caesar in 46 BC) simply added a leap day every 4 years, giving an average year of 365.25 days โ€” slightly too long, causing a drift of about 11 minutes per year. By 1582, this had accumulated to 10 days of error, prompting Pope Gregory XIII to introduce the Gregorian calendar with the century-year correction rules. The Islamic calendar is purely lunar with 354 or 355 days per year and does not attempt to track the solar year. The Hebrew calendar uses a 19-year Metonic cycle, adding an extra month seven times in 19 years. The Persian (Solar Hijri) calendar uses astronomical observations for exceptional accuracy, with an error of less than one day per 3.8 million years.

How do leap years work and why do we have them?

A year is a leap year if divisible by 4, except century years must also be divisible by 400. So 2000 was a leap year but 1900 was not. Leap years add February 29 to correct for the fact that Earth's orbit takes approximately 365.2422 days, not exactly 365.

Does a leap year affect date difference calculations?

Yes, leap years add February 29, extending the year to 366 days and affecting any date range that spans that date. A period from January 1 to December 31 covers 365 days in a regular year but 366 in a leap year. Similarly, 'one year from February 28' in a non-leap year is February 28, but in a leap year the next day (February 29) also exists, so applications must define whether 'one year later' maps to February 28 or February 29. Financial instruments like bonds and loans use specific day-count conventions (Actual/360, Actual/365, Actual/Actual) to handle these edge cases consistently.

How accurate are the results from Leap Year Calculator?

All calculations use established mathematical formulas and are performed with high-precision arithmetic. Results are accurate to the precision shown. For critical decisions in finance, medicine, or engineering, always verify results with a qualified professional.

References

Reviewed by Abdullah, Technical Content Specialist ยท Editorial policy