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.
Reviewed for accuracy by Abdullah, Technical Content Specialist
Days in Month Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Days = Calendar lookup with leap year check: (Y%4=0 AND Y%100!=0) OR Y%400=0
Worked example โ February 2024 has 29 days (leap year) | 21 weekdays, 8 weekend days
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. Weekdays: 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. Week 1: Thu-Fri (2 weekdays) + Sat-Sun (2 weekend) Weeks 2-5: 4 full weeks = 20 weekdays + 8 weekend Remaining: Oct 30 Fri (1 weekday), Oct 31 Sat (1 weekend) Total 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.
What determines whether a year is a leap year?
A leap year occurs when the year is divisible by 4, with a special exception for century years. The complete rule is: a year is a leap year if it is divisible by 4, UNLESS it is also divisible by 100, in which case it is NOT a leap year, UNLESS it is also divisible by 400, in which case it IS a leap year. For example, 2024 is a leap year (divisible by 4), 1900 was not a leap year (divisible by 100 but not 400), and 2000 was a leap year (divisible by 400). This system corrects for the fact that a solar year is approximately 365.2422 days long. Without leap years, the calendar would drift by about one day every four years, eventually shifting seasons.
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.
How do weekday and weekend counts vary by month?
The number of weekdays and weekend days in a month depends on both the total number of days and which day of the week the month starts on. A 31-day month always has either 22 or 23 weekdays and 8 or 9 weekend days. A 30-day month has either 21 or 22 weekdays and 8 or 9 weekend days. February in a common year has exactly 20 weekdays and 8 weekend days when it starts on Monday, but the distribution shifts when it starts on other days. The maximum possible weekdays in a month is 23 (which occurs in 31-day months that start on Monday), and the minimum is 20 (February starting on Saturday in a non-leap year). These variations affect business planning and monthly revenue projections.
What is the Gregorian calendar and when was it adopted?
The Gregorian calendar is the calendar system used by most of the world today, introduced by Pope Gregory XIII in October 1582. It replaced the Julian calendar, which had been in use since 46 BC but was slowly drifting out of sync with the solar year because it overestimated the year length by about 11 minutes. The Gregorian reform skipped 10 days (October 4 was followed by October 15 in 1582) and introduced the century-year leap year exception. Catholic countries like Spain, Portugal, and Italy adopted it immediately, while Protestant and Orthodox countries took much longer. Britain and its colonies did not switch until 1752, Russia until 1918, and Greece until 1923. Today, the Gregorian calendar is used internationally for civil purposes.
How does daylight saving time interact with days in a month?
While daylight saving time does not change the calendar number of days in a month, it does affect the actual length of specific days within the month. In the United States, on the spring-forward day in March, one day has only 23 hours instead of 24, and on the fall-back day in November, one day has 25 hours instead of 24. This means the total hours in March and November differ slightly from the simple multiplication of days times 24. For most practical purposes this distinction does not matter, but it can be significant for time-sensitive calculations like shift scheduling, billing by the hour, or scientific data collection. Some countries have abolished daylight saving time entirely to avoid these complications.
References
Background & Theory
History
Reviewed for accuracy by Abdullah, Technical Content Specialist ยท Editorial policy
Related Calculators
๐งฎAdd Days to Date Calculator
Add or subtract days, weeks, months, or years from any date to find the resulting date.
๐งฎDate Difference Calculator
Calculate the exact number of days, weeks, months, and years between any two dates.
๐งฎDays Until Calculator
Count the exact days remaining until any future date โ holidays, deadlines, or events.
๐งฎDays Since Calculator
Count how many days have passed since any historical date or personal milestone.
๐งฎDays Until Christmas Calculator
See exactly how many days, hours, and minutes remain until Christmas Day.
๐งฎDays Until New Year Calculator
Count down the days and hours remaining until January 1st of the next year.
๐งฎDays Until Retirement Calculator
Calculate the exact days remaining until your planned retirement date.
๐งฎSchool Days Remaining Calculator
Count the remaining school days until summer break or graduation.