CalcOpenly
English

Week number and day of year

Week number for any date: ISO 8601 week and week-numbering year, US week number, day of the year, days left in the year and the quarter.

Drafted with AI writing toolsUpdated Checked examples: 5

= 2026-11-12
Try
ISO week
ISO week: 46
Whole number; Nearest, ties away from zero
ISO week-numbering year
2026
ISO week date
2026-W46-4
Day of the year
316
Days left in the year
49
Days in the year
365
Quarter
4
Weeks in that ISO year
53
US week number (Sunday start)
46
Year elapsed
86.6%

Thu 12 Nov 2026 is in ISO week 46 of 2026 (2026-W46-4), day 316 of 365 with 49 days left, in Q4.

2026 by quarter

Q1: 1 Jan 2026 to 1 Apr 2026Q1Q2: 1 Apr 2026 to 1 Jul 2026Q2Q3: 1 Jul 2026 to 1 Oct 2026Q3Q4: 1 Oct 2026 to 1 Jan 2027Q4Week 46: Day 316 · Thu 12 Nov 2026Week 46Day 316 · Thu 12 Nov 2026
How it's calculated S
  1. Weekday

    Thu 12 Nov 2026 is a Thursday, ISO weekday 4 (Monday = 1).

  2. Find that week's Thursday

    ISO weeks run Monday to Sunday and belong to the year that contains their Thursday. This week's Thursday is Thu 12 Nov 2026, so the week-numbering year is 2026.

  3. Week number

    ⌊316−17⌋+1=46\left\lfloor \frac{316 - 1}{7} \right\rfloor + 1 = 46

    316 is the Thursday's day of the year.

  4. Day of the year

    N(date)−N(1 Jan)+1=316,365−316=49 days leftN(\text{date}) - N(\text{1 Jan}) + 1 = 316,\qquad 365 - 316 = 49\ \text{days left}
  5. US week number

    ⌊316−1+47⌋+1=46\left\lfloor \frac{316 - 1 + 4}{7} \right\rfloor + 1 = 46

    4 is 1 January's weekday counted from Sunday = 0; week 1 is the week containing 1 January.

About week number and day of year

ISO 8601 weeks run from Monday to Sunday, and each week belongs to the year that contains its Thursday. Week 1 is therefore the week with the year's first Thursday, which is also the week containing 4 January. The calculator finds the Thursday of the date's week, takes its day of the year d, and computes ⌊(d − 1)/7⌋ + 1. It also gives the US-style number from Excel's WEEKNUM(date, 1), where weeks start on Sunday and week 1 is the week containing 1 January.

Week numbers appear in payroll periods, production plans and European business calendars. Near New Year the two systems part: 1 January 2027 is a Friday, so it falls in ISO week 53 of 2026 (2026-W53-5), while 30 December 2024 is already ISO week 1 of 2025 but US week 53 of 2024.

Day of the year counts 1 January as day 1, so 31 December is day 365, or 366 in a leap year.

How many weeks are in a year?

A year has 52 weeks and 1 day, or 52 weeks and 2 days in a leap year: 365 ÷ 7 = 52.14 and 366 ÷ 7 = 52.29. Numbered weeks work differently. An ISO 8601 year has 52 or 53 weeks, and 2026 has 53 because it starts on a Thursday.

An ISO year has 53 weeks when 1 January is a Thursday, or a Wednesday in a leap year. Being a leap year is not enough: 2024 and 2028 have 52 weeks, while 2020, 2026, 2032 and 2037 have 53.

52-week and 53-week years

YearCalendar daysWhole weeksExtra daysISO numbered weeks
200036652252
202036652253
202436652252
202536552152
202636552153
202736552152
202836652252
203236652253
203736552153
210036552152

The last column is the number of the ISO week that contains 28 December, which is always the final week of its ISO year. Checking 1 January or 31 December instead can land in a week of the neighboring year.

How ISO 8601 week numbers work

  • Weeks run from Monday to Sunday.
  • Week 1 is the week with the year's first Thursday, so it always contains 4 January.
  • Each week belongs to the year that holds its Thursday. 29 to 31 December can fall in week 1 of the next year, and 1 to 3 January in week 52 or 53 of the previous one.

To number a week by hand, find the Thursday of the date's week and take its day of the year d; the week is ⌊(d − 1) ÷ 7⌋ + 1. For Monday 5 October 2026 that Thursday is 8 October, day 281, so the week is ⌊280 ÷ 7⌋ + 1 = 41.

ISO writes the result as a week date, 2026-W41-1: the ISO year, the week, then the weekday with Monday = 1 and Sunday = 7. Keep the ISO year with the week, because for a few days around New Year it differs from the calendar year.

US week numbers start on Sunday

The US count, Excel's WEEKNUM(date, 1), starts weeks on Sunday and makes week 1 the week containing 1 January, however short. With d the day of the year and s the weekday of 1 January (Sunday = 0), the week is ⌊(d − 1 + s) ÷ 7⌋ + 1.

For 5 October 2026, d = 278 and s = 4 (a Thursday), so the week is ⌊281 ÷ 7⌋ + 1 = 41, as in ISO. In 2026 the two systems agree from Monday to Saturday and differ by one on Sundays, which end an ISO week but start a US one.

In 2027, which starts on a Friday, the US number is one higher than the ISO number, or two higher on Sundays. Microsoft's WEEKNUM reference lists both systems and their return types.

Week number and day-of-year examples

Calendar dateISO week dateSunday-start weekDay of yearDays left
2024-12-302025-W01-1533651
2024-12-312025-W01-2533660
2026-01-012026-W01-411364
2026-12-312026-W53-4533650
2027-01-012026-W53-511364
2027-01-042027-W01-124361
2028-01-012027-W52-611365
2028-02-292028-W09-21060306
2028-12-312028-W52-7543660
2026-10-052026-W41-14127887

31 December 2028 falls in US week 54 because that leap year starts on a Saturday and ends on a Sunday, leaving one-day US weeks at both ends. In ISO terms it is the last day of week 52.

Week numbers in Excel, Google Sheets and Python

  • =ISOWEEKNUM(A2), or =WEEKNUM(A2, 21), returns the ISO week. Microsoft's ISOWeekNum notes explain why early January can belong to the previous ISO year.
  • =WEEKNUM(A2) gives the Sunday-start US count. =WEEKNUM(A2, 2) starts weeks on Monday but still puts 1 January in week 1, so it is not ISO.
  • Python's date.isocalendar() returns the ISO year, week and weekday. In strftime, pair %G with %V: %Y-W%V prints 2024-W01 for 30 December 2024, whose ISO week is 2025-W01.
  • Python's %U counts Sunday-start weeks from 0, so it is one lower than WEEKNUM(date, 1) except in years that begin on a Sunday.

Day of the year, days left and quarter

  • Day of the year counts 1 January as day 1, so 31 December is day 365, or 366 in a leap year.
  • Days left excludes the date itself: 5 October 2026 is day 278 with 87 days left. Add 1 to include that day.
  • The share of the year elapsed is the day of the year ÷ days in the year, counting the date as complete: 278 ÷ 365 = 76.2%.
  • Quarters follow calendar months: January to March is Q1, and October to December is Q4. A fiscal year that starts in another month numbers its quarters differently.

Why some years have 53 paydays

A 365-day year contains 53 of the weekday it starts on, and a leap year 53 of each of its first two weekdays. 2026 starts on a Thursday, so it has 53 Thursdays, and a weekly payroll paid on Thursdays makes 53 payments that year.

2028 starts on a Saturday and has 366 days, so it has 53 Saturdays and 53 Sundays. A schedule that repeats every 52 weeks covers only 364 days, so it starts a day earlier in the calendar each year, or two days after a leap day.

For the number of weeks between two dates, use the date difference calculator. The day of the week calculator names the weekday of any date, and the leap year checker shows whether a year has 365 or 366 days.

Worked examples

1 January 2026 (a Thursday)

Date
2026-01-01
ISO week
1
ISO week-numbering year
2026
ISO week date
2026-W01-4
Day of the year
1
Days left in the year
364
Quarter
1
US week number (Sunday start)
1

Checked against: Independent calculation

1 January 2027 belongs to week 53 of 2026

Date
2027-01-01
ISO week
53
ISO week-numbering year
2026
ISO week date
2026-W53-5
Day of the year
1
Weeks in that ISO year
53

Checked against: Independent calculation

30 December 2024 is in week 1 of 2025

Date
2024-12-30
ISO week
1
ISO week-numbering year
2025
Day of the year
365
Days left in the year
1
Quarter
4
US week number (Sunday start)
53

Checked against: Independent calculation

Last day of a leap year

Date
2024-12-31
Day of the year
366
Days left in the year
0
Days in the year
366
Year elapsed
100.0%

Checked against: Independent calculation

Questions

How many weeks are there in a year?

52 or 53 ISO weeks. A year has 53 when it starts on a Thursday, or when it is a leap year starting on a Wednesday; that happens in 71 of every 400 years. 2020 and 2026 have 53 weeks, and the next are 2032 and 2037. 52 weeks cover only 364 days, so the spare day or two each year build up until a 53-week year absorbs them, usually 5 or 6 years apart.

Why do ISO and US week numbers differ?

They use different rules for the first week. ISO 8601 weeks start on Monday and week 1 contains the first Thursday of the year; Excel's ISOWEEKNUM follows this rule. The US convention, Excel's WEEKNUM with return type 1, starts weeks on Sunday and makes week 1 the week that contains 1 January, even if that week has only one day of the new year.

Can 1 January fall in week 52 or 53?

Yes, under ISO 8601 when 1 January is a Friday, Saturday or Sunday. 1 January 2027 is a Friday, so it belongs to week 53 of 2026 and ISO week 1 of 2027 starts on Monday 4 January. 1 January 2028 is a Saturday and falls in week 52 of 2027. In the other direction, 29 to 31 December can belong to week 1 of the next year.

Is the day of the year the same as the Julian date?

Only in informal use. In manufacturing and logistics a day-of-year code is often called a Julian date: 26 September 2026 is day 269, written 26269 in YYDDD form. Astronomers mean something else by Julian Day, a continuous count of days from 1 January 4713 BC in the Julian calendar; noon UTC on 26 September 2026 is Julian Day 2,461,310.

About this calculator

week=⌊day of year of that week’s Thursday−17⌋+1\text{week} = \left\lfloor \frac{\text{day of year of that week's Thursday} - 1}{7} \right\rfloor + 1

Sources

  1. ISO 8601-1:2019, §5.2.4 — week dates
  2. Microsoft Excel ISOWEEKNUM and WEEKNUM functions

Checked against references

This calculator includes 5 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.