Days in Month Calculator
Find how many days are in any month of any year including February in leap years. Enter values for instant results with step-by-step formulas.
Formula
Days = Calendar lookup with leap year check: (Y%4=0 AND Y%100!=0) OR Y%400=0
Each month has a fixed number of days except February, which has 28 in common years and 29 in leap years. A leap year occurs when the year is divisible by 4 but not by 100, unless also divisible by 400. The calculator also computes weekday and weekend counts based on the starting day of the month.
Worked Examples
Example 1: February in a Leap Year
Problem: How many days are in February 2024?
Solution: Check leap year: 2024 / 4 = 506 (divisible by 4). 2024 is not a century year, so no further checks needed. 2024 IS a leap year. Therefore February 2024 has 29 days.\nWeekdays: February 1 is Thursday. 29 days = 4 full weeks + 1 day. Weekdays: 21, Weekend days: 8.
Result: February 2024 has 29 days (leap year) | 21 weekdays, 8 weekend days
Example 2: Planning for a 31-Day Month
Problem: How many weekdays are in October 2026?
Solution: October always has 31 days. October 1, 2026 is a Thursday.\nWeek 1: Thu-Fri (2 weekdays) + Sat-Sun (2 weekend)\nWeeks 2-5: 4 full weeks = 20 weekdays + 8 weekend\nRemaining: Oct 30 Fri (1 weekday), Oct 31 Sat (1 weekend)\nTotal weekdays: 2 + 20 + 1 = 22. Weekend days: 2 + 8 + 1 = 9.
Result: October 2026 has 31 days | 22 weekdays, 9 weekend days
Frequently Asked Questions
How many days are in each month of the year?
The twelve months of the Gregorian calendar have the following day counts: January has 31 days, February has 28 (or 29 in a leap year), March has 31, April has 30, May has 31, June has 30, July has 31, August has 31, September has 30, October has 31, November has 30, and December has 31. A common mnemonic is the knuckle method: make a fist and count across your knuckles and the valleys between them starting from January. Knuckles represent 31-day months, valleys represent 30-day months (except February). Seven months have 31 days, four months have 30 days, and February has either 28 or 29 days.
Why does February have fewer days than other months?
February has fewer days due to the ancient Roman calendar system. The original Roman calendar created by Romulus had only 10 months starting in March, and the winter period was not assigned to any month. King Numa Pompilius added January and February around 713 BC, but the year only had 355 days. February was the last month added and received the fewest days. When Julius Caesar reformed the calendar in 46 BC to create the Julian calendar with 365 days, he could have distributed the extra 10 days evenly, but he chose to add them to various months while leaving February short. Augustus Caesar later took a day from February to add to August, his namesake month, leaving February with just 28 days in common years.
How can I remember how many days are in each month?
There are several popular mnemonics for remembering month lengths. The knuckle method is the most reliable: hold your fists together and count across the knuckles and valleys, starting from your left pinky knuckle as January. Every knuckle represents a 31-day month, every valley between knuckles represents a 30-day month (except February). The traditional rhyme works too: Thirty days hath September, April, June, and November. All the rest have thirty-one, except February alone, which has twenty-eight days clear, and twenty-nine in each leap year. A simpler modern approach is to remember that months alternate between 31 and 30 days with two exceptions: February is short, and July-August are consecutive 31-day months.
Why do some months have 31 days and others have 30?
The uneven distribution of days across months is a historical artifact of Roman calendar politics rather than any astronomical necessity. The original Julian calendar alternated between 31 and 30 days, with February getting 29 (30 in leap years). However, when the Roman Senate named the eighth month after Augustus Caesar, they took a day from February and added it to August so that Augustus would not have fewer days than July (named after Julius Caesar). They then adjusted September through December to maintain a reasonable distribution, breaking the clean alternating pattern. This is why July and August are consecutive months with 31 days each, and why September through December alternate in the opposite pattern from what you might expect.
How do different calendar systems handle month lengths?
Different calendar systems take remarkably different approaches to organizing months. The Islamic (Hijri) calendar uses 12 lunar months alternating between 29 and 30 days, making each year about 354 days. The Hebrew calendar uses a similar lunar approach but adds a 13th month seven times in every 19-year cycle to stay aligned with the solar year. The Persian (Solar Hijri) calendar has six consecutive 31-day months, five consecutive 30-day months, and one month with 29 or 30 days. The Chinese calendar is lunisolar with months beginning at each new moon, alternating between 29 and 30 days. The Ethiopian calendar has 12 months of 30 days each plus a 13th month of 5 or 6 days.
What is the significance of knowing days in a month for business?
Knowing the exact number of days in a month is crucial for many business calculations. Payroll processing requires accurate day counts for prorated salaries, daily pay rates, and overtime calculations. Financial institutions use day counts for interest calculations, with different conventions like Actual/360 and Actual/365 producing different results. Rental and lease agreements often calculate monthly rates based on actual days, meaning February rent might differ from March rent on a daily-rate basis. Project management depends on accurate business day calculations for scheduling and deadline setting. Subscription services and SaaS companies use month lengths to calculate prorated charges when customers sign up or cancel mid-month.