Interesting Facts · Explainer
Why do we have leap years? The maths behind 29 February
A year isn't exactly 365 days, so calendars need a fix. Why we add 29 February, why 1900 wasn't a leap year but 2000 was, and how it keeps the seasons in place.

At a glance
- Length of a year
- About 365.2422 days
- Rule
- Every 4 years, except century years not divisible by 400
- Leap years per 400 years
- 97
- Next skipped leap year
- 2100
Short answerWe have leap years because it takes Earth about 365.2422 days to go round the Sun, not exactly 365. Adding a day every four years makes up most of the gap. Because that slightly overcorrects, century years are only leap years if they divide by 400, so 2000 was a leap year but 1900 and 2100 are not.
Key takeaways
- Earth takes about 365.2422 days to complete its cycle of seasons, so a 365-day calendar slips by about a quarter of a day each year.
- Julius Caesar's calendar added a leap day every four years, which slightly overcorrected.
- In 1582 the Gregorian calendar fixed the error: century years are leap years only if divisible by 400.
- That's why 2000 was a leap year, while 1900 was not and 2100 won't be.
- The rule keeps the calendar within about a day of the seasons for thousands of years.
Every four years or so, February gains an extra day. Most of us accept 29 February without a second thought, but behind it sits a problem that astronomers and rulers struggled with for thousands of years: the Earth’s year doesn’t divide neatly into days.
The problem: a year isn’t 365 days
A calendar year is meant to match the cycle of the seasons, from one spring equinox to the next. That cycle, called the tropical year, lasts about 365.2422 days: 365 days, 5 hours, 48 minutes and around 45 seconds.
If every calendar year had exactly 365 days, the calendar would fall behind the seasons by almost a quarter of a day each year. That doesn’t sound like much, but it adds up:
- after 4 years: about 1 day
- after 100 years: about 24 days
- after 700 years: about 6 months
Without a fix, midsummer would eventually fall in December in the Northern Hemisphere. For farmers, religious festivals and anyone planning around the seasons, that was a real problem. If you want to know what actually causes those seasons, see our explainer on why we have seasons.
Caesar’s fix: a day every four years
The Roman calendar was in a mess by the 1st century BC, drifting months out of line with the seasons. In 46 BC, Julius Caesar introduced a new calendar, advised by the astronomer Sosigenes of Alexandria. This Julian calendar had 365 days, with an extra day added every fourth year.
That makes an average year of 365.25 days. It was a huge improvement, but it was slightly too long: by about 11 minutes a year.
The slow drift
Eleven minutes a year adds up to roughly one day every 128 years. By the 16th century, the Julian calendar had drifted about 10 days out of line with the seasons. The spring equinox, which the Church used to calculate the date of Easter, was arriving around 11 March instead of 21 March.
Pope Gregory’s fix: the century rule
In 1582, Pope Gregory XIII introduced a reformed calendar, now called the Gregorian calendar. It made two changes.
1. It dropped 10 days
To bring the equinox back to 21 March, 10 days were simply removed. In the countries that adopted the new calendar straight away, Thursday 4 October 1582 was followed by Friday 15 October.
2. It changed the leap year rule
To stop the drift happening again, the rule became:
- A year divisible by 4 is a leap year…
- …except a year divisible by 100, which is not…
- …unless it’s also divisible by 400, in which case it is.
| Year | Divisible by 4? | By 100? | By 400? | Leap year? |
|---|---|---|---|---|
| 2024 | Yes | No | No | Yes |
| 2026 | No | No | No | No |
| 1900 | Yes | Yes | No | No |
| 2000 | Yes | Yes | Yes | Yes |
| 2100 | Yes | Yes | No | No |
This removes three leap days every 400 years, leaving 97 leap years in every 400. The average calendar year becomes 365.2425 days, only about 26 seconds longer than the tropical year. At that rate, the calendar drifts by a single day only after roughly 3,000 years.
A slow adoption
Not everyone switched in 1582. Catholic countries such as Spain, Portugal and the Italian states changed quickly, but many Protestant and Orthodox countries waited.
- Britain and its American colonies switched in 1752, by which time they needed to drop 11 days: 2 September was followed by 14 September.
- Russia changed only in 1918, after the revolution. That’s why the “October Revolution” of 1917 took place in November by the Gregorian calendar.
- Some Orthodox churches still use the Julian calendar to set religious festivals, which is why their Christmas falls on 7 January.
Why February?
In the early Roman calendar, February was the last month of the year, and it was the month where adjustments were made. When the Romans added an extra day, it went into February, and the tradition stuck.
Leap year traditions
The extra day has picked up some traditions of its own:
- In Ireland and Britain, an old custom says that women may propose marriage on 29 February.
- People born on 29 February, sometimes called leaplings, have their actual birth date only in leap years. Most celebrate on 28 February or 1 March in other years.
Leap days vs leap seconds
Leap days fix the calendar against Earth’s orbit around the Sun. Leap seconds solve a different problem: keeping atomic clocks in line with Earth’s rotation, which varies slightly. Since 1972, more than 20 leap seconds have been added. International timekeepers have agreed to stop adding them by 2035, but leap days aren’t going anywhere.
How other calendars cope
Not every calendar uses a leap day. The Islamic calendar is purely lunar and has about 354 days in a year, so its months move through the seasons, and its leap adjustment is a single extra day added to the last month in some years. Lunisolar calendars, such as the traditional Chinese and Hebrew calendars, keep months tied to the Moon and add a whole leap month in some years to keep in step with the seasons. The Persian solar calendar, used in Iran and Afghanistan, uses its own leap-year rule, and is regarded as very accurate.
When software forgets the leap day
Leap days can trip up computer systems. A program that assumes every year has 365 days, or that wrongly applies the century rule, can fail on 29 February. A well-known example was a leap-day certificate error that disrupted Microsoft’s Azure cloud service in February 2012. It is a good reminder that a calendar rule that looks simple has to be followed exactly, including the exceptions for century years.
The short version
A year is about a quarter of a day longer than 365 days. Adding a day every four years fixes most of that, and skipping three leap days every 400 years fixes the rest. It’s a clever, simple rule, and it’s why the next time February goes without its 29th day in a year divisible by four will be 2100.
See also: Why there are 24 hours in a day.
Rules and requirements: how to tell a leap year
The Gregorian calendar uses three simple rules.
- Rule 1: A year divisible by 4 is a leap year, such as 2024 and 2028.
- Rule 2: But a year divisible by 100 is not, such as 1900 and 2100.
- Rule 3: Unless it is also divisible by 400, such as 2000 and 2400, which are leap years.
- The result: 97 leap years every 400 years, keeping the calendar within about a day of the seasons for over 3,000 years.
Birthdays on 29 February
People born on 29 February, sometimes called leaplings or leapers, have a real calendar birthday only once every four years. In common years, most celebrate on 28 February or 1 March. For legal purposes, different countries have different rules on which date counts when someone turns 18 or reaches a legal age. The chance of being born on 29 February is roughly 1 in 1,461. Some towns have celebrated leap day with festivals for leaplings, and there are clubs that bring them together around the world.
The next leap years
Under the Gregorian rules, the leap years after 2024 are 2028, 2032, 2036 and 2040. The year 2100 will not be a leap year, because it is divisible by 100 but not by 400, and the same applies to 2200 and 2300. The year 2400 will be a leap year. Most people alive today will not see a skipped leap year, but software developers still need to handle the rule correctly, because systems that plan far into the future, such as mortgages and pensions, already include dates beyond 2100.
Final thoughts
Leap years exist because Earth takes about 365.2422 days to orbit the Sun, not a neat 365. The extra day every four years, with the century exceptions, keeps our calendar in step with the seasons so that summer and winter stay where we expect them. For more, browse the Interesting Facts guides on All Informations.
Sources and further reading
These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.
Frequently asked questions
How do I know if a year is a leap year?
If it divides by 4, it's a leap year, unless it's a century year such as 1900 or 2100. Century years are only leap years if they also divide by 400, like 2000 and 2400.
How often do people born on 29 February have a birthday?
Their actual birth date comes round in leap years, usually every four years. Most celebrate on 28 February or 1 March in other years.
Is a leap second the same as a leap year?
No. Leap seconds were occasionally added to clocks to keep atomic time in line with Earth's slightly irregular rotation. Leap days keep the calendar in line with Earth's orbit.






