Week Number Calculator

Find the week number of any date, or the dates of any week. The calculator gives the ISO 8601 week used in Europe and in most business calendars, and the US week number that starts on Sunday.

Pick a date.

How DateMath numbers weeks

DateMath gives two week numbers for every date: the ISO 8601 week, which starts on Monday with week 1 holding the year's first Thursday, and the US week, which starts on Sunday with week 1 holding January 1. Near New Year the ISO week-year can differ from the calendar year, and DateMath shows which year the week belongs to.

It follows ISO 8601 week dates and the Gregorian calendar. Their rules and sources, and how DateMath tests its results, are on the About page.

Date to week, week to dates

The date field opens on today, so the current week number shows straight away, with that week’s Monday and Sunday, the US week number and the day of the year. “Dates of a week” works the other way: week 1 of 2027 runs from Monday, January 4, 2027 to Sunday, January 10, 2027, and a week the year does not have, such as week 53 of 2027, gets a note that the year has only 52 weeks, instead of a guess.

How ISO week numbers work

ISO 8601, the international date standard, numbers weeks with three rules:

  1. Every week runs from Monday to Sunday.
  2. Week 1 is the week that contains the year’s first Thursday. That is the same as the week with January 4 in it, or the first week with at least four days in the new year.
  3. The weeks are numbered on from there, with no partial weeks, until the next year’s week 1.

Because weeks are never split, the ISO year does not start on January 1. Week 1 starts on the Monday between December 29 and January 4, so two edge cases follow:

  • January 1 to 3 can be in the previous year. When the year starts on a Friday, Saturday or Sunday, those days belong to the last week of the year before. January 1, 2027 is a Friday, so it falls in week 53 of 2026.
  • December 29 to 31 can be in the next year. When December 31 is a Monday, Tuesday or Wednesday, the last days of December belong to week 1 of the next year. December 31, 2029 is a Monday, so it falls in week 1 of 2030.

Every ISO week has exactly one Thursday, and the week takes the number and the year of that Thursday. This is the rule DateMath uses, and it is also the quickest way to work a week out by hand.

How to calculate the ISO week number by hand

Use the Thursday rule. Take Monday, March 15, 2027:

  1. Find the Thursday of the date’s Monday-to-Sunday week. March 15, 2027 is a Monday, so the Thursday is March 18, 2027.
  2. The Thursday’s year is the ISO year: 2027.
  3. Find the Thursday’s day of the year: 77.
  4. Subtract 1, divide by 7 and drop the fraction: (77 − 1) ÷ 7 = 10.86, so 10.
  5. Add 1. March 15, 2027 is in ISO week 11 of 2027.

Near New Year

The same steps handle the edge cases on their own. January 1, 2027 is a Friday; its Thursday is December 31, 2026, day 365 of 2026, so the date is in week 53 of 2026. December 31, 2029 is a Monday; its Thursday is January 3, 2030, day 3 of 2030, so the date is in week 1 of 2030.

The formula version

Without finding the Thursday: week = ⌊(day of the year − weekday + 10) ÷ 7⌋, with the weekday counted from 1 for Monday to 7 for Sunday. For March 15, 2027: (74 − 1 + 10) ÷ 7, rounded down, is 11. Two results need a correction:

  • 0 means the last week of the year before. For January 1, 2027 the formula gives 0, and 2026 has 53 weeks, so it is week 53 of 2026.
  • A number above the year’s week count means week 1 of the next year. For December 31, 2029 the formula gives 53, but 2029 has only 52 weeks, so it is week 1 of 2030.

ISO week date notation

ISO 8601 also writes a day as its week-year, week and weekday: YYYY-Www-D, with the week padded to two digits and the day running from 1 for Monday to 7 for Sunday. The compact form drops the hyphens, and a whole week is written without the day.

ISO week dates, worked out with the calculator's rules
DateISO week dateCompact
Monday, January 4, 20272027-W01-12027W011
Friday, January 1, 20272026-W53-52026W535
Monday, December 31, 20292030-W01-12030W011
Monday, March 15, 20272027-W11-12027W111

So 2027-W01-1 is Monday, January 4, 2027, the first day of ISO week 2027-W01. The year in the notation is the ISO week-year, which is why January 1, 2027 is written 2026-W53-5. To write any date this way, read the week and year from the calculator and add the weekday number.

ISO week vs US week

The calculator shows both numbers because they are not interchangeable. ISO weeks are the international standard; the US system is the default of Excel’s WEEKNUM function.

ISO 8601 weekUS week
Weeks start onMondaySunday
Week 1The week with the year's first Thursday and January 4The week with January 1
January 1 is inWeek 1, or the last week of the year beforeAlways week 1
First and last weekAlways 7 daysOften shorter than 7 days
Week numbers per year52 or 5353 or 54
In ExcelISOWEEKNUM, or WEEKNUM(date, 21)WEEKNUM(date)

Away from the turn of the year, the gap follows a pattern. In years that start on Sunday to Thursday the two numbers match from Monday to Saturday, and the US number is one higher on Sundays. In years that start on a Friday or Saturday the US number is one higher from Monday to Saturday and two higher on Sundays. 2027 starts on a Friday: July 1, 2027 is ISO week 26 and US week 27, and July 4, 2027 is ISO week 26 and US week 28.

Because the US system counts partial weeks, its last week number can be higher than any ISO week. In 2028, a leap year that starts on a Saturday, December 31 is in US week 54.

How many weeks are in a year?

A year is 52 weeks and 1 day, or 52 weeks and 2 days in a leap year. Week numbering rounds that to whole weeks, so an ISO year has 52 or 53 weeks. A year has week 53 when it has 53 Thursdays: when January 1 is a Thursday, or when it is a leap year and January 1 is a Wednesday. Over the 400-year cycle of the Gregorian calendar, 71 years have 53 weeks, an average of 52.1775 weeks a year.

Leap years matter only through the weekday. 2020 was a leap year that started on a Wednesday, so it had 53 weeks. 2024 was a leap year too, but it started on a Monday and had 52. From 2020 to 2035, the years with week 53 are 2020, 2026, and 2032.

ISO weeks per year, 2020–2035, with the last US week number
YearJanuary 1Leap yearISO weeksLast US week
2020WednesdayYes53 (long year)53
2021FridayNo5253
2022SaturdayNo5253
2023SundayNo5253
2024MondayYes5253
2025WednesdayNo5253
2026ThursdayNo53 (long year)53
2027FridayNo5253
2028SaturdayYes5254
2029MondayNo5253
2030TuesdayNo5253
2031WednesdayNo5253
2032ThursdayYes53 (long year)53
2033SaturdayNo5253
2034SundayNo5253
2035MondayNo5253

When does week 1 start?

ISO week 1 starts on the Monday closest to January 1, which can be in the old year. January 1 itself is in week 1 only when it falls on a Monday to Thursday; the US system always puts it in week 1.

January 1 and the dates of ISO week 1
YearJanuary 1ISO week of January 1US weekISO week 1
2025WednesdayWeek 1 of 2025Week 1December 30, 2024 – January 5, 2025
2026ThursdayWeek 1 of 2026Week 1December 29, 2025 – January 4, 2026
2027FridayWeek 53 of 2026Week 1January 4, 2027 – January 10, 2027
2028SaturdayWeek 52 of 2027Week 1January 3, 2028 – January 9, 2028
2029MondayWeek 1 of 2029Week 1January 1, 2029 – January 7, 2029
2030TuesdayWeek 1 of 2030Week 1December 31, 2029 – January 6, 2030
2031WednesdayWeek 1 of 2031Week 1December 30, 2030 – January 5, 2031
2032ThursdayWeek 1 of 2032Week 1December 29, 2031 – January 4, 2032

2025 has 52 ISO weeks, with week 1 from Monday, December 30, 2024. 2026 has 53, the last one ending on Sunday, January 3, 2027. For a whole year with the week number on every row, open the printable calendar and start weeks on Monday.

Week numbers of 2027

2027 has 52 ISO weeks. Week 1 starts on Monday, January 4, 2027; the days before it belong to week 53 of 2026. Each week below runs from Monday to Sunday.

ISO week numbers of 2027
WeekMondaySunday
Week 1January 4, 2027January 10, 2027
Week 2January 11, 2027January 17, 2027
Week 3January 18, 2027January 24, 2027
Week 4January 25, 2027January 31, 2027
Week 5February 1, 2027February 7, 2027
Week 6February 8, 2027February 14, 2027
Week 7February 15, 2027February 21, 2027
Week 8February 22, 2027February 28, 2027
Week 9March 1, 2027March 7, 2027
Week 10March 8, 2027March 14, 2027
Week 11March 15, 2027March 21, 2027
Week 12March 22, 2027March 28, 2027
Week 13March 29, 2027April 4, 2027
Week 14April 5, 2027April 11, 2027
Week 15April 12, 2027April 18, 2027
Week 16April 19, 2027April 25, 2027
Week 17April 26, 2027May 2, 2027
Week 18May 3, 2027May 9, 2027
Week 19May 10, 2027May 16, 2027
Week 20May 17, 2027May 23, 2027
Week 21May 24, 2027May 30, 2027
Week 22May 31, 2027June 6, 2027
Week 23June 7, 2027June 13, 2027
Week 24June 14, 2027June 20, 2027
Week 25June 21, 2027June 27, 2027
Week 26June 28, 2027July 4, 2027
Week 27July 5, 2027July 11, 2027
Week 28July 12, 2027July 18, 2027
Week 29July 19, 2027July 25, 2027
Week 30July 26, 2027August 1, 2027
Week 31August 2, 2027August 8, 2027
Week 32August 9, 2027August 15, 2027
Week 33August 16, 2027August 22, 2027
Week 34August 23, 2027August 29, 2027
Week 35August 30, 2027September 5, 2027
Week 36September 6, 2027September 12, 2027
Week 37September 13, 2027September 19, 2027
Week 38September 20, 2027September 26, 2027
Week 39September 27, 2027October 3, 2027
Week 40October 4, 2027October 10, 2027
Week 41October 11, 2027October 17, 2027
Week 42October 18, 2027October 24, 2027
Week 43October 25, 2027October 31, 2027
Week 44November 1, 2027November 7, 2027
Week 45November 8, 2027November 14, 2027
Week 46November 15, 2027November 21, 2027
Week 47November 22, 2027November 28, 2027
Week 48November 29, 2027December 5, 2027
Week 49December 6, 2027December 12, 2027
Week 50December 13, 2027December 19, 2027
Week 51December 20, 2027December 26, 2027
Week 52December 27, 2027January 2, 2028

Week numbers by month

To find the week from a month and a day, look up the month, then use the calculator for the exact date. A year in brackets means the week belongs to another ISO year.

The weeks each month of 2027 touches
MonthISO weeksUS weeks
January53 (2026) to 41 to 6
February5 to 86 to 10
March9 to 1310 to 14
April13 to 1714 to 18
May17 to 2218 to 23
June22 to 2623 to 27
July26 to 3027 to 31
August30 to 3532 to 36
September35 to 3936 to 40
October39 to 4340 to 45
November44 to 4845 to 49
December48 to 5249 to 53

Week numbers in Excel, Google Sheets, Python and SQL

Excel and Google Sheets

  • =ISOWEEKNUM(A1) returns the ISO week. For January 1, 2027 it returns 53.
  • =WEEKNUM(A1) returns the US week (Sunday start, January 1 in week 1); for January 1, 2027 it returns 1. =WEEKNUM(A1, 21) returns the ISO week, while =WEEKNUM(A1, 2) starts weeks on Monday but still puts January 1 in week 1, so it is not ISO.
  • =YEAR(A1-WEEKDAY(A1,2)+4) returns the ISO year, the year of the week’s Thursday: 2026 for January 1, 2027.
  • =DATE(Y,1,4)-WEEKDAY(DATE(Y,1,4),2)+1+7*(W-1) returns the Monday of ISO week W of year Y: January 4, 2027 for week 1 of 2027.

In Python, date.isocalendar() gives the ISO year, week and weekday; in SQL Server, DATEPART(ISO_WEEK, d). To add weeks to a date or count the weeks between two dates, use the date calculator.

Frequently asked questions

What week number is it?
The calculator opens on today's date from your device and shows its ISO week number, the Monday and Sunday of that week, and the US week number. ISO weeks start on Monday, and week 1 is the week that contains the year's first Thursday.
What is the difference between ISO and US week numbers?
ISO 8601 weeks start on Monday and week 1 is the week with the first Thursday of the year, so January 1 to 3 can belong to the last week of the previous year. US week numbering starts weeks on Sunday and always puts January 1 in week 1. The two numbers can differ by one or two.
How many weeks are in a year?
52 weeks and 1 day, or 52 weeks and 2 days in a leap year. In whole weeks, an ISO year has 52 or 53, and 71 of every 400 years have 53. The US system counts partial weeks, so its numbers run to week 53, or 54 in a leap year that starts on a Saturday.
Which years have 53 weeks?
In the ISO system, years that start on a Thursday and leap years that start on a Wednesday. Between 2020 and 2040 these are 2020, 2026, 2032 and 2037.
Why is January 1 sometimes in week 52 or 53?
Because ISO week 1 is the week with the year's first Thursday. When January 1 falls on a Friday, Saturday or Sunday, it belongs to the last week of the year before: January 1, 2027, a Friday, is in week 53 of 2026.
Can late December be in week 1 of the next year?
Yes. When December 31 is a Monday, Tuesday or Wednesday, the last days of December belong to week 1 of the next year: December 31, 2029, a Monday, is in week 1 of 2030.
How do I find the dates of a week number?
Open "Dates of a week", then enter the ISO year and the week number; the calculator shows the Monday the week starts on and the Sunday it ends on. Week 1 always starts on the Monday between December 29 and January 4; in 2027 that is Monday, January 4.
What does 2027-W01-1 mean?
It is an ISO 8601 week date: ISO year 2027, week 01, day 1, which is Monday, January 4, 2027. Days run from 1 for Monday to 7 for Sunday, and the year is the ISO week-year, which can differ from the calendar year near New Year.
What is the day of the year?
The date's position in the year, from 1 on January 1 to 365 on December 31, or 366 in a leap year. The calculator shows it under the week numbers.
Which week number does Excel use?
Excel's WEEKNUM function uses the US system by default (Sunday start, week 1 contains January 1); ISOWEEKNUM, or WEEKNUM with 21 as the second argument, returns the ISO 8601 week. This calculator shows both.