π Days in a Month Calculator
Find out exactly how many days any month has, what weekday it starts and ends on, and see the whole year at a glance.
How many days are in a month? The short answer is 30 or 31 for most months, 28 for February β and 29 in a leap year. This Days in a Month Calculator gives you the exact count for any month of any year, plus the weekday the month starts on and the weekday it ends on, so you can plan weekends, deadlines, and billing cycles without counting on your fingers.
Choose a month and a year and press Calculate: the tool instantly reports how many days that month holds, names the weekday of the first and last day, and shows a complete month-by-month overview of the whole year with the selected month highlighted. Every calculation runs locally in your browser β nothing you enter is ever sent to a server.
For example, select February 2028 and the tool shows 29 days, because 2028 is a leap year β the last February with 29 days before it before 2028 was 2024, and the next one is 2032. Select February 2027 and you get 28 days, with a note that the year is a common year. Pick any other month and the count is fixed: April, June, September, and November always have 30 days; the other seven months always have 31.
How Does the Calculation Work?
The rule is simple and has only one exception. Seven months always have 31 days β January, March, May, July, August, October, and December. Four months always have 30 days β April, June, September, and November. February is the exception: it has 28 days in a common year and 29 days in a leap year.
To decide whether February gets its extra day, the calculator applies the standard leap-year rule: a year is a leap year when it is divisible by 4 β except when it is divisible by 100, unless it is also divisible by 400. So 2024, 2028, and 2032 are leap years; 1900 and 2100 are not, even though they divide by 4; but 2000 was a leap year because it divides by 400. This is the same rule used by the Gregorian calendar that most of the world follows today.
For the weekday of the first and last day of the month, the calculator uses the calendar itself: it builds the date for the 1st of the chosen month and reads its weekday, then builds the date for the last day and reads that weekday. Because these are plain calendar facts, the results are always exact β there is no rounding, no approximation, and no dependence on your time zone or device clock.
Practical Examples
Planning a move or a lease that starts on March 1? March has 31 days, and in 2026 it starts on a Sunday and ends on a Tuesday β so you know exactly how many days of rent, utilities, or pro-rated salary to budget for. Need to schedule payroll at the end of a 30-day month? June 2026 has 30 days and ends on a Tuesday; knowing the final weekday makes it easy to spot weekend complications before they happen.
For project planning, the weekday information is often the most useful part. If you enter July 2026, the tool reports 31 days, starting on a Wednesday and ending on a Friday β meaning the month contains five full weekends. Combined with the Workdays Counter on this site, you can turn any month's length into a precise business-day figure for deadlines and sprint planning.
Edge Cases and Common Pitfalls
The classic pitfall is February in a leap year: it is the only month whose length changes, and the change is driven by the century rule, not just "divisible by 4". The year 2000 was a leap year; 1900 and 2100 are not. This calculator applies the full Gregorian rule, so February 2000 reports 29 days while February 1900 correctly reports 28.
Another common confusion is the rhyme "30 days hath September" β the mnemonic covers all months except February, and it is easy to misremember which months belong to the 30-day group. The four are fixed: April, June, September, and November. Everything else except February has 31.
Finally, note that the month length is a property of the calendar, not of any time zone: the same month has the same number of days everywhere on Earth. The weekday of the first and last day is also identical worldwide β only the current date and time in your area change, and those are not part of this calculation. For questions about the total days in a whole year or the position of a date within it, see the Day of the Year tool.
A Month by Month Overview
Here is the full pattern for a common year: January 31, February 28, March 31, April 30, May 31, June 30, July 31, August 31, September 30, October 31, November 30, and December 31 β 365 days in total. In a leap year, February becomes 29 days and the year totals 366. The tool reproduces this exact table for any year you enter and highlights the month you selected, so you can compare adjacent months or verify a whole billing year at a glance.
This overview is especially handy for annual planning: subscription renewals, insurance payments, and salary calculations all depend on knowing which months have 30 vs. 31 days, and whether February in a given year is the 28- or 29-day version. One click gives you the complete picture without any mental arithmetic.
Try also:
Frequently Asked Questions
π Zet deze tool gratis op jouw site Β· vrije widget, geen registratie