ReadyCalcs · All calculators · Compare

Day of Year Calculator

Enter calendar date to find ordinal day. Ordinal day = dayOfYear(Calendar date).

DATE TIMELINE

The interval at a glance

The timeline follows the entered dates. For counting conventions, holidays or rounding, see the explanation below.

About this calculation

An ordinal day identifies the position of a selected date within its Gregorian year. The count restarts when the calendar year changes and shifts after leap day in leap years. Use this day of year calculator to find ordinal day from calendar date.

Formula

Ordinal day = dayOfYear(Calendar date)

Worked example

With Calendar date: 2026-10-21, ordinal day is 294 day.

How to calculate ordinal day

The rule is Ordinal day = dayOfYear(Calendar date).

Reading ordinal day

January 1 is ordinal day 1. Later dates advance with each calendar date, including weekends and holidays; the result is a position, not the count of days still available. With calendar date 2026-10-21, the calculator returns ordinal day 294 day.

Practical use

Use an ordinal date to label observations, organize seasonal records, or check a schedule keyed to a day within the year. Identify a date's position within its year for schedules or seasonal records.

Limits and common mistakes

A date after February has a different ordinal position in a leap year. Do not replace actual month lengths with repeated 30-day blocks, especially when comparing dates in different years. Verify calendar date before interpreting ordinal day.

Read the example and units

The worked date is calendar date 2026-10-21, and its ordinal position is 294. Start at the first date of that year and include the selected date when reading its position. The output follows this page’s specific calendar convention; another convention can produce a different answer from the same dates. The date field has no clock time. The output counts the selected date as its own ordinal position and includes every prior date in that year. Compare ordinal labels only after checking whether the two dates fall in leap years.

Compare one changed input

Changing the selected date from calendar date 2026-10-21 to calendar date 2026-10-28 moves the ordinal position from 294 to 301. Those labels identify positions within the same calendar year; check the year before comparing labels from different examples. Each later calendar date advances the ordinal position until the year ends, when the next date begins a new count. A leap day shifts the labels of subsequent dates within that year.

How to interpret this kind of result

Ordinal labels start at January 1 as day 1 and advance once per calendar date. December 31 has the last ordinal position of its year. In a leap year, February 29 shifts every later label relative to the corresponding date in a common year. This result identifies a date’s position; it does not say how much of the year remains. Ordinal position 294 applies to calendar date within that date’s own year; a date in another year may have a different label after leap day.

Scope and practical checks

An ordinal position follows the Gregorian calendar rather than a workday schedule. December 31 is still a valid final position, even though no later date remains in that year. For seasonal data, compare the actual dates around leap day instead of assuming equal ordinal labels imply identical calendar dates across years. Verify the year in calendar date and whether its February has a leap day before comparing ordinal day with a dated record.

Common questions

What does this day of year result include?

The ordinal day is the selected calendar date position within its year under Ordinal day = dayOfYear(Calendar date). It includes the selected date in the ordinal count and does not remove nonworking dates. Check the leap-year calendar if you compare the position with another year.

Inputs

  • Calendar date

Related calculators

Start with your task