Home Everyday Life Day of the Year Calculator

Day of the Year Calculator

Day number of a date, days left in the year and the ISO week.

Advertisement

How it works

The day of the year counts from 1 on 1 January, so it is the number of days since then plus one. A leap year has 366 days, which shifts every date after February by one. The ISO week number is the one used for planning and for many business calendars: weeks start on Monday and week 1 is the week that contains the first Thursday of the year.

Advertisement

Formula

day of the year = (date − 1 January of that year) + 1
days left = days in the year − day of the year
days in the year = 366 in a leap year, otherwise 365

Sources

Example

5 December 2026 is day 339 of 365, so 26 days are left. The ISO week is 49. Check: 1 January 2026 plus 338 days is 2026-12-05.

Frequently asked questions

Which years are leap years?

Years divisible by 4, except century years that are not divisible by 400.

Is 31 December always day 365?

In a common year yes. In a leap year it is day 366.

What is the ISO week?

A week that starts on Monday, where week 1 is the week containing the first Thursday.

Is this the same as a Julian day number?

No. A Julian day number is a continuous count that does not restart each year.

Advertisement

Related calculators

Age Calculator

Exact age in years, months and days, plus days until your next birthday.

Date Difference Calculator

Days, weeks, months and business days between two dates.

Tip Calculator

Tip and split the bill between any number of people.

Discount Calculator

The price after a percent discount and how much you save.