Calculation Number Of Days

Instant date span, business days & live distribution

Days in a Year Calculator

Check whether a year has 365 or 366 days.

Result
—

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.

  1. Enter the year

    Enter a year, such as 2026 or 2100.

  2. Test divisibility by 4

    Years not divisible by 4 are common years with 365 days.

  3. Test century years

    Years divisible by 100 are common years, unless divisible by 400.

  4. 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.

YearTypeDaysHoursMinutes
2025Common3658,760525,600
2026Common3658,760525,600
2027Common3658,760525,600
2028Leap3668,784527,040
2000Leap (÷400)3668,784527,040
2100Common (÷100)3658,760525,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.