Calendar & Leap Years

Days In Year Calculator

Find the length of a selected year.

--
days

--

Business Days
0
Weekend Days
0
Weeks
0.0
Total Hours
0 h

How Days In Year Calculator Works?

The Days in Year Calculator works by checking the Gregorian leap-year rule for the chosen year and returning 365 or 366 days.

  1. 1

    Enter the year

    Type any year.

  2. 2

    Check divisibility by 4

    Years not divisible by 4 have 365 days.

  3. 3

    Check century years

    Century years have 366 days only when divisible by 400.

  4. 4

    Read the length

    The result shows days, weeks, hours and minutes in the year.

Days In Year Calculator Formula

The Days in Year formula is Days = 365 + (1 if leap year).

Days = 365 + L
L = 1 if (Y mod 4 = 0 AND Y mod 100 ≠ 0) OR Y mod 400 = 0, else 0
Y:
The year
L:
Leap-year flag

Example: 2026 has 365 days (8,760 hours). 2028 has 366 days (8,784 hours). 2100 has 365 days, since 2100 is not divisible by 400.

Days In Year Calculator Conversion Table

The table lists year length for 8 years.

YearDaysWeeksHoursSeconds
190036552.148,76031,536,000
200036652.298,78431,622,400
202436652.298,78431,622,400
202536552.148,76031,536,000
202636552.148,76031,536,000
202836652.298,78431,622,400
210036552.148,76031,536,000
240036652.298,78431,622,400

What is Days In Year Calculator?

A Days in Year Calculator is a tool that returns the number of days in a calendar year: 365 for a common year or 366 for a leap year.

The Gregorian calendar averages 365.2425 days per year over a 400-year cycle. The solar (tropical) year is about 365.2422 days, so the calendar drifts by about 1 day every 3,000 years.

97 of every 400 years are leap years. The other 303 years are common years.

What are the uses of Days In Year Calculator?

There are 5 main uses of the Days in Year Calculator: interest calculations, annual rates, payroll, data checks and planning.

  • Interest calculations

    Banks use 365 or 366 days for actual/actual interest.

  • Annual rates

    Analysts convert daily figures into annual totals.

  • Payroll

    Daily-paid staff count paid days in the year.

  • Data checks

    Developers test year-length logic.

  • Planning

    Teams plan 365-day or 366-day goals.

Related Calendar & Leap Years Tools

View All 141 Tools →