Everyday Life

Day of the Year Calculator

Find which numbered day of the year a date falls on.


Day of the Year Calculator

Advertisement

Which ordinal day of the year (1 through 365, or 366 in a leap year) a given date falls on.

How it works

The number of days between January 1st of that year and the entered date is counted, plus one, using UTC-based date arithmetic so daylight-saving-time shifts never affect the count.

What this does not include

This does not include the weekday name — for that, use this site’s day-of-week calculator instead. This tool reports the ordinal day number, not the day name.

How to use this calculator

  1. Enter a date.

A worked example

January 1, 2026: day 1 of the year.

December 31, 2026 (a non-leap year): day 365, with 0 days remaining.

December 31, 2024 (a leap year): day 366 — one extra day from February 29.

What the variables mean

Variable Meaning
Date Any calendar date
Day of year How many days into the year that date falls

Edge cases worth knowing

A leap year shifts every date after February by one day’s worth of numbering — December 31 lands on day 366 in a leap year instead of the usual 365, exactly matching this site’s separate leap year calculator’s logic.

A missing date makes the calculation impossible, so the calculator declines to show a result without one.

Frequently asked questions

Why does a leap year change the total?

A leap year has 366 days instead of 365, since February gains an extra day, so late-year dates shift by one in the day-of-year count during a leap year.

Is this the same as the astronomical “Julian day”?

No — true Julian day is a continuous count of days since a fixed historical epoch used in astronomy; “day of the year” here refers to the everyday, non-astronomical sense of counting days within a single calendar year.

What’s a practical use for this?

Programming and data systems that reference dates by day-of-year number, and tracking progress through the calendar year.

Be the first to rate this

Written by

S. Tanaka

Everyday-life writer

S. Tanaka writes the everyday-life calculators: time and date arithmetic, reading speed, tips, and the small practical sums people look up mid-task. The aim is a page that answers the question in the first screen and explains the method underneath for anyone who wants it. Simple topics still deserve a stated method.

Reviewed by

H. Marchetti

Calculator reviewer — everyday life and food

H. Marchetti reviews the everyday-life and food calculators, checking that rules of thumb are labelled as approximations and that guidance involving food safety points readers to the check that actually matters rather than to a time estimate. Practical pages still need their method stated, and review confirms it is there.

How we write and review

Related calculators