Days in a Month Calculator
Find the length of any month.
How the Days in a Month Calculator Works
The Days in a Month Calculator returns the number of calendar days in a chosen month and year: 28, 29, 30 or 31 days.
Enter the year
Enter the year. The year matters for February only.
Pick the month
Select the month from January to December.
Find the last date
The calculator finds day 0 of the next month, which equals the last day of the chosen month.
Read the day count
The result shows the month length, such as 31 days for January.
How the Count Is Calculated
The Days in a Month formula uses fixed lengths for 11 months and a leap-year rule for February.
31 days: Jan, Mar, May, Jul, Aug, Oct, Dec
30 days: Apr, Jun, Sep, Nov
Feb = 29 days, if the year is a leap year; otherwise 28 days- Leap year
- Divisible by 4, except century years not divisible by 400.
- 31-day months
- 7 months a year.
- 30-day months
- 4 months a year.
Example: February 2026 has 28 days. 2026 is not divisible by 4. February 2028 has 29 days.
Worked Examples
The table lists every month length with the equivalent weeks and hours.
| Month | Days | Weeks + days | Hours |
|---|---|---|---|
| January | 31 | 4 w 3 d | 744 |
| February (common) | 28 | 4 w 0 d | 672 |
| February (leap) | 29 | 4 w 1 d | 696 |
| March | 31 | 4 w 3 d | 744 |
| April | 30 | 4 w 2 d | 720 |
| May | 31 | 4 w 3 d | 744 |
| June | 30 | 4 w 2 d | 720 |
| July | 31 | 4 w 3 d | 744 |
| August | 31 | 4 w 3 d | 744 |
| September | 30 | 4 w 2 d | 720 |
| October | 31 | 4 w 3 d | 744 |
| November | 30 | 4 w 2 d | 720 |
| December | 31 | 4 w 3 d | 744 |
What the Tool Measures
A Days in a Month Calculator is a calendar tool that tells you how many days a given month holds.
Gregorian months hold 28 to 31 days. The 12 months add up to 365 days in a common year and 366 days in a leap year, for an average month of 30.44 days.
The "knuckle rule" works for memory: months on a knuckle (January, March, May, July, August, October, December) hold 31 days.
When to Use This Tool
There are 5 main uses of the Days in a Month Calculator, including rent proration and daily budgets.
Rent proration
Landlords divide monthly rent by the month length for partial months.
Daily budgets
Households split a monthly budget into a daily spending limit.
Data validation
Developers reject invalid dates such as 31 April.
Interest calculation
Banks use the actual month length for daily interest.
Habit trackers
Planners draw the right number of boxes for each month.