VClock

Leap Years and Leap Seconds: Why Calendars and Clocks Need Corrections

The Earth does not orbit the Sun in a whole number of days, and it does not spin at a perfectly steady rate. Leap years fix the first problem and leap seconds the second. Here is how both work.

By the VClock editorial team · Published 21 November 2026 · 5 min read · How we write

Calendars and clocks are attempts to fit human-friendly units onto natural cycles that do not divide neatly. A year (one trip round the Sun) is not a whole number of days, and a day (one turn of the Earth) is not precisely constant. Two kinds of correction keep our timekeeping in step: leap days, added to the calendar, and leap seconds, added to clocks.

Why leap years exist

The calendar year is meant to follow the seasons, which repeat every tropical year: about 365.2422 days. A calendar of exactly 365 days would fall behind by almost a quarter of a day each year. After a century the seasons would arrive about 24 days "late" by the calendar, and after a few centuries midsummer would fall in what the calendar calls spring.

The Julian calendar: every four years

Julius Caesar introduced a reformed calendar in 45 BC, designed with the help of the astronomer Sosigenes of Alexandria. It added a leap day every fourth year, giving an average year of 365.25 days. That is close, but about 11 minutes too long each year. Eleven minutes does not sound like much, but it adds up to roughly one day every 128 years. By the 16th century, the spring equinox had drifted about ten days earlier in the calendar than it had been in the 4th century, which mattered to the Church because the date of Easter depends on the equinox.

The Gregorian reform of 1582

Pope Gregory XIII introduced the corrected calendar in 1582. It did two things:

  1. Removed ten days at once. In the countries that adopted it immediately, Thursday 4 October 1582 was followed by Friday 15 October 1582.
  2. Refined the leap year rule so that the drift would not return.

The Gregorian rule, still used today, is:

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

YearDivisible by 4?By 100?By 400?Leap year?
2024YesNoNoYes
2026NoNoNoNo
2028YesNoNoYes
1900YesYesNoNo
2000YesYesYesYes
2100YesYesNoNo

This gives 97 leap years every 400 years and an average year of 365.2425 days, only about 26 seconds longer than the tropical year. The remaining error amounts to about one day in roughly 3,000 years.

Adoption was slow outside Catholic countries. Great Britain and its colonies switched in 1752, by which time they had to skip eleven days: Wednesday 2 September 1752 was followed by Thursday 14 September. Russia changed only in 1918, after the revolution, and Greece in 1923. This is why historical dates are sometimes given in both "Old Style" and "New Style".

Leap days in everyday life

  • A leap year has 366 days and 29 February. Day 366 is 31 December; see ordinal dates.
  • People born on 29 February usually celebrate on 28 February or 1 March in common years. Different countries' laws take different positions on which date counts for legal age.
  • Software bugs around 29 February still occur, typically in code that adds "one year" to a date or assumes every year has 365 days. Testing with leap-day dates is a good habit for developers.

Leap seconds: correcting for the Earth's rotation

Since 1967 the second has been defined by atomic clocks (see How atomic clocks work). An atomic second never varies, but the length of a day, measured by the Earth's rotation, does. Tidal friction from the Moon has been very slowly lengthening the day over millions of years, and on shorter timescales the rotation speeds up and slows down by milliseconds because of movements in the Earth's core, oceans and atmosphere.

Coordinated Universal Time (UTC) follows atomic time but is kept within 0.9 seconds of UT1, a time scale based on the Earth's actual rotation. When the difference grows, the International Earth Rotation and Reference Systems Service (IERS) announces a leap second, normally six months ahead, to be added at the end of 30 June or 31 December. On those dates, clocks that follow UTC exactly show:

23:59:58
23:59:59
23:59:60   ← the leap second
00:00:00

Since the system started in 1972, 27 leap seconds have been added. All have been positive (adding a second); a negative leap second, which would skip 23:59:59, is allowed by the rules but has never been used. The last leap second was added at the end of 31 December 2016. In recent years the Earth's rotation has been slightly faster than it was in previous decades, so no further leap seconds have been needed, and scientists have discussed the possibility that a negative one might eventually be required.

Why leap seconds cause trouble

Most computer software assumes that every minute has exactly 60 seconds. A 61-second minute, announced only months in advance and occurring at irregular intervals, has exposed bugs repeatedly:

  • During the leap second of 30 June 2012, a bug in the Linux kernel caused high CPU load on many servers, and several well-known websites and an airline reservation system reported problems.
  • On 1 January 2017, a leap second caused a bug in Cloudflare's DNS software, which had assumed time could never go backwards, and disrupted part of its service for some customers. The company published a detailed post-mortem.

To avoid such issues, some large technology companies "smear" the leap second, slowing their clocks by a tiny fraction over many hours so that the extra second is absorbed without ever showing 23:59:60. That works within one company's systems but means different organisations' clocks briefly disagree. Unix time, used inside most computers, does not count leap seconds at all, which creates its own complications.

The decision to phase out leap seconds

In November 2022 the General Conference on Weights and Measures (CGPM), the international body responsible for the SI units, adopted a resolution to increase the maximum allowed difference between UTC and UT1, by or before 2035. The practical effect is that leap seconds will stop being added, and UTC will be allowed to drift slowly from solar time. The new tolerance and how any eventual correction will be handled are still to be agreed, with proposals ranging from a much larger, rare adjustment to accepting the drift for a century or more. For daily life the change is invisible: the difference between atomic and solar time is expected to build up to something in the order of a minute over the next century, far less than the difference already built into time zones and daylight saving.

Summary

  • Leap years keep the calendar aligned with the seasons: every four years, except century years not divisible by 400.
  • Leap seconds have kept atomic clock time aligned with the Earth's rotation since 1972; 27 have been added, the last in 2016.
  • Leap seconds are being phased out by 2035 because of the problems they cause for modern technology.

Related on VClock

Page last reviewed 21 November 2026 by the VClock team. Spotted an error? Tell us.