Leap Year Calculator

Instantly determine whether any year is a leap year under the Gregorian calendar. Explore the February calendar, view key year statistics, and dive into the rich history of calendar reform — from Julius Caesar to Pope Gregory XIII.

? 2024 (Leap)
? 2000 (Century Leap)
? 1900 (Century Non‑Leap)
? 2023 (Non‑Leap)
? 2028 (Next Leap)
⏳ 1582 (Gregorian Reform)
Enter any year between 1 and 9999. The calculator follows the Gregorian calendar rules (introduced 1582).
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

What Is a Leap Year?

A leap year is a calendar year that contains an extra day — February 29 — to keep the calendar year synchronized with the astronomical year or seasonal year. Because Earth's orbit around the Sun takes approximately 365.2422 days (more precisely, 365 days, 5 hours, 48 minutes, and 45 seconds), a calendar of 365 days would drift by about one day every four years. The intercalary day added every four years (with exceptions) compensates for this drift.

The Gregorian rule for leap years:

A year is a leap year if it is divisible by 4, except for years divisible by 100, unless they are also divisible by 400.

leap = (year % 4 == 0) && (year % 100 != 0 || year % 400 == 0)

Why Do We Need Leap Years?

The Earth's orbital period — the tropical year — is the time it takes for the Sun to return to the same position in the sky as seen from Earth, which defines the seasons. This period is about 365.24219 days. If we used a 365‑day calendar without adjustment, the seasons would drift by almost one day every four years. After 100 years, the calendar would be off by about 24 days; after 700 years, summer would begin in December in the Northern Hemisphere. The leap year system prevents this drift, keeping the vernal equinox around March 20 each year, which is crucial for agriculture, religious observances (like Easter), and seasonal planning.

The Rules: Gregorian vs. Julian

The Julian calendar, introduced by Julius Caesar in 45 BCE, used a simple rule: every year divisible by 4 is a leap year. This added an average of 365.25 days per year, which is about 0.0078 days (11 minutes) longer than the actual tropical year. Over centuries, this small error accumulated. By the 16th century, the calendar had drifted by about 10 days relative to the equinoxes.

To correct this, Pope Gregory XIII introduced the Gregorian calendar in 1582. The reform had two parts: (1) drop 10 days from October 1582 (October 4 was followed by October 15), and (2) modify the leap year rule to exclude centurial years not divisible by 400. This reduced the average year length to 365.2425 days — very close to the tropical year of 365.24219 days, requiring only a one‑day correction every 3,300 years or so.

The Gregorian calendar is now the international standard for civil use. Most countries adopted it gradually: Catholic countries in 1582, Protestant countries in the 18th century, and some Eastern Orthodox countries as late as the 20th century (e.g., Russia in 1918, Greece in 1923).

How the Calculator Works

  1. Enter a year (1–9999) or click a preset example.
  2. The tool applies the Gregorian leap‑year rule: divisible by 4, but not by 100, unless by 400.
  3. It then computes the number of days in February (28 or 29), the total days in the year (365 or 366), and the weekdays of January 1 and December 31 using Zeller's congruence.
  4. The previous and next leap years are found by scanning backward and forward from the given year.
  5. Finally, an interactive February calendar is drawn on the canvas, highlighting the 29th if it exists.

Leap Year Examples & Edge Cases

Year Leap? Reason February Total Days
2024 ✅ Yes Divisible by 4, not by 100 29 366
2000 ✅ Yes Divisible by 400 (century exception) 29 366
1900 ❌ No Divisible by 100 but not by 400 28 365
2023 ❌ No Not divisible by 4 28 365
1600 ✅ Yes Divisible by 400 29 366
2100 ❌ No Divisible by 100 but not by 400 28 365
Case Study: The Gregorian Reform of 1582

When Pope Gregory XIII introduced the new calendar, the immediate problem was the 10‑day drift accumulated since the Council of Nicaea (325 CE), which had established the date of Easter. To restore the vernal equinox to March 21, the reform decreed that October 4, 1582, would be followed by October 15, 1582 — effectively skipping 10 days. This caused public confusion and resistance in some regions, but the new calendar was gradually adopted. Our calculator reflects the Gregorian rules, which are the global standard today. Interestingly, the United Kingdom and its colonies (including the future United States) did not adopt the Gregorian calendar until 1752, by which time the adjustment was 11 days.

Leap Years Across Cultures

While the Gregorian calendar is the global civil standard, many cultures have their own calendar systems with intercalary mechanisms:

  • Hebrew calendar: Adds a 13th month (Adar II) seven times in a 19‑year cycle to keep Passover in spring.
  • Islamic calendar: A purely lunar calendar with 354 or 355 days; intercalation is not used, so months rotate through the seasons.
  • Chinese calendar: Adds an extra month approximately every three years to stay aligned with the solar year.
  • Ethiopian calendar: Has 13 months, with a leap year every four years, similar to the Julian system.

These diverse systems reflect humanity's universal need to track time and seasons, each with its own cultural and religious significance.

Frequently Asked Questions

Under the Gregorian rule, years divisible by 100 are not leap years unless they are also divisible by 400. 1900 is divisible by 100 but not by 400, so it is not a leap year. 2000 is divisible by both 100 and 400, so it is a leap year. This exception ensures the calendar stays accurate over long periods.

People born on February 29 are often called "leaplings" or "leap day babies." In non‑leap years, they typically celebrate their birthday on February 28 or March 1. Legally, most jurisdictions consider March 1 as the official birthday for such individuals for age calculation purposes.

Yes, the Gregorian leap year rule is the international standard for civil calendars. However, some countries use other calendar systems for religious or cultural purposes (e.g., the Islamic Hijri calendar, the Hebrew calendar), which have different intercalation methods.

The Gregorian calendar has an average year length of 365.2425 days, which is only about 0.0003 days (26 seconds) longer than the tropical year of 365.24219 days. This means it will take about 3,300 years for the calendar to drift by one day — a remarkable precision achieved in the 16th century.

The Gregorian calendar has no year 0 — it goes from 1 BCE to 1 CE. Our calculator accepts years from 1 to 9999. For astronomical purposes, a year 0 is sometimes used, but for civil and historical calculations, we follow the standard Anno Domini (AD) system.

For authoritative information, consult Time and Date, Encyclopædia Britannica, or the classic work "Calendrical Calculations" by Nachum Dershowitz and Edward M. Reingold. These sources provide deep insights into the evolution of timekeeping.

Rooted in astronomical and historical scholarship – This tool implements the Gregorian calendar rules as defined by the papal bull Inter gravissimas (1582). The computational methods are verified against multiple authoritative references, including the U.S. Naval Observatory's astronomical almanac and the ISO 8601 standard. The historical narrative draws from primary sources and peer‑reviewed research in the history of science. Reviewed by the GetZenQuery tech team, last updated July 2026.

References: Britannica: Leap Year; Time and Date: Leap Year; Wikipedia: Leap Year; Calendrical Calculations, Dershowitz & Reingold (2008).