Days in a Month Calculator

Choose a month and a year to see how many days that month has, with February handled correctly for leap years.

A year from 1 to 9999

Calculated in your browser. Nothing you enter is sent to a server.

Result

Choose a month and year to see how many days it has.

Understanding the result

The result is the number of days in the chosen month of the chosen year. For February the tool also states whether the year is a leap year and what the length would be in the other kind of year.

How many days does each month have?

Seven months have 31 days (January, March, May, July, August, October and December), four have 30 (April, June, September and November) and February has 28 or 29.

The rhyme "thirty days hath September, April, June and November" covers the 30-day months. February is the only one that varies from year to year.

How it works

The tool looks up the month's standard length and, for February, checks the Gregorian leap-year rule for the year: divisible by 4, except century years not divisible by 400.

Examples

February 2024

29 days. 2024 is a leap year.

February 2023 and February 1900

Both have 28 days. 2023 is not divisible by 4, and 1900 is a century year that is not divisible by 400.

February 2000

29 days: 2000 is divisible by 400, so it is a leap year despite being a century year.

Things to keep in mind

  • The Gregorian calendar is used for all years, including before 1582.
  • To see the whole month laid out with weeks, open the Calendar tool. To find the first and last day of a month, use Start and End of Period.
  • February is the only month whose length changes, so a date such as 29 February exists only in leap years. Tools that add months to a date deal with this by moving to the last day of a shorter month.

Frequently asked questions

How many days are in February?

28 in a common year and 29 in a leap year.

Which months have 31 days?

January, March, May, July, August, October and December.

Which months have 30 days?

April, June, September and November.

Is there an easy way to remember month lengths?

Make a fist and count the months across your knuckles and the gaps between them, starting with January on the first knuckle. Every month that lands on a knuckle has 31 days; every month that lands in a gap has fewer.