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.
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 fixes the start of each year by astronomical observation of the vernal equinox rather than by an arithmetic rule, so it tracks the solar year more closely than the Gregorian scheme does.
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.
Why does a 400-year cycle contain exactly 97 leap days?
Dividing 400 by four gives 100 candidate leap years. The century rule removes the four years divisible by 100, leaving 96, and the 400 rule restores one of them for a total of 97. Those 97 extra days on top of 400 ordinary years make 146,097 days, so the mean calendar year is 365.2425 days. That sits about 0.0003 days above the mean tropical year, an error of roughly one day in 3,200 years.
Why do some centuries hold 24 leap years and others 25?
A block of 100 years contains 25 multiples of four, but the century year itself is dropped unless it is also divisible by 400. Counting 1901 to 2000 gives 25 leap years because 2000 survives the exception, while 2001 to 2100 gives only 24 because 2100 does not. The same applies to 2200 and 2300, so three centuries in every four come up one leap day short.
Why is the extra day added to February rather than another month?
The habit is Roman. February closed the old Roman year and was already the shortest month, so intercalation was inserted there. Under the Julian reform the extra day was not appended to the end but created by doubling 24 February, the sixth day before the kalends of March, which is why a leap year is still called bissextile, from bis sextus, the twice-sixth day. Numbering the day as 29 February came later.
How does a leap year shift which weekday a date falls on?
A common year of 365 days is 52 weeks plus one day, so every date moves forward one weekday. A leap year of 366 days moves it two, which is why the January 1 weekday shown here advances irregularly. Across a stretch containing no skipped century year the pattern repeats every 28 years, and because 146,097 days divide exactly by seven, the full Gregorian calendar repeats every 400 years.
Does the leap rule apply to years before 1582?
Not historically. The Gregorian rule was promulgated in 1582, so applying it to earlier years yields a proleptic date that will not match contemporary records, which followed the Julian rule of a leap year every fourth year with no century exception. Adoption was also staggered: Catholic states switched in 1582, Britain and its colonies in 1752, Russia in 1918 and Greece in 1923, so one day carried two different dates for centuries.
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.