What this calculator does
The Nth Weekday of the Month Calculator finds the exact calendar date of a recurring weekday rule such as "the 3rd Monday of January" or "the 1st Friday of December." These rules are everywhere: US federal holidays (Thanksgiving is the 4th Thursday of November), monthly meetings, payroll dates, options-expiration Fridays, and scheduled bills. Instead of counting boxes on a calendar, you simply choose the year, month, occurrence, and weekday, and the tool returns the day of the month.
How to use it
Pick the year and month, choose which occurrence you want (1st through 5th), and select the weekday. The calculator returns the matching day of the month. It also tells you whether that occurrence actually exists — a 5th weekday only happens in some months — and shows the day of the first matching weekday so you can see the whole series (add 7 for each later occurrence).
The formula explained
First we determine the weekday of the 1st of the month, called f (1 = Sunday through 7 = Saturday). To reach the first occurrence of the target weekday w, we add an offset of \((w - f + 7) \bmod 7\) days. Each additional occurrence is exactly 7 days later, so the nth occurrence lands on:
$$\text{day} = 1 + \big((w - f + 7)\bmod 7\big) + (n - 1) \times 7$$
If this value exceeds the number of days in the month, that occurrence does not exist (for example, there is no 5th Tuesday in a month where Tuesdays fall on the 1st, 8th, 15th, 22nd, and 29th only when the month has at least 29 days).
Worked example
Find the 3rd Monday of January 2024. January 1, 2024 is a Monday, so \(f = 2\) and \(w = 2\). The offset is \((2 - 2 + 7) \bmod 7 = 0\), so the first Monday is the 1st. The 3rd Monday is $$1 + 0 + (3 - 1) \times 7 = \mathbf{15}.$$ So the date is January 15, 2024 — which was indeed Martin Luther King Jr. Day.
Common Holidays and Events Defined by an Nth Weekday Rule
Many public holidays in the United States are set as the Nth occurrence of a weekday in a given month rather than on a fixed date. The table lists the most common ones.
| Event | Rule | Month |
|---|---|---|
| Martin Luther King Jr. Day | 3rd Monday | January |
| Presidents' Day | 3rd Monday | February |
| Mother's Day | 2nd Sunday | May |
| Father's Day | 3rd Sunday | June |
| Labor Day | 1st Monday | September |
| Columbus Day / Indigenous Peoples' Day | 2nd Monday | October |
| Thanksgiving | 4th Thursday | November |
Note: Memorial Day is the last Monday of May. That is a "last weekday" rule, not a fixed Nth rule, because the last Monday can be the 4th or the 5th Monday depending on the year.
Note: These rules are United States conventions. Other countries use different rules and dates for similar holidays (for example, Mother's Day falls on different dates in many countries).
More Worked Examples
Weekdays are numbered 1 = Sunday through 7 = Saturday. The formula is \(\text{Day} = 1 + ((w - d_1 + 7) \bmod 7) + 7(n-1)\), where \(w\) is the target weekday, \(d_1\) is the weekday of the 1st of the month and \(n\) is the occurrence number. The result is valid only if it does not exceed the number of days in the month.
Example 1: Thanksgiving 2024 (4th Thursday of November)
November 1, 2024 is a Friday, so \(d_1 = 6\). Thursday gives \(w = 5\).
Offset: \((5 - 6 + 7) \bmod 7 = 6\), so the first Thursday is the 1 + 6 = 7th.
The 4th Thursday is \(7 + 7 \times 3 = 28\), which gives November 28, 2024.
Example 2: 5th Friday of February 2024
February 1, 2024 is a Thursday, so \(d_1 = 5\). Friday gives \(w = 6\).
Offset: \((6 - 5 + 7) \bmod 7 = 1\), so the first Friday is the 2nd.
The 5th Friday would be \(2 + 7 \times 4 = 30\). February 2024 has only 29 days because 2024 is a leap year, so 30 exceeds the month length and this date does not exist.
Example 3: 5th Friday of March 2024
March 1, 2024 is a Friday, so \(d_1 = 6\) and \(w = 6\).
Offset: \((6 - 6 + 7) \bmod 7 = 0\), so the first Friday is the 1st.
The 5th Friday is \(1 + 7 \times 4 = \)29. Since March has 31 days, March 29, 2024 is valid.
FAQ
What weekday numbering is used? Sunday = 1 through Saturday = 7, the same as the input dropdown.
Why does it say the occurrence does not exist? Some months only have four of a given weekday. If you ask for the 5th and there are only four, the calculated day exceeds the month length and is flagged as not existing.
Can I find the last weekday of a month? Choose the 5th occurrence first; if it exists it is the last one, otherwise the 4th occurrence is the last.