Everyday calculator

Free day of the year calculator

Find any date's day of the year in two seconds. Pick a date and the day of the year calculator returns its ordinal day number (1–366), how many days are left in the year, and the ISO 8601 ordinal date (YYYY-DDD) — with a cumulative-days table and a reverse day-number-to-date lookup, updated live, as you type.

InputsLive
Date
How the result is calculated
The day of the year counts whole days from 1 January:day of year = (date − 1 January) in days + 1
  • 1 January is day 1; 31 December is day 365 or 366.
  • Days remaining = days in year − day of year.
  • Leap years add 29 February (day 60), shifting later dates +1.
Check our examples
1 Mar 2024 (leap) → day 611 Mar 2023 (common) → day 6031 Dec 2024 (leap) → day 3661 Jan 2025 → day 1
Result
Day of the year — Fri, Mar 1, 2024
Day 61 of 366
305 days remaining · ISO ordinal date 2024-061
Day of the year61
Days remaining305
Days in year366
Year2024 (leap, 366 days)
Day of the year on the 1st of each month
Month (the 1st)Common yearLeap year
January 111
February 13232
March 16061
April 19192
May 1121122
June 1152153
July 1182183
August 1213214
September 1244245
October 1274275
November 1305306
December 1335336

Counts whole days from 1 January (UTC), with leap years handled automatically. How it's calculated

Results are estimates. Consult a professional.

Definition

What is the day of the year?

The day of the year is a date's position counted from the start of its year: 1 January is day 1, and 31 December is day 365 in a common year or day 366 in a leap year. It is also called the ordinal date or ordinal day number. This day of the year calculator returns that number for any date you pick, along with how many days are left in the year and the inverse — the calendar date for any day number.

So if a date is the 61st day of the year, every day from 1 January up to and including that date has been counted. The international standard ISO 8601 writes this as an ordinal date in the form YYYY-DDD — a four-digit year, a hyphen, and the three-digit day number with leading zeros. For example, 1 March 2024 is written 2024-061.

The ordinal position of a date within its year, from 1 (1 January) to 365 or 366 (31 December).
The formal name for the day of the year, written YYYY-DDD under ISO 8601 (e.g. 2024-061).
The number of days left in the year after a given date — 0 on 31 December.
A 366-day year (29 February exists), which shifts every day from 1 March onward one number later.
Method

How to calculate the day of the year

There are two ways to find the day of the year. The reliable one — and the one this calculator uses — counts whole days from 1 January. The shortcut adds up the lengths of the months before yours, which works but is easy to get wrong around February in a leap year.

day of year = (your date 1 January, same year) in whole days + 1
1 March 2024 1 January 2024 = 60 days → day 61
days remaining = days in year day of year
ordinal date (ISO 8601) = YYYY-DDD, e.g. 2024-061

The month-sum shortcut is: add the days in every month before the current one, then add the day of the month. For 1 March that is 31 (January) + 29 (February, leap year) + 1 = day 61. Use 28 for February in a common year and you get day 60 instead — which is exactly why a calculator that knows the leap-year rule is safer than counting by hand.

Worked example

A worked example using the day of the year calculator

Example: what day of the year is 1 March 2024?

Sam needs the ordinal date for 1 March 2024 to label a batch in a YYDDD production code. 2024 is a leap year, so the count runs through a 29-day February — here is exactly how the calculator works it out.

Step 1 — Count the days in the months before March

January has 31 days and February 2024 has 29 (it is a leap year), so 31 + 29 = 60 days fall before March begins. That makes 29 February the 60th day of the year.

Step 2 — Add the day of the month

1 March adds one more day: 60 + 1 = 61. So 1 March 2024 is the 61st day of the year. (In a common year February has only 28 days, so the same date would be day 60.)

Step 3 — Read the days remaining and the ordinal date

2024 has 366 days in total, so the days remaining after 1 March are 366 − 61 = 305. The ISO 8601 ordinal date is written 2024-061.

Day 61 of 366
1 March 2024 is the 61st day of the year, with 305 days remaining. Written as an ISO 8601 ordinal date, that is 2024-061. The calculator shows all three at once.
The term

What is an ordinal date?

Ordinal date is the formal name for the day of the year. An ordinal date pairs a year with the day number within it, so it pins down a date with just two values instead of the usual three (year, month, day). ISO 8601 — the international date standard — defines the written form as YYYY-DDD, with the day number always three digits and zero-padded.

Calendar dateDay of yearISO 8601 ordinal date
1 January 202412024-001
10 April 20241012024-101
1 March 2024 (leap)612024-061
1 March 2023 (common)602023-060
31 December 2024 (leap)3662024-366
31 December 2023 (common)3652023-365

The day number is always written as three digits (001–366). Leap years shift every date from 1 March onward one number later.

Because the day number alone runs only 1–366, an ordinal date must always carry its year — day 61 means nothing without knowing whether the year had a 29 February before it.
Reference

Cumulative days per month (leap vs common year)

To find any day of the year by hand, take the cumulative total for the start of its month and add the day of the month. The table below lists the day-of-year of the 1st of each month — so 1 March is day 60 in a common year and day 61 in a leap year. After February the two columns differ by exactly one, because of the leap day.

Month (the 1st)Common yearLeap year
January 111
February 13232
March 16061
April 19192
May 1121122
June 1152153
July 1182183
August 1213214
September 1244245
October 1274275
November 1305306
December 1335336

Day-of-year of the 1st of each month. To get any date, add (day of month − 1). Example: 15 June (common) = 152 + 14 = day 166.

From 1 March onward the leap-year column is always one higher than the common-year column — the single extra day on 29 February ripples through the rest of the year. Up to and including 28 February the two are identical. Whether a year is a leap year follows the leap year rule.

The flip side

How many days are left in the year?

Days remaining is the mirror image of the day of the year: it counts forward from a date to 31 December. The arithmetic is simple — days remaining = days in the year − day of the year — so the two always add up to 365 or 366.

days remaining = days in year day of year
common year: 365 day of year
leap year: 366 day of year
31 December → 0 days remaining (the last day)

This is the figure year-progress bars use: divide the day of the year by the total days to get the share of the year elapsed. To count down to a specific future date instead of the year-end, use the days between dates calculator.

In practice

Where ordinal dates and "Julian dates" are used

Day-of-year numbers turn up wherever a compact, sortable date helps. In manufacturing, food packaging, and the military, a code like 24061 or 2024061 — a two- or four-digit year followed by the three-digit day number — is stamped on products as a lot or pack date. Confusingly, the industry calls this a “Julian date,” even though it is really just the ordinal date described above.

  • Food & manufacturing — pack and lot codes use YYDDD or YYYYDDD so a date sorts and prints in a few digits.
  • IT & mainframes — COBOL, PL/I, and spreadsheet software historically stored an ordinal day-of-year; some legacy systems still call it a “Julian date.”
  • Aviation & logistics — flight and shipment records use the day number to simplify date maths across a year.
  • Science & agriculture — day of year (often abbreviated DOY) is the standard x-axis for seasonal data like growing-degree days and climate records.
Watch the terminology: the food/IT “Julian date” (a YYDDD ordinal date) is not the astronomer's Julian Day Number (JDN). The JDN is a continuous count of days since 1 January 4713 BCE used in astronomy and historical computing — a single integer for any day in history, with no year or month attached. They share a name but are entirely different systems.
Reverse

Convert a day number back to a date

The calculator also works in reverse: give it a year and a day number and it returns the calendar date. This is the inverse lookup — useful for decoding a YYDDD lot code or reading a day-of-year value out of a dataset back into a familiar date.

date = 1 January of the year + (day number 1) days
day 61 of 2024 → 1 January + 60 days → 1 March 2024
day 60 of 2023 → 1 January + 59 days → 1 March 2023

Note how the same day number maps to a different date depending on the year: day 61 is 1 March in a leap year but 2 March in a common year, because the missing 29 February shifts everything from March onward. That is why an ordinal date is only meaningful alongside its year.

Quick answers

Common day-of-the-year questions

What number day of the year is it?

Pick today's date in the calculator and it returns the day number instantly — 1 for 1 January, up to 365 or 366 for 31 December. The day count is shown alongside the days remaining in the year and the ISO 8601 ordinal date.

How many days are in a year?

365 in a common year and 366 in a leap year. The extra day is 29 February, which appears only in leap years and makes that year's highest day number 366 instead of 365.

What is the highest possible day of the year?

366, which falls on 31 December of a leap year. In a common year the highest is 365, also on 31 December. There is no day 0 — the count starts at 1 on 1 January.

Methodology

How this calculator works and sources

This day of the year calculator counts whole days from 1 January of the date's year, in UTC, so the result never shifts across timezones and leap years are handled automatically. The ordinal-date concept and its YYYY-DDD written form are defined by ISO 8601; the leap-year rule is the standard Gregorian one (divisible by 4, except century years not divisible by 400). The maths runs entirely in your browser — the date you enter is never sent anywhere.

ISO 8601 — Date and time format, ordinal dates (YYYY-DDD).Ordinal date — Wikipedia (overview, ISO 8601 form, and the Julian-date naming caveat).
Questions

Frequently asked questions about the free day of the year calculator

A day of the year calculator is a free online tool that helps you find the day of the year (ordinal date) for any date — the day number from 1 to 366, the days remaining in the year, and the ISO 8601 ordinal form, with a reverse day-number-to-date lookup. Day of the year = whole days from January 1 + 1, so Jan 1 is day 1 and Dec 31 is day 365 (or 366 in a leap year). It runs entirely in your browser with instant results and no sign-up.
Pick today's date in the calculator and it returns the day number instantly — 1 for January 1, up to 365 or 366 for December 31 — along with the days remaining in the year and the ISO 8601 ordinal date (YYYY-DDD).
365 in a common year and 366 in a leap year. The extra day is February 29, which appears only in leap years and makes that year's highest day number 366 instead of 365.
366, on December 31 of a leap year. In a common year the highest is 365, also on December 31. There is no day 0 — the count starts at 1 on January 1.
An ordinal date is the day of the year paired with its year, written YYYY-DDD under ISO 8601 (e.g. 2024-061 for March 1, 2024). The day number is always three digits with leading zeros.
Add (day number − 1) days to January 1 of that year. Day 61 of 2024 is January 1 + 60 days = March 1, 2024. The same day number maps to a different date in common vs leap years.
In food, IT, and military use, a 'Julian date' (YYDDD) is just the ordinal date — the day of the year. It is not the astronomer's Julian Day Number, a continuous day count since 4713 BCE.
About

About this day of the year calculator

This day of the year calculator runs entirely in your browser. The date you pick never leaves your device — nothing is sent to a server, logged, or shared. It counts whole days from January 1 in UTC, so the day number is stable across timezones and leap years are handled automatically, updating instantly on every change.

Calculators Cloud offers 400+ free tools with no sign-up. The whole Everyday calculators shelf includes the date calculator, days between dates, leap year, and day of the week tools alongside this one. Or browse the full calculator directory.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.