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.
Reviewed for accuracy by Abdullah, Technical Content Specialist
Leap Year Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Leap if: (year % 4 == 0) AND (year % 100 != 0 OR year % 400 == 0)
Worked example — 1900 = NOT a leap year (365 days) | 2000 = Leap year (366 days)
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: - 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
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 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
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.
What happens to people born on February 29?
People born on February 29, often called 'leaplings' or 'leapers,' face the unique situation of their actual birthday only occurring every four years. In non-leap years, most leaplings celebrate their birthday on either February 28 or March 1, depending on personal preference and cultural tradition. Legally, the treatment varies by jurisdiction. In most countries, a leapling is considered to have their legal birthday on March 1 in non-leap years for purposes such as reaching legal age, driver's license eligibility, and voting rights. Approximately 5 million people worldwide share a February 29 birthday. The odds of being born on leap day are approximately 1 in 1,461 (considering the four-year cycle). Some famous leaplings include motivational speaker Tony Robbins and rapper Ja Rule.
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.
Will the Gregorian calendar need further correction in the future?
The Gregorian calendar is remarkably accurate but not perfect. Its average year length of 365.2425 days exceeds the tropical year (365.24219 days) by about 0.0003 days, accumulating to one full day of error every approximately 3,236 years. Several proposals exist for additional corrections: the most common suggestion is to make years divisible by 4000 non-leap years, which would reduce the average to 365.24225 days. However, Earth's rotation is gradually slowing due to tidal friction, and the length of the tropical year itself changes slowly over millennia. These astronomical variables make it impractical to design corrections for the very distant future. For now, leap seconds (added irregularly to UTC) handle the most immediate timekeeping corrections related to Earth's variable rotation speed.
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?
Leap years add February 29, extending the year to 366 days and affecting any date range spanning that date. January 1 to December 31 is 365 days in a regular year but 366 in a leap year. Applications must define whether "one year from February 28" maps to February 28 or 29 in a leap year. Financial instruments use specific day-count conventions — Actual/360, Actual/365, or Actual/Actual — to handle these edge cases consistently.
References
Background & Theory
History
Reviewed for accuracy by Abdullah, Technical Content Specialist · Editorial policy
Related Calculators
🧮Chinese New Year Date Calculator
Find the date of Chinese New Year for any year based on the lunar calendar.
🧮Days in Month Calculator
Find how many days are in any month of any year including February in leap years.
🧮Days Until New Year Calculator
Count down the days and hours remaining until January 1st of the next year.
🧮Year Fraction Calculator
Calculate the decimal fraction of a year between two dates for financial calculations.
🧮Date to Day Number Calculator
Convert any date to its ordinal day number within the year (1-366).
🧮Easter Date Calculator
Find the date of Easter Sunday for any year using the computus algorithm.
🧮Thanksgiving Date Calculator
Find the date of Thanksgiving for any year in US and Canadian calendars.
🧮Ramadan Date Calculator
Find the estimated start date of Ramadan for any year based on the Islamic lunar calendar.