How Many Days Are in a Year? 365, 366, and the Leap Year Rules

How Many Days Are in a Year? 365, 366, and the Leap Year Rules

TL;DR: A common year has 365 days and a leap year has 366. The average is 365.2422, which is why a leap day is added almost every four years. The “every four years” rule has two exceptions: a century year is not a leap year unless it is divisible by 400. So 1900 was not a leap year, 2000 was, and 2100 will not be.

The number, and why it is not a whole number

A solar year — the time it takes Earth to return to the same point in its orbit — is about 365 days and 5 hours 48 minutes 46 seconds.

Any calendar that uses whole days must therefore drift, unless it periodically corrects. The Julian calendar did this bluntly: add a leap day every four years. That assumes a year of 365.25 days, which is 11 minutes too long. Over centuries the calendar drifted out of alignment with the seasons, and by the 1500s the error had accumulated to about ten days.

The Gregorian reform corrected for that residual error with a more careful rule, and that rule is what most of the world uses today.

The leap year rules, in full

Three tests, applied in order.

Rule one. A year divisible by 4 is a leap year.

Rule two. A year divisible by 100 is not a leap year, even though it passes rule one.

Rule three. A year divisible by 400 is a leap year, overriding rule two.

The results are easy to check:

  • 2024, 2028, 2032 — divisible by 4, not by 100: leap years
  • 1900 — divisible by 100 but not 400: common year
  • 2000 — divisible by 400: leap year
  • 2100 — divisible by 100 but not 400: common year

That gives 97 leap years every 400 years rather than 100, and a mean year length of 365.2425 days — accurate to within about 26 seconds per year of the true value. It will take roughly 3,300 years to accumulate a one-day error, which is precise enough for civil purposes.

What the extra day does to dates

The leap day is 29 February, and its presence shifts every subsequent date in the year by one.

Two practical consequences follow. First, any date after February in a leap year falls one weekday later than it would in the equivalent common year, which is why calendar math cannot be done by weekday alone. Second, intervals spanning a leap day are one day longer than the naive calculation suggests — the same issue that makes age and duration arithmetic go wrong.

An anniversary or deadline set on a fixed day number is unaffected. A period measured in days that crosses 29 February is not, which is why contracts tend to specify a calendar date rather than a duration when leap years could be involved.

Days per month

The monthly lengths are irregular by historical accident rather than design, and they are worth having to hand:

31 days: January, March, May, July, August, October, December.

30 days: April, June, September, November.

28 or 29 days: February.

Four months have 30 days, seven have 31, and February varies. The total is 365 in a common year, and the addition of 29 February makes 366.

The familiar knuckle mnemonic encodes this correctly: count the knuckles and valleys of a closed fist from one end, counting knuckles as 31 and valleys as 30, with February as the exception.

Weeks, quarters, and the awkward remainders

365 divided by 7 is 52.14, so a year is 52 weeks and one day — or 52 weeks and two days in a leap year. That is why the same date drifts by a weekday each year, and why a calendar year never divides evenly into weeks.

This is the source of a common confusion in week-based planning: some years contain 53 ISO week numbers, because the ISO system defines weeks by where they fall rather than by dividing 365 by 7. A year has 53 weeks when it starts on a Thursday, or on a Wednesday in a leap year.

Quarters are similarly approximate. Because months have 28 to 31 days, a calendar quarter is 90 to 92 days, and a fiscal quarter can be anything the organisation defines. This is why financial reporting uses day-count conventions rather than assuming 90.

Where the count actually matters

Four situations where the leap-year rule has consequences.

Interest and day-count conventions. Financial calculations use conventions like actual/365 or actual/366, and the choice changes the interest on a period crossing a leap day.

Age and eligibility. Legal ages, school cut-offs, and benefit eligibility are defined by dates, and the leap day decides when someone born on 29 February crosses a threshold.

Software and date handling. A year-length assumption of 365 in code produces off-by-one errors on every leap year, which is one reason date libraries exist rather than hand-rolled arithmetic.

Contractual deadlines. A specified number of days that spans February behaves differently in a leap year, and the difference is large enough to matter.

If you need to work out the interval between two dates and it crosses a leap day, a date difference calculator applies the actual month lengths and leap-year rule, which is the part hand counting gets wrong most often.

The short version

365 days normally, 366 in a leap year. Divisible by 4 means leap, except century years, except multiples of 400. The mean year is 365.2425 days, a year is 52 weeks and a day, and any interval crossing 29 February is one day longer than it looks.