Calendar & Leap Years

Day Of Year Calculator

Find a date’s ordinal position within its year.

--
days

--

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

How Day Of Year Calculator Works?

The Day of Year Calculator works by adding the days of every full month before the date to the day of the month, returning the ordinal day from 1 to 365 (or 366).

  1. 1

    Enter the date

    Pick any date between January 1 and December 31.

  2. 2

    Sum earlier months

    The calculator adds the lengths of all months before the date's month.

  3. 3

    Add the day of month

    The day number within the month adds to that sum.

  4. 4

    Read the ordinal day

    January 1 is day 1, and December 31 is day 365 or day 366.

Day Of Year Calculator Formula

The Day of Year formula is DOY = Σ days in months before M + D, plus 1 for dates after February in a leap year.

DOY = cumulative days before month M + D
Add 1 if month > February and the year is a leap year
M:
Month of the date
D:
Day of the month

Example: Nov 25, 2026: January–October hold 304 days in 2026, so the day of year is 304 + 25 = day 329. In leap year 2028, November 25 is day 330.

Day Of Year Calculator Conversion Table

The table lists the day of year for the 1st of each month in a common year (2026) and a leap year (2028).

DateCommon Year (2026)Leap Year (2028)
January 111
February 13232
March 16061
April 19192
May 1121122
June 1152153
July 1182183
August 1213214
September 1244245
October 1274275
November 1305306
December 1335336

What is Day Of Year Calculator?

A Day of Year Calculator is a tool that returns a date's position in its year as a number from 1 to 366. Another name for the number is the ordinal date.

ISO 8601 writes ordinal dates as YYYY-DDD. November 25, 2026 is written 2026-329.

Leap years shift every date after February 28 by 1. March 1 is day 60 in a common year and day 61 in a leap year.

What are the uses of Day Of Year Calculator?

There are 5 main uses of the Day of Year Calculator, including batch codes, scientific data and 100-day goals.

  • Batch codes

    Food and drug makers print ordinal dates as lot codes.

  • Scientific data

    Researchers record weather and satellite data by day of year.

  • 100-day goals

    People track progress on day 100 of the year (April 10 in a common year).

  • Military dates

    Logistics systems use ordinal dates in records.

  • Programming

    Developers check day-of-year values in code.

Related Calendar & Leap Years Tools

View All 141 Tools →