CalcSeed

Days in a Year Calculator

Enter a year to see whether it has 365 or 366 days.

=
Quick answer: with the default inputs (2,026), the days in year is 365. Change any input to update the result.
Days in year
—

What this calculator does

Enter any year and the calculator returns its exact length: 365 days for a common year or 366 days for a leap year, together with a yes-or-no leap verdict. At the default input of 2026 the result is 365 days, because 2026 fails the leap-year test. The same rule powers loan interest accrual, contract deadlines and date arithmetic, so knowing whether a specific year carries an extra day prevents off-by-one errors that are easy to miss.

leap=(ymod4=0)∧(ymod100≠0∨ymod400=0)leap = (y \bmod 4 = 0) \land (y \bmod 100 \neq 0 \lor y \bmod 400 = 0)

How the leap-year rule works

The rule runs in two stages. Stage one: a year divisible by 4 is a leap year — 2028 ÷ 4 = 507 exactly, so 2028 gets the extra day. Stage two: the century exception prunes most century years. A year ending in 00 must also be divisible by 400 to count, which is why 2000 was a leap year (2000 ÷ 400 = 5) while 1900, 2100 and 2200 are common years of 365 days.

February is the only month that changes between the two year types. It grows from 28 to 29 days, and every day-of-year number after it shifts by one: March 1 is day 60 in a common year but day 61 in a leap year, and December 31 is day 365 or day 366 accordingly. If you track anything by day-of-year, a leap year silently moves every date after February.

Worked example: the year 2026

Take the default year, 2026. Dividing by 4 gives 2026 ÷ 4 = 506.5, so there is a remainder and the first test already fails — no century check is even needed. The verdict is a common year: 365 days, with a 28-day February. Change the year to 2028 and the first test passes (2028 ÷ 4 = 507 exactly), so the answer jumps to 366. Change it to 2100 and the first test passes (2100 ÷ 4 = 525) but the century test fails, because 2100 ÷ 400 = 5.25 leaves a remainder, so 2100 is back to 365 days.

Day-of-year positions that shift

  • December 31 is day 365 in a common year and day 366 in a leap year
  • March 1 is day 60 in a common year and day 61 in a leap year
  • A birthday falling after February has a day-of-year number one higher in leap years
  • The first day of each quarter after Q1 also shifts by one day

Month lengths at a glance

Only one cell in this table ever changes, which makes the annual total easy to verify by hand.

MonthCommon yearLeap year
January3131
February2829
March3131
April3030
May3131
June3030
July3131
August3131
September3030
October3131
November3030
December3131

Adding the common-year column gives 31+28+31+30+31+30+31+31+30+31+30+31 = 365. Swapping February to 29 raises the total to 366. Every other month keeps its usual length in both year types.

Why the calendar needs the extra day

Earth takes about 365.2422 days to orbit the Sun, not exactly 365. Four common years therefore lose 4 × 0.2422 = 0.9688 of a day — nearly a full day — against the seasons, which is why adding one day every fourth year works so well as a first correction. The Julian calendar did exactly that, but 1 ÷ 4 = 0.25 days per year slightly over-corrects the true 0.2422, leaving a drift of 0.0078 days per year, or about one day every 128 years.

The Gregorian reform of 1582 fine-tuned this. By dropping 3 century leap years out of every 400, the calendar allows 97 leap years per 400-year cycle instead of 100. The cycle contains 146,097 days, so the average year length is 146,097 ÷ 400 = 365.2425 days, within 0.0003 days of the true 365.2422. That residual gap is about one day in every 3,300 years, which is why no further correction is planned.

Century years, tested

  • 2000: divisible by 400, so a leap year of 366 days
  • 1900: divisible by 100 but not by 400, so 365 days
  • 2100: divisible by 100 but not by 400, so 365 days
  • 2400: divisible by 400, so a leap year of 366 days

Common mistakes

The single most common error is checking divisibility by 4 and stopping there. It gives the right answer for every year from 2020 through 2096, then quietly breaks on 2100 — a trap embedded in a lot of quick spreadsheet formulas. The second is assuming 2000 was not a leap year "because century years are skipped", when 2000 is precisely the exception that survives the rule.

  • Using year mod 4 alone: correct for 2020–2096, wrong for 2100, 2200 and 2300
  • Treating every 365.25-day average as exact, which drifts about 1 day per 128 years over long spans
  • Assuming the 2000–2099 stretch has exactly 25 leap years — it has 25, but 2100–2199 has only 24
  • Counting February 29 in date arithmetic for a year that is actually common

Where the 365-vs-366 answer matters

Daily interest accrual is the classic case: a loan that accrues 0.01% per day costs 36.5 points of principal over a 365-day year but 36.6 over a 366-day one, and 2028 contracts spanning February 29 pick up the extra day. Rental and lease agreements that state a daily rate face the same split — a "365-day year" clause and an "actual days" clause disagree by exactly one day in 2028. Payroll periods, warranty expirations and age-based eligibility cutoffs all inherit the same one-day wobble, which is why the calculator answers the leap question directly instead of letting you infer it from the calendar.

Frequently asked questions

How many days are in 2026?

365. Dividing 2026 by 4 leaves a remainder (2026 ÷ 4 = 506.5), so it is a common year with a 28-day February.

How many days are in 2028?

366. It is a leap year because 2028 ÷ 4 = 507 exactly, and it is not a century year, so no further test applies.

Is the year 2000 a leap year?

Yes. It is divisible by 400 (2000 ÷ 400 = 5), so the century exception does not remove it and the year had 366 days.

Will 2100 be a leap year?

No. It passes the divide-by-4 test but fails the divide-by-400 test (2100 ÷ 400 = 5.25), so 2100 has 365 days.

How often is a leap year?

Roughly every 4 years, but only 97 of every 400 years are leap years once the century rule is applied. The 2000s contained 25 of them; the 2100s will contain only 24.

Why is a year 365.2422 days?

That is the tropical year — the time Earth takes to return to the same point in its orbit relative to the seasons. The Gregorian calendar averages 365.2425 days per year, only 0.0003 days off.

How many days from January 1 to December 31 of the same year?

The difference is 364 days; counting both endpoints inclusively gives 365 in a common year and 366 in a leap year such as 2028.

Which month gains the leap day?

February. It has 29 days in a leap year instead of 28, and every other month is unchanged, which is how 365 becomes 366.

How many leap years fall between 2026 and 2050?

Six: 2028, 2032, 2036, 2040, 2044 and 2048. None of them is a century year, so the divide-by-4 test alone settles each one.

Does a leap year change which weekday a date falls on?

Yes, for dates after February. A common year advances weekdays by 1 (365 mod 7 = 1), but a leap year advances them by 2 (366 mod 7 = 2) for every date from March onward.

Method and sources

Calculation basis

Calendar logic follows the proleptic Gregorian calendar (ISO 8601) with correct leap-year handling.

Last updated: November 18, 2026
Formula & data sources
  • Gregorian calendar leap-year rule; a leap year has 366 days.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 18). Days in a Year Calculator. https://calcseed.com/c/date/days-in-year-calculator/
MLA 9"Days in a Year Calculator." CalcSeed, 18 Nov. 2026, calcseed.com/c/date/days-in-year-calculator/.
ChicagoCalcSeed. "Days in a Year Calculator." Last modified November 18, 2026. https://calcseed.com/c/date/days-in-year-calculator/

Related calculators