Planning & countdowns

Day of the year

Find a date’s ordinal position and the days remaining in its year.

Your starting point

Your result
Let’s make it clear.
Choose your inputs, then calculate.

Calculated in your browser. Your inputs are not uploaded.

Find a date’s ordinal position and the days remaining in its year. January 1 is day one. Leap years contain 366 dates; common years contain 365. The ordinal label combines the year and a three-digit day position.

Find a date’s one-based place in the year

Days remaining exclude the selected date, while the percentage describes the date’s position in the year. It is not a precise elapsed-time progress measure of the current day.

A year overview showing completed dates can use another convention, such as excluding today. Keep the definition with the number before treating the two displays as contradictory.

Translate a date to its ordinal place in the year

The Gregorian year starts with ordinal day 1 on 1 January. The label increases by one on every civil date. To check 1 March in a common year, add 31 January dates and 28 February dates, then add one. The result is day 60. In a leap year include February 29 before counting the first day of March, giving day 61. This makes a short check for reports that use labels like 2026-060.

An ordinal date contains the year and a day-of-year field, usually padded to three digits. Keep the year because the same ordinal label may identify a different day and month in a leap year. A civil date written 2026-03-01 names a year, month and day. An ordinal label written 2026-060 names a year and ordinal position. When importing a file, establish which fields the source system produced.

Read the days remaining and percentage with their labels

The days remaining row excludes the selected date and counts dates after it through the end of December. At the end of the year that answer is zero. At the beginning of a common year it is 364. The year-position percentage describes the ordinal number divided by the full day count. A value near halfway is a fraction of the calendar's labeled dates, independent of any clock time on the selected date.

If a progress report refers to completed days as of the start of the selected date, the number completed is one smaller than its ordinal. For example, at the start of day 100 there are 99 earlier date labels that have passed. If the report says it covers day 100 through its close, use the inclusive ordinal measure. Document the reporting convention whenever the numerator is supposed to reflect completed work.

ScenarioEntriesWhat the calculator showsHow to use it
First date of a common yearSelected date = 2026-01-01Day 1. of 365 in 2026. Days remaining after this date = 364, Year position = 0.274%, Ordinal date = 2026-001The selected date occupies the first position, with no completed dates before it.
First of March in a common yearSelected date = 2026-03-01Day 60. of 365 in 2026. Days remaining after this date = 305, Year position = 16.438%, Ordinal date = 2026-060Count January and February first and then include March 1.
Leap day itselfSelected date = 2028-02-29Day 60. of 366 in 2028. Days remaining after this date = 306, Year position = 16.393%, Ordinal date = 2028-060Day 60 names the extra February date in this year.
March after a leap FebruarySelected date = 2028-03-01Day 61. of 366 in 2028. Days remaining after this date = 305, Year position = 16.667%, Ordinal date = 2028-061The same month and day has a different ordinal.
Year end in a leap yearSelected date = 2028-12-31Day 366. of 366 in 2028. Days remaining after this date = 0, Year position = 100%, Ordinal date = 2028-366The percentage is complete and no date remains in the selected year.

Compare February and March in two years

A controlled example: The ordinal position begins at one.

Selected date: 2026-01-01.

The primary result is Day 1, labeled “of 365 in 2026”. Days remaining after this date: 364. Year position: 0.274%. Ordinal date: 2026-001.

January 1 is day one. Leap years contain 366 dates; common years contain 365. The ordinal label combines the year and a three-digit day position.

A controlled example: A leap-day position belongs to a 366-date year.

Selected date: 2024-02-29.

The primary result is Day 60, labeled “of 366 in 2024”. Days remaining after this date: 306. Year position: 16.393%. Ordinal date: 2024-060.

A controlled example: The final date has no later dates left in its year.

Selected date: 2026-12-31.

The primary result is Day 365, labeled “of 365 in 2026”. Days remaining after this date: 0. Year position: 100%. Ordinal date: 2026-365.

A repeat annual event before March 1 keeps its ordinal day between most years because February's extra date has not yet occurred. An event after that date shifts by one ordinal in a leap year. If a yearly process is keyed to day 180, it can land on a different month-and-day label in leap years. If the process is always intended to run on a fixed civil date such as 30 June, calculate that date's ordinal separately for each year. These are different rules for the event, even when they happen to agree in the first year tested.

For a penalty or eligibility cutoff, verify the original wording. A rule can use a fixed number of days after an issue date while an annual report uses a day in the year. The first operation needs a starting date and an offset. Use add or subtract days for that operation. The form on this page starts counting at the first day of the selected date's Gregorian year.

Use calendar labels to organise a real dataset

Imagine a set of daily sensor summaries named by the sampling region's date. The filename convention might use 2028-060 for 29 February. Keep an independent column with the full written date so that people can read it without conversion. The day-of-year label is useful for sorting records in a single year. The year prefix makes it useful across many years. If a file omits the year, do not infer the month and day without knowing whether the source year was leap.

Check the reporting zone if the dataset started with timestamps. Readings at 00:20 in Dublin and 23:20 on an earlier UTC date can refer to the same instant in summer. If the sensor summaries use a Dublin calendar, convert each record to its local date before calculating the ordinal label. This preserves the intended report period even when underlying timestamps are stored in UTC.

Middle of a common year. Inspect ordinal and remaining days together before declaring the year more than half complete.

Enter Selected date = 2026-07-02. The result is Day 183. of 365 in 2026. Days remaining after this date = 182. Year position = 50.137%. Ordinal date = 2026-183.

Last date in common year. Compare the total with the leap-year December case.

Enter Selected date = 2026-12-31. The result is Day 365. of 365 in 2026. Days remaining after this date = 0. Year position = 100%. Ordinal date = 2026-365.

An early January date. The ordinal restarts when the year changes. Carry the year with the label when combining reports.

Enter Selected date = 2027-01-02. The result is Day 2. of 365 in 2027. Days remaining after this date = 363. Year position = 0.548%. Ordinal date = 2027-002.

Spot padded date labels before sorting

A date position stored as plain text should have the same number of digits for each record. Day 2 is 002 and day 20 is 020. This keeps a textual sort in the same order as the actual days. Preserve the year prefix if several years share the same table. In a validation file, include January 1, February 28, March 1 and December 31. Those records catch both an off-by-one start and a mistake where a leap day was placed or counted incorrectly. Keep the original date as well if people will read the export directly.

Ordinal day questions

Is January 1 day zero?

The ordinal count starts at one. January 1 is day 001. The number of earlier dates in that year is zero, which is a different measurement from the date's ordinal label.

Why does March 1 have two possible day numbers?

An ordinary February has 28 dates. A leap February has 29. Its extra date shifts March 1 from day 60 to day 61. Check the selected year to choose the right result.

Are there always 365 days in the year?

A common Gregorian year has 365 days and a leap year has 366. The answer and percentage use the actual selected year's length. The leap year checker explains the century rules.

Does the remaining-days row include the selected date?

It counts dates strictly after the selected date through December 31. On the last date of the year there are zero later dates inside that year.

Is a day-of-year label the same as a weekday?

The ordinal describes the date's place in the year. A weekday is the name or position of the date in a seven-day cycle. Each can be useful in a separate export column.

How can I use an ordinal label to recover the date?

Start with 1 January in the specified year and move by one fewer than the ordinal day number. For day 001 move zero dates. Check the year to ensure the requested ordinal fits.

A useful next step