Week Number Calculator (ISO 8601)

See the current week number, convert any date to its ISO week (2026-W40) and back, and list every week of the year with its dates.

Loading tool…

About the Week Number

ISO 8601 defines the week numbering used in most of Europe and Asia and in business software worldwide: weeks start on Monday, and week 1 is the week that contains the first Thursday of the year — equivalently, the week that contains 4 January. A week therefore always has seven days and belongs to exactly one year, but that year is not always the calendar year of the date: 1 January 2027 is a Friday and falls in week 53 of 2026, written 2026-W53-5, while 30 December 2024 is already in 2025-W01. The year of the week is called the ISO week-year.

Most years have 52 ISO weeks. A year has 53 when it starts on a Thursday, or on a Wednesday in a leap year — 2020, 2026 and 2032 are such long years, 71 out of every 400. The United States and Canada usually count differently: weeks start on Sunday and week 1 is simply the week that contains 1 January, so the first and the last week of the year can be shorter than seven days. In much of the Middle East the same rule is used with Saturday as the first day. The calculator shows all three, matching the results of ISOWEEKNUM and WEEKNUM in Excel.

All arithmetic is done on calendar dates in UTC, so no daylight-saving change or time zone can move a date into the neighbouring week. When you write the code yourself, use the function that is explicitly ISO: date.isocalendar() in Python, date("W") with date("o") for the year in PHP, EXTRACT(WEEK FROM d) in PostgreSQL and WEEK(d, 3) in MySQL. Pairing the ISO week with the calendar year (%Y instead of %G) is the classic bug that shows up only in the last days of December and the first days of January.

How to use it

  1. Pick a date — the calculator starts with today.
  2. Read the ISO week, the ISO week date, the US and Middle East week, the day of the year and the quarter.
  3. To go the other way, enter a year and a week number to get the Monday and Sunday of that week.
  4. Scroll the table to see all 52 or 53 weeks of the year; the selected week is highlighted.
  5. Copy the snippet for your language to compute the ISO week in your own code.

Frequently asked questions

How is the ISO week number calculated?
Take the Thursday of the week that the date is in. The year of that Thursday is the ISO week-year, and the week number is the number of Thursdays in that year up to and including it — (day of the year of that Thursday − 1) ÷ 7, rounded down, plus 1.
Which years have 53 weeks?
Years that start on a Thursday, and leap years that start on a Wednesday. Recent and coming ones are 2015, 2020, 2026, 2032 and 2037. In those years 31 December is in week 53.
Why is my week number different from the one in the US?
The US system starts weeks on Sunday and makes the week of 1 January week 1, while ISO 8601 starts on Monday and needs at least four days of the new year in week 1. Depending on the year the two numbers are equal or differ by one.
Can 1 January be in week 52 or 53?
Yes. When 1 January is a Friday, Saturday or Sunday it belongs to the last ISO week of the previous year: 1 January 2027 is in 2026-W53 and 1 January 2028 is in 2027-W52.

Related tools