Days in a Year Calculator
Check whether a year has 365 or 366 days.
How the Days in a Year Calculator Works
The Days in a Year Calculator checks the Gregorian leap-year rule and returns 365 days for a common year or 366 days for a leap year.
Enter the year
Enter a year, such as 2026 or 2100.
Test divisibility by 4
Years not divisible by 4 are common years with 365 days.
Test century years
Years divisible by 100 are common years, unless divisible by 400.
Read the total
The result shows 365 or 366 days and labels the year type.
How the Count Is Calculated
The Days in a Year formula adds 1 day to 365 for leap years.
Days = 366, if (Y mod 4 = 0 and Y mod 100 ≠ 0) or (Y mod 400 = 0)
Days = 365 otherwise- Y
- The year number.
- mod
- Remainder after division.
- 366
- Leap year length, with 29 February.
Example: 2100 is divisible by 100 but not by 400, so 2100 has 365 days. 2000 is divisible by 400, so 2000 had 366 days.
Worked Examples
The table lists year lengths in days, weeks, hours and minutes.
| Year | Type | Days | Hours | Minutes |
|---|---|---|---|---|
| 2025 | Common | 365 | 8,760 | 525,600 |
| 2026 | Common | 365 | 8,760 | 525,600 |
| 2027 | Common | 365 | 8,760 | 525,600 |
| 2028 | Leap | 366 | 8,784 | 527,040 |
| 2000 | Leap (÷400) | 366 | 8,784 | 527,040 |
| 2100 | Common (÷100) | 365 | 8,760 | 525,600 |
What the Tool Measures
A Days in a Year Calculator is a tool that returns the length of any Gregorian year in days.
The Gregorian calendar holds 97 leap years every 400 years. The average year length is 365.2425 days, close to the solar (tropical) year of about 365.2422 days.
When to Use This Tool
There are 4 main uses of the Days in a Year Calculator, including interest bases and annual planning.
Interest calculation
Banks divide annual rates by 365 or 366 days for daily interest.
Annual goals
People split a yearly goal into daily targets.
Software tests
Developers test date code against 2000 and 2100.
Payroll
Employers convert annual salaries to daily rates.