Leap Year Finder
Free Leap year tool for time & date. Enter your details to get instant, tailored results and guidance. Free to use with no signup required.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Leap Year Finder
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Leap Year if: (Year % 4 = 0 AND Year % 100 != 0) OR (Year % 400 = 0)
Worked example โ 2100 is NOT a leap year | 365 days | February has 28 days
Formula
Leap Year if: (Year % 4 = 0 AND Year % 100 != 0) OR (Year % 400 = 0)
A year is a leap year if it is divisible by 4 but not by 100, unless it is also divisible by 400. This three-part rule produces 97 leap years per 400-year cycle, giving an average year length of 365.2425 days, very close to the actual tropical year of 365.24219 days.
Worked Examples
Example 1: Checking if 2100 is a Leap Year
Problem:Determine whether the year 2100 is a leap year using the Gregorian calendar rules.
Solution:Step 1: Is 2100 divisible by 4? 2100 / 4 = 525. Yes. Step 2: Is 2100 divisible by 100? 2100 / 100 = 21. Yes. Step 3: Is 2100 divisible by 400? 2100 / 400 = 5.25. No. Since 2100 is divisible by 100 but NOT by 400, the century exception applies. February 2100 will have 28 days, and the year will have 365 days.
Result:2100 is NOT a leap year | 365 days | February has 28 days
Example 2: Finding Leap Years Between 2020 and 2050
Problem:List all leap years from 2020 to 2050 and count them.
Solution:Check each year divisible by 4 in the range: 2020: 2020/4 = 505, not div by 100 -> Leap Year 2024: 2024/4 = 506, not div by 100 -> Leap Year 2028: 2028/4 = 507, not div by 100 -> Leap Year 2032, 2036, 2040, 2044, 2048: All divisible by 4, not by 100 -> Leap Years Total: 8 leap years in this 31-year range
Result:Leap years: 2020, 2024, 2028, 2032, 2036, 2040, 2044, 2048 | Total: 8
Frequently Asked Questions
What is a leap year and why do we need them?
A leap year is a year containing 366 days instead of the usual 365, with the extra day added as February 29. Leap years exist because the Earth orbital period around the Sun is not exactly 365 days but approximately 365.2422 days. Without leap years, our calendar would drift away from the astronomical seasons by about one day every four years. After a century without correction, the calendar would be off by about 24 days, meaning summer would gradually shift into what the calendar calls autumn. The leap year system keeps our calendar aligned with the solstices and equinoxes, ensuring that seasons remain predictable for agriculture, navigation, and daily life. Pope Gregory XIII introduced the current leap year rules in 1582.
What are the exact rules for determining if a year is a leap year?
The Gregorian calendar uses three rules applied in order to determine leap years. First, if a year is divisible by 4, it is a leap year candidate. Second, if that year is also divisible by 100, it is NOT a leap year (this is the century exception). Third, if the year is divisible by 400, it IS a leap year despite the century exception. Applying these rules: 2024 is divisible by 4 and not by 100, so it is a leap year. 1900 is divisible by 4 and by 100 but not by 400, so it was NOT a leap year. 2000 is divisible by 4, by 100, and by 400, so it WAS a leap year. The next century year that will be a leap year is 2400. These three rules together produce an average year length of 365.2425 days.
Why is 1900 not a leap year but 2000 is?
The year 1900 is not a leap year because of the century exception rule: years divisible by 100 are not leap years unless they are also divisible by 400. Since 1900 is divisible by 100 (1900/100 = 19) but not by 400 (1900/400 = 4.75), it fails the final test and is therefore a common year with 365 days. The year 2000, however, passes all three tests: divisible by 4 (2000/4 = 500), divisible by 100 (2000/100 = 20), and divisible by 400 (2000/400 = 5). This 400-year exception was introduced by Pope Gregory XIII because without it, the calendar would still drift by about one day every 128 years, accumulating significant error over centuries.
How many leap years occur in a century and in a 400-year cycle?
In a standard 400-year cycle of the Gregorian calendar, there are exactly 97 leap years. This breaks down as follows: there are 100 years divisible by 4 in any 400-year span (400/4 = 100). From these, subtract the 4 century years divisible by 100 (like 1700, 1800, 1900, 2000), leaving 96. Then add back the 1 year divisible by 400 (like 2000), giving 97 total leap years. In a single century, there are typically 24 or 25 leap years. Centuries starting with a non-leap century year (like 1900-1999) have 24 leap years, while centuries starting with a leap century year (like 2000-2099) have 25 leap years. This precise count produces an average year length of 365.2425 days.
What happens to people born on February 29?
People born on February 29, known as leaplings or leapers, face the unique situation of having their actual birth date occur only once every four years. In non-leap years, leaplings typically celebrate their birthday on either February 28 or March 1, depending on personal or cultural preference. Legally, most jurisdictions consider March 1 as the default birthday in non-leap years for purposes of age determination, licensing, and other legal thresholds. Some countries have specific legislation addressing this: in Hong Kong, the Legal Interpretation and General Clauses Ordinance specifies March 1 as the birthday. The probability of being born on February 29 is approximately 1 in 1,461, and there are an estimated 5 million leaplings worldwide. The record for most leap day birthdays in one family is three.
What calendar systems existed before the Gregorian leap year system?
Before the Gregorian calendar (adopted in 1582), the Julian calendar (introduced by Julius Caesar in 46 BCE) used a simpler leap year rule: every year divisible by 4 was a leap year without any century exceptions. This produced an average year of 365.25 days, which was too long by about 11 minutes and 14 seconds per year. Over centuries, this accumulated into a significant drift. By 1582, the calendar was about 10 days ahead of the astronomical seasons. The Egyptian calendar before that used a fixed 365-day year with no leap years at all, drifting by one full day every four years. The Persian calendar, still used in Iran and Afghanistan, uses a more complex 2820-year cycle that is slightly more accurate than the Gregorian system.
How accurate is the Gregorian leap year system compared to the actual solar year?
The Gregorian calendar produces an average year length of 365.2425 days, while the actual mean tropical year is approximately 365.24219 days. The difference is about 0.00031 days (approximately 27 seconds) per year, which means the Gregorian calendar gains one extra day approximately every 3,236 years. This is remarkably accurate for a system designed in 1582. By comparison, the Julian calendar was off by one day every 128 years, which is about 25 times less accurate. The Persian Solar Hijri calendar is slightly more accurate, with an error of about one day every 110,000 years. However, the Gregorian system remains the international standard due to its widespread adoption and the fact that its error is negligible for all practical purposes within recorded human history.
How do leap years affect computer systems and software?
Leap years have caused numerous notable software bugs throughout computing history. The most famous is the assumption that all years divisible by 4 are leap years (forgetting the century exceptions), which caused issues in 1900 and will again in 2100. Microsoft Excel famously treats 1900 as a leap year (which it was not) for backward compatibility with Lotus 1-2-3. The Zune media player had a New Year crash in 2008 due to a leap year calculation error. Programming languages handle leap years differently: some use built-in calendar libraries, while others require manual implementation. Date arithmetic libraries must account for February having 28 or 29 days, which affects calculations for age, duration, and scheduling. Testing software with dates like February 29, March 1, and year boundaries is a critical quality assurance practice.
What traditions and superstitions are associated with leap years?
Several fascinating traditions and superstitions surround leap years across cultures. In Ireland and Britain, a tradition dating to the 5th century (attributed to St. Brigid and St. Patrick) allowed women to propose marriage to men on February 29. If the man refused, he was expected to pay a penalty such as buying the woman a silk gown or gloves. In Greece, getting married in a leap year is considered unlucky, and approximately one in five engaged Greek couples will wait to avoid a leap year wedding. In Scotland, leap years were once considered unlucky for livestock. In Taiwan, married daughters are expected to return to their parents during leap month to bring them longevity noodles. Some cultures consider leap year babies to have special talents or be particularly lucky.
Will the leap year rules ever need to be changed?
The current Gregorian leap year rules are accurate enough that no change is likely to be needed for thousands of years. The accumulated error of approximately one day every 3,236 years means that by the year 5000 CE, the calendar will only be about one day off from the astronomical seasons. Some calendar reformers have proposed adding an additional rule where years divisible by 4000 would not be leap years, which would reduce the average year to 365.24225 days and extend accuracy to tens of thousands of years. However, there is no consensus or institutional momentum for such a change. Additionally, the Earth rotation is gradually slowing due to tidal interactions with the Moon, which will eventually change the length of the day itself, making any long-term calendar prediction inherently uncertain.
References
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎDay of the Year Finder
Calculate day of the year finder with inputs, formulas, and instant results.
๐งฎLeap Year Birthday Calculator
Calculate how many actual birthdays a leap year baby has had on February 29th.
๐งฎBc to Ad Year Converter
Calculate bc to ad year converter with inputs, formulas, and instant results.
๐งฎMoon Phase Finder
Calculate moon phase finder with inputs, formulas, and instant results.
๐งฎPalindrome Date Finder
Calculate palindrome date finder with inputs, formulas, and instant results.
๐งฎCoffee Addiction Cost Calculator
Calculate how much you spend on coffee per year at cafes versus home brewing.
๐งฎTime Spent on Phone Calculator
Calculate total hours spent on your phone per year from daily screen time.
๐งฎLife Percentage Calculator
Calculate what percentage of your expected life you have lived and how much remains.