Days in Month Calculator

Days in the month—
First day of the month—
Last day of the month—
Weeks in the month—

How Days in Month Calculator is calculated: 31 days: Jan, Mar, May, Jul, Aug, Oct, Dec; 30: Apr, Jun, Sep, Nov; Feb 28, or 29 in a leap year (divisible by 4, except centuries by 400).

What is a days in month calculator?

A days in month calculator tells you how many days a month has, which weekday it starts and ends on, and how many weeks it spans. Enter a month and a year, and it gives you the answer at once — the number of days in the month, the weekday it starts and ends on, and how many weeks it spans

People use it for far more than curiosity. Payroll clerks use it for monthly pay, teachers use it for planning, and anyone booking a holiday has needed to know how many days a month has — and whether it starts on a Monday.

The calculator runs in your browser and never sends your dates anywhere. There is no reason for a simple date calculation to collect personal information. Type the dates, read the answer, and close the page — nothing is stored.

How the days in a month is worked out

The calculation is a lookup with one rule. January, March, May, July, August, October, and December have 31 days; April, June, September, and November have 30; and February has 28 — or 29 in a leap year. The leap rule is the only moving part: a year is a leap year if it is divisible by 4, except centuries, which must be divisible by 400. The rhyme helps: 'Thirty days hath September, April, June, and November; all the rest have thirty-one, except February alone.' It is the oldest memory aid in the calendar, and it is right.

The days figure is the main one: 29 for the default. The first and last weekdays tell you how the month sits in the week, and the weeks figure tells you how much of a month it really is.

The calendar rules behind it are the real ones: months have their true lengths, February has 29 days in a leap year, and a year is a leap year if it divides by four — except centuries, which must divide by 400, so 2000 was a leap year but 1900 was not. The calculator applies those rules to the dates you give it, so you never have to count leap days by hand.

One detail is worth knowing: the gap between two dates is the difference, not the difference plus one. Counting from 1 January to 24 November gives 327 days, because the start day itself is not counted twice. People who count both the first and the last day add one day too many, and that extra day follows them into every figure the calculator shows.

February — the input that changes the answer

February is the only month whose length changes. In 2028, a leap year, it has 29 days; in 2027 it has 28. The calculator checks the year you enter, so the same month gives a different answer in different years — which is the whole point of asking for the year as well as the month.

The second input trap is the century rule. The year 2000 was a leap year, because it is divisible by 400, but 1900 was not, and 2100 will not be. A calculator that only checks divisibility by 4 gets the centuries wrong, and this one checks the full rule.

The third trap is the weekday. The first day of the month is not fixed — it moves by one weekday a month, or two after a 31-day month — so the same month starts on a different weekday every year. The calculator works it out from the calendar, not from a fixed table.

A worked example

First, the default on this page. February 2028: 29 days, because 2028 is a leap year. It starts on a Tuesday and ends on a Tuesday, and it spans 4.1 weeks. A leap February is the only month that starts and ends on the same weekday. February 2028 is the only month in the next few years that starts and ends on the same weekday, which is a small curiosity worth knowing.

Second, the same month in a common year: February 2027 has 28 days, starts on a Monday, and ends on a Sunday, spanning exactly 4 weeks. Twenty-eight days is four whole weeks, so the month starts on a Monday and ends on a Sunday.

Third, a long month: December 2026 has 31 days, starts on a Tuesday, and ends on a Thursday, spanning 4.4 weeks. December is one of the seven 31-day months, and it starts and ends two weekdays apart. December is the last month of the year, and it is one of the seven long months — which is why Christmas always feels as though it arrives quickly.

Why it matters, and who uses it

Payroll is the main use. Monthly pay is divided by the days in the month for a daily rate, and a month with 31 days pays a different daily rate than a month with 28. The calculator gives the day count, and the payroll system gives the rest. A daily rate is the monthly pay divided by the days in the month, and the divisor changes every month — which is why the same salary gives a different daily rate in February and in March.

Planning is the second use. A holiday that starts on a Monday and a month that starts on a Tuesday are different things, and the first and last weekdays tell you whether a month has a long weekend at the start, at the end, or in the middle.

Then there is the plain usefulness of an exact answer. Knowing that February 2028 has 29 days — and that it starts and ends on a Tuesday — is a small piece of knowledge that settles a whole month, and it is exact, not an estimate.

The answer is also easy to check, which is the point of showing the working. Pick a round case — a date exactly one year after the start, or a date on the same day of the month — and the years, months, and days should come out whole. If they do, the calculator is working; if they do not, the input date is the first thing to check.

Days in Month Calculator vs date difference calculator

These two tools start from the same dates and answer different questions. A date difference calculator counts the days between two dates. This calculator counts the days in one month — a length, not a gap between two dates. The difference is what is being counted: a gap, or a month. If the question is 'how many days between 1 February and 1 March', the date difference calculator is the tool; if the question is 'how many days does February 2028 have', this is the tool.

If the question is 'how many days does February 2028 have', use this calculator. If the question is 'how many days between 1 February and 1 March', use the date difference calculator instead. Use this calculator for the length of a month and the date difference calculator for gaps. If the question is which day of the year a date is, a day of year calculator gives the position in the year.

Both share the same calendar maths — real month lengths, leap years, and day counting that never rounds a month to 30 days. An age in days calculator counts the days since a birth date, which is the tool to use when the date is a birthday. And an add days calculator adds days to a date, which is the tool to use when you want a date a number of days from now.

Common mistakes

The first mistake is February. It has 28 days in a common year and 29 in a leap year, and the same month gives a different answer in different years. Forgetting the leap day is the most common error with this calculator.

Second: the century rule. The year 2000 was a leap year, but 1900 was not and 2100 will not be — divisibility by 4 alone is not enough. Third: the weeks — 29 days is 4.1 weeks, not 4, and no month is a whole number of weeks except a 28-day February.

Fourth: the last weekday. A 31-day month ends two weekdays after it starts, a 30-day month ends one weekday after, and a 29-day month ends on the same weekday. Counting the days by hand and getting the last weekday wrong by one is easy — which is why the calculator works it out. The calculator works it out from the calendar, so the last weekday is always right — but checking it by hand is a good habit, and the arithmetic is short.

How to use this days in month calculator

Using it takes seconds. Pick a month and a year — the default is February 2028. The results update live: the days in the month, the weekday it starts on, the weekday it ends on, and the weeks it spans. The results update live as you type or pick.

The days figure is the main one: 29 for the default. The first and last weekdays tell you how the month sits in the week, and the weeks figure tells you how much of a month it really is.

Everything runs in your browser, so the dates never leave your device. One practical tip: 'thirty days hath September, April, June, and November' — the old rhyme is right, and February is the only month that changes. If you are unsure, check the year first.

Frequently Asked Questions

29 days. The year 2028 is a leap year, so February has an extra day. It starts on a Tuesday and ends on a Tuesday, and it spans 4.1 weeks. In 2027, a common year, February has 28 days.

31 days. December is one of the seven 31-day months: January, March, May, July, August, October, and December. It starts on a Tuesday and ends on a Thursday, spanning 4.4 weeks.

Because of leap years. A year is a leap year if it is divisible by 4, except centuries, which must be divisible by 400 — so 2028 is a leap year, 2000 was, but 1900 was not and 2100 will not be. The extra day keeps the calendar in step with the seasons.

Tuesday. It also ends on a Tuesday, because 29 days is four weeks and one day — a leap February is the only month that starts and ends on the same weekday.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.