Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Day of Year Calculator — Find the Ordinal Day Number

Discover which day number (1 through 366) any date falls on within its year, with a visual progress bar, remaining days count, and automatic leap year detection.

Day of Year

312of 365

85.48% through the year

Remaining Days

53

Leap Year

No

Date

November 8, 2026

Day of Year Reference Table

Month Start Day # (Common) Day # (Leap) % Through Year
January 1 1 1 0.27%
February 1 32 32 8.49%
March 1 60 61 16.16%
April 1 91 92 24.93%
July 1 182 183 49.86%
October 1 274 275 75.07%
December 31 365 366 100%

Related Calculators

About this calculator

Day of Year Formula

Day of Year = (Date - January 1 of same year) / 86,400,000 + 1
Progress = (Day of Year / Total Days in Year) * 100%
Remaining = Total Days in Year - Day of Year

Variables Explained

  • Date: The target date for which you want the day of year number.
  • January 1: The first day of the same year, used as the reference point. It is always day 1.
  • 86,400,000: Milliseconds in one day, used to convert the millisecond difference to whole days.
  • +1: Added because January 1 itself is day 1 (not day 0). The formula counts from zero and adds 1 for the 1-based numbering convention.
  • Total Days in Year: 365 for common years, 366 for leap years. Determines the denominator for progress percentage and the ceiling for remaining days.
  • Leap Year: A year is a leap year if divisible by 4, except century years must also be divisible by 400. Formula: (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0).

Step-by-Step Example

Find the day of year for August 15, 2026:

  1. January: 31 days
  2. February: 28 days (2026 is not a leap year)
  3. March: 31 days
  4. April: 30 days
  5. May: 31 days
  6. June: 30 days
  7. July: 31 days
  8. August 1-15: 15 days
  9. Total: 31 + 28 + 31 + 30 + 31 + 30 + 31 + 15 = Day 227
  10. Progress: 227 / 365 = 62.19% through the year
  11. Remaining days: 365 - 227 = 138 days left

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026