Days in a Month Calculator
Find the number of days in a selected month and year, including leap-year February.
Month lengths in 2026
2026 is not a leap year, so February has 28 days. The highlighted bar is your selected month. Bars start at zero days.
About this calculation
Days in a Month: find month length from year, month number. Month length is a calendar fact determined by the chosen month and whether its year is a leap year.
Formula
Month length = number of calendar days in the selected month
Worked example
With Year: 2026, Month number: 10, month length is 31 days.
Calculation method
The rule is Month length = number of calendar days in the selected month.
Reading month length
Most months have 30 or 31 days. February has 28 in an ordinary year and 29 in a leap year. In the worked values on this page, year 2026, month number 10 produce month length 31 days.
Practical use
Use the result to check monthly schedules, billing periods, or date arithmetic. The specific task here is to find month length from year, month number.
Limits and common mistakes
A leap year is usually divisible by four, except century years must also be divisible by 400. Do not assume every February has the same length. Verify year before interpreting month length; a value measured on another basis would answer a different question.
Read the example and units
The worked values on this page use year 2026 and month number 10. With those exact entries, the calculator reports month length 31 days. The output follows this page’s specific calendar or elapsed-time convention; another convention can produce a different answer from the same dates or clock readings. Calendar counts depend on the exact dates and the rule for including endpoints, complete months, weekdays, or week numbering. A date is not a fixed number of seconds in a local time zone. Read the named output carefully before comparing it with a different date-counting convention.
Compare one changed input
For a second scenario, change only month number 10 to month number 11 and leave the other example entries alone. The result for month length changes from 31 days to 30 days. Comparing one changed input at a time shows exactly which assumption drove the difference in this calculation. A calendar answer can change in discrete steps at a day, month, year, or ISO week boundary. Try a value near the boundary relevant to your question and check whether the start or end date is included.
How to interpret this kind of result
Month length is determined by the selected month and year. January, March, May, July, August, October, and December have 31 days; April, June, September, and November have 30. February has 28 days in a common year and 29 in a leap year. The year field matters to February in particular. For this days in a month calculation, year and month number determine month length; the displayed month length 31 days belongs to that exact combination rather than to a different rate, term, or measurement basis.
Scope and practical checks
A leap year is generally divisible by four, except a century year must also be divisible by 400. This calendar rule is about the Gregorian calendar used by the tool. It does not say how many workdays, school days, or scheduled shifts fall within the month; those require separate rules and dates. Check the year and month number entries against the quantities in your own situation before using month length; this page cannot infer a field or condition that you did not enter.
Common questions
What does this days in a month result include?
The month length comes from year and month number using the displayed rule Month length = number of calendar days in the selected month. It does not automatically include a condition absent from the listed inputs. Check the stated rule for calendar boundaries, weekends, time zones, or elapsed time before applying a deadline.
Inputs
- Year
- Month number