How many days are in a month?
Pick a month and year to see exactly how many days it has, whether the year is a leap year, and which weekdays the month begins and ends on. It is handy for planning rotas, payroll periods, rent calculations and anyone who needs a quick, accurate month length.
How it works
The tool asks the calendar for the last day of the chosen month — internally, day 0 of the following month, which is the final day of the month you picked. That value is 28, 29, 30 or 31. It also checks whether the year is a leap year (divisible by 4, except century years which must be divisible by 400) and reports the weekday of the first and last day of the month.
Only February changes length: 29 days in a leap year, 28 otherwise. The other eleven months are fixed.
Month lengths at a glance
| Month | Days | Always fixed? |
|---|---|---|
| January | 31 | Yes |
| February | 28 or 29 | No — depends on leap year |
| March | 31 | Yes |
| April | 30 | Yes |
| May | 31 | Yes |
| June | 30 | Yes |
| July | 31 | Yes |
| August | 31 | Yes |
| September | 30 | Yes |
| October | 31 | Yes |
| November | 30 | Yes |
| December | 31 | Yes |
Leap year rule in full
A year is a leap year — giving February 29 days — when:
- It is divisible by 4, and
- If it is a century year (divisible by 100), it must also be divisible by 400.
So 2000 was a leap year (divisible by 400), but 1900 was not (divisible by 100 but not 400). The next century-year exception after 2000 is 2100, which will be a common year.
Practical uses
Payroll and billing. Some pay periods are calendar-monthly, so the number of working days varies. Knowing that February has only 28 or 29 days versus 31 in longer months matters for prorating salaries, contractor invoices, and SLA calculations.
Rota and shift planning. A nurse planner or a manager building a monthly rota needs to know whether the month has four or five weekends, which depends on which day it starts and how many days it has. The starting and ending weekday the tool reports helps answer this instantly.
Rent and interest proration. Rent is often prorated when a tenant moves in mid-month: (daily rate × days remaining) = (monthly rent ÷ days in month) × days remaining. The days-in-month figure is the key input to that calculation.
Worked example. For February 2024 (a leap year):
- Days: 29
- First day: Thursday
- Last day: Thursday
- Leap year: Yes
A rota covering the whole month therefore has exactly 5 Thursdays and 4 of every other weekday. This happens only when February has 29 days and starts on a Thursday.
Everything is calculated locally in your browser.