ThisCalculator

Everyday

Why a Day Can Be Shorter or Longer Than 24 Hours

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Why a Day Can Be Shorter or Longer Than 24 Hours

This page explains why a calendar day—the time between one midnight and the next—is not always exactly 24 hours long, and it provides a calculator to work out the actual length of a day for any date. You enter a date and your time zone offset, and the calculator returns the difference between the solar day and the standard 24-hour day, in minutes and seconds. The short answer: Earth’s rotation is not perfectly uniform, and its orbit around the Sun is elliptical, so the Sun’s apparent motion across the sky varies slightly from day to day, making some calendar days a few milliseconds to a few minutes longer or shorter than 24 hours.

Formula

The deviation of a solar day from 24 hours is given by the equation of time, which combines two effects: the eccentricity of Earth’s orbit and the obliquity (tilt) of its axis. A common approximation is:

ΔT = 9.87 sin(2B) − 7.53 cos(B) − 1.5 sin(B)

where B = 360° × (N − 81) / 365, and N is the day of the year (1 for January 1). The result ΔT is in minutes; positive means the solar day is longer than 24 hours, negative means shorter. This formula gives the difference between apparent solar time (as read on a sundial) and mean solar time (the 24-hour clock). It does not include the tiny variations from the Moon’s tides or Earth’s internal motions, which are on the order of milliseconds.

Worked Example

Using the default date of June 21 (summer solstice in the Northern Hemisphere) and time zone offset 0 (UTC):

  1. Day of year N = 172 (June 21 is the 172nd day, ignoring leap years).
  2. B = 360 × (172 − 81) / 365 = 360 × 91 / 365 ≈ 89.753°.
  3. sin(2B) = sin(179.506°) ≈ 0.00862, cos(B) ≈ 0.00431, sin(B) ≈ 0.99999.
  4. ΔT = 9.87 × 0.00862 − 7.53 × 0.00431 − 1.5 × 0.99999 ≈ 0.085 − 0.032 − 1.500 ≈ −1.447 minutes.

So on June 21, the solar day is about 1.45 minutes shorter than 24 hours. The calculator returns −1.45 minutes (or about −1 minute 27 seconds). That means the Sun reaches its highest point about 1.5 minutes earlier than the previous day.

Why the Length Varies: The Two Main Causes

Two independent astronomical effects combine to make the length of a solar day change throughout the year.

  • Orbital eccentricity: Earth’s orbit is an ellipse, not a circle. Earth moves faster when it is closest to the Sun (perihelion, around January 3) and slower when farthest (aphelion, around July 4). This makes the Sun appear to move eastward against the stars at a variable rate, altering the time between successive solar noons.
  • Axial tilt (obliquity): Earth’s axis is tilted about 23.4° from the plane of its orbit. Even if the orbit were circular, the projection of the Sun’s apparent motion onto the celestial equator is not uniform because of this tilt. Around the solstices, the Sun’s eastward motion is mostly in declination (north-south), so its change in right ascension (east-west) is slower, making days slightly longer.

These two effects sometimes add and sometimes cancel, producing the characteristic pattern of the equation of time: four times a year the solar day is exactly 24 hours (around April 15, June 13, September 1, and December 25), with extremes of about +30 seconds in mid-February and −30 seconds in early November.

How to Read the Result

The calculator gives the deviation in minutes. A positive value means the solar day is longer than 24 hours; a negative value means it is shorter. For example, a deviation of +0.5 minutes means the day is 24 hours and 30 seconds long. If you are tracking sunrise or sunset times, this deviation tells you how much the solar noon shifts relative to your clock. On days with a positive deviation, solar noon occurs later each day; on negative days, it occurs earlier.

Common Mistakes and Misconceptions

  • Mistaking the equation of time for the actual day length: The equation of time gives the difference between apparent and mean solar time, which is not the same as the length of a day. The day length deviation is the difference between successive solar noons, which is related to the derivative of the equation of time, not its value. However, for a single day, the approximation used here is close enough for most purposes.
  • Ignoring leap seconds: Leap seconds are added to UTC to keep it within 0.9 seconds of UT1 (solar time). They make a specific UTC day 86,401 seconds long, but they are not related to the natural variation discussed here.
  • Assuming the deviation is constant: The deviation changes daily; it is not a fixed offset. The formula must be recalculated for each date.
  • Using local time without offset: The formula works in mean solar time. If you want the deviation for your local clock, you must account for your time zone offset, but the deviation itself is independent of longitude.

Limits of the Formula

This approximation ignores several smaller effects: the Moon’s tidal braking (which slows Earth’s rotation by about 2.3 milliseconds per century), the redistribution of Earth’s mass (such as earthquakes and seasonal water movement), and the slight wobble of Earth’s axis (Chandler wobble). These contribute only milliseconds to a day’s length, so the formula is accurate to about 0.1 minute (6 seconds) for any given date. For extreme precision, one would need to consult an astronomical almanac or use a more complex model.

Practical Applications

Knowing the day length deviation is useful for:

  • Sundial calibration: adjust a sundial’s reading to match clock time.
  • Astronomy and navigation: predicting solar noon for observations or solar panel alignment.
  • Photography: planning golden hour times when the Sun’s position shifts.
  • Historical studies: understanding how ancient timekeeping devices were adjusted.

For most everyday purposes, the deviation is so small (less than a minute) that it is irrelevant. But for precise solar tracking or scientific work, it matters.

Frequently Asked Questions

Why is a day sometimes longer than 24 hours?

A day is longer than 24 hours when the combined effects of Earth’s elliptical orbit and axial tilt make the Sun’s apparent eastward motion slower than average. This happens, for example, in late December and early January, when Earth is near perihelion and moving faster in its orbit, but the tilt effect dominates, making the day about 30 seconds longer.

What is the longest and shortest day of the year?

The longest solar day (about 24 hours 30 seconds) occurs around February 10-11, and the shortest (about 23 hours 59 minutes 30 seconds) around November 2-3. These are not the same as the longest and shortest daylight hours, which occur at the solstices. The day length variation is about the time between solar noons, not the amount of daylight.

Does leap second affect the calendar day?

Yes, a leap second makes a UTC day exactly 86,401 seconds long, which is 24 hours and 1 second. Leap seconds are inserted to keep atomic time (UTC) in sync with solar time (UT1), which is gradually slowing. They are announced by the International Earth Rotation and Reference Systems Service, but they are not predictable by the equation of time.

Why does the Sun rise and set at different speeds?

The Sun’s apparent motion across the sky is not uniform because of the same two factors. Around the solstices, the Sun’s rising and setting points on the horizon change slowly, while around the equinoxes they change quickly. This is why the length of daylight changes fastest at the equinoxes and slowest at the solstices.

Can I use this calculator for any date in the past or future?

The formula works for any date within a few centuries of the present, but the Earth’s orbital parameters change very slowly. Over thousands of years, the eccentricity and obliquity vary, so the equation of time shifts slightly. For dates far in the past or future, a more detailed model is needed.

Related

Formula used
in date | Date | - | 2025-06-21 | 0
in tz | Time zone offset (hours) | h | 0 | -12
out diff | Day length deviation | min | 0 | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.