Days In Year Calculator
Find the length of a selected year.
--
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
Enter the year
Type any year.
- 2
Check divisibility by 4
Years not divisible by 4 have 365 days.
- 3
Check century years
Century years have 366 days only when divisible by 400.
- 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.
| Year | Days | Weeks | Hours | Seconds |
|---|---|---|---|---|
| 1900 | 365 | 52.14 | 8,760 | 31,536,000 |
| 2000 | 366 | 52.29 | 8,784 | 31,622,400 |
| 2024 | 366 | 52.29 | 8,784 | 31,622,400 |
| 2025 | 365 | 52.14 | 8,760 | 31,536,000 |
| 2026 | 365 | 52.14 | 8,760 | 31,536,000 |
| 2028 | 366 | 52.29 | 8,784 | 31,622,400 |
| 2100 | 365 | 52.14 | 8,760 | 31,536,000 |
| 2400 | 366 | 52.29 | 8,784 | 31,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 →Day Of Year Calculator
Find a date’s ordinal position within its year.
Day Of Year To Date Converter
Convert a year and ordinal day into a date.
Days In Month Calculator
Find the length of a selected month.
Leap Year Checker
Check whether a Gregorian year is a leap year.
Leap Years Between Dates Calculator
List leap years within a selected interval.
Leap Days Between Dates Calculator
Count February 29 dates within a range.