The ISO 8601 week number of a Gregorian date is the count of complete Monday-to-Sunday weeks from the week that contains January 4, formatted as YYYY-Www where Monday is weekday 1 and Sunday is weekday 7. To find it, identify the Thursday inside the same week as your date, take that Thursday's calendar year as the ISO week-year, and count whole 7-day blocks from the Monday of week 1 to your date. ISO 8601 is the international standard for week-based date labels and is the convention used in EU government reporting, multinational manufacturing planning, financial market calendars, and software development wherever two parties need one unambiguous week reference. Unlike the calendar year, which always starts on January 1 regardless of weekday, the ISO week-year is anchored to weeks that always begin on Monday and always contain at least four days from the new calendar year. The Week Number Calculator applies these rules automatically so the YYYY-Www label you receive is consistent across New Year boundaries, ordinary 52-week years, and the rarer 53-week years.

how to calculate week number in a year
How to Calculate the Week Number of Any Date in a Year

What an ISO Week Number Actually Represents

The ISO week date system is defined by ISO 8601, the international standard for date and time formats. Each ISO week begins on Monday and ends on Sunday. Week 1 of a given ISO week-year is the week that contains January 4 — equivalently, the week containing the year's first Thursday. The week-year is determined by the Thursday inside the week rather than by the calendar date, which is why a date in early January can belong to the previous ISO week-year and a date in late December can belong to the next.

Under ISO 8601 the weekday numbers run from 1 (Monday) through 7 (Sunday). A full ISO date is written as YYYY-Www-D, where YYYY is the ISO week-year, W is a fixed letter, ww is the two-digit week number with a leading zero, and D is the weekday number. The Week Number Calculator returns the YYYY-Www portion along with the weekday number from 1 to 7, which is enough information to reconstruct the full ISO date whenever you need it.

Because every ISO week is exactly 7 days long and runs Monday through Sunday, an ISO week-year contains either 52 or 53 weeks. A year has 53 weeks only when January 1 is a Thursday or when it is a Wednesday in a leap year, which is when an extra Monday slips into the year's week count.

Find the ISO Week Number for Any Date

These four steps cover every normal lookup with the Week Number Calculator:

  1. Choose or enter a valid Gregorian date in YYYY-MM-DD form.
  2. Select Calculate ISO week.
  3. Read the returned YYYY-Www label, the weekday number (1 for Monday through 7 for Sunday), and the ISO week-year.
  4. Confirm the parser accepted the date — invalid inputs such as 2023-02-29 fail visibly rather than silently rolling over.

Running this single round-trip avoids the three mistakes that show up most often in manual calculations: treating Sunday as the first day of the week, assuming January 1 always opens week 1, and letting a browser timezone shift the date by a day before the calculation runs.

Why January 1 Can Belong to Last Year's Week 53

The ISO week-year follows Thursdays, not calendar-year boundaries. Because week 1 must contain January 4, the first ISO week of a year always includes at least four days from the new calendar year. When January 1 falls on a Friday, Saturday, or Sunday, the week containing it actually started in the previous calendar year, and the Thursday of that week falls in the previous calendar year as well — so the ISO week-year for that date is the previous year.

A concrete example: 2016-01-01 was a Friday. The Thursday of the same ISO week was 2015-12-31, so the ISO week-year for January 1, 2016 is 2015 and the label is 2015-W53. The same logic works in the other direction: 2024-12-30 was a Monday whose week contains the Thursday 2025-01-02, which makes it 2025-W01 even though the calendar year of the date itself is still 2024.

52-Week vs 53-Week Years

Most ISO week-years contain exactly 52 weeks, which is 364 days. Because a calendar year has 365 or 366 days, the leftover 1 or 2 days pile into a 53rd week in some years. The pattern is regular and follows the weekday of January 1:

January 1 weekdayCommon year (365 days)Leap year (366 days)
Monday52 weeks52 weeks
Tuesday52 weeks52 weeks
Wednesday52 weeks53 weeks
Thursday53 weeks53 weeks
Friday52 weeks52 weeks
Saturday52 weeks52 weeks
Sunday52 weeks52 weeks

Recent and upcoming 53-week years include 2015, 2020, 2026, and 2032. Knowing whether your target year is a 52- or 53-week year matters for planning reports that roll up by ISO week — if your year is a 53-week year, your report will have one extra W53 row at the end.

ISO 8601 vs Other Week-Numbering Conventions

The Week Number Calculator implements ISO 8601 only. Other systems in real-world use can return a different week number for the same date:

SystemWeek startsWeek 1 ruleUsed by
ISO 8601MondayContains January 4International standard, EU government, manufacturing
US Sunday-startSundayContains January 1US business calendars, media schedules
Excel WEEKNUM type 1SundayContains January 1Default Excel behavior
Excel WEEKNUM type 21MondayISO 8601Excel, matching ISO
Retail 4-4-5 fiscalSunday or variesFiscal calendarRetail merchandise planning

When two organizations exchange week numbers, the most common source of disagreement is exactly this: one party uses ISO 8601 and the other uses a Sunday-start or fiscal convention. At the edges of the year the same calendar date can be assigned to two different week numbers depending on which system is in play, with the difference usually being one week and occasionally two.

For payroll, tax filings, legal deadlines, fiscal reports, or any vendor API, confirm the exact week-numbering convention required by that system before sharing a week label. ISO 8601 is the safest choice when both parties have explicitly agreed on the standard — use the YYYY-Www label returned by the Week Number Calculator in standards-based filenames, sprint planning, weekly reporting, and software development contexts.

Boundary Cases the Tool Covers

The Week Number Calculator validates eight cross-year boundary fixtures that catch the most common mistakes in manual calculations. Three illustrative examples show the range of edge cases handled:

  • 2016-01-01 returns 2015-W53 — a Friday in early January that belongs to the previous ISO year.
  • 2021-01-04 returns 2021-W01 — the canonical anchor, a Monday that always opens ISO week 1.
  • 2024-12-30 returns 2025-W01 — a Monday in late December that belongs to the next ISO year.

The parser accepts only a strict YYYY-MM-DD value, validates the proleptic Gregorian date by round trip, and rejects impossible inputs such as 2023-02-29 visibly rather than silently rolling into a wrong answer. Every calculation runs locally with UTC arithmetic, so daylight-saving transitions and browser timezone settings cannot shift the selected date by one day.

To see how the rule applies by hand, follow 2024-12-30 step by step:

  1. The date 2024-12-30 is a Monday.
  2. The Thursday of that same ISO week is 2025-01-02.
  3. The ISO week-year is the year of that Thursday — 2025.
  4. January 1, 2025 is a Wednesday. The first ISO week of 2025 runs Monday 2024-12-30 through Sunday 2025-01-05, so 2024-12-30 is the first day of week 1.
  5. The resulting label is 2025-W01, with weekday 1 (Monday).

The Week Number Calculator returns this same label for 2024-12-30, which matches the answer any ISO-compliant formula would produce for the same date.

Calculating a week number in a year is straightforward once the ISO 8601 rules are clear: locate the Thursday in the same week, count whole Monday-to-Sunday weeks from week 1, and format the result as YYYY-Www. The Week Number Calculator handles the boundary cases for you so you don't have to memorize which years have 53 weeks or which direction the ISO year slips around January 1.

If you're weighing options, Calculate a Zodiac Sign by Name: Birth Date Matters covers this in detail.

If you're weighing options, How to Add Days to a Date for Beginners (Step-by-Step) covers this in detail.