How many days between March 5 and October 12? The question sounds simple enough for mental math until you actually try it. Months have different lengths. Leap years show up every four years (mostly). And "from Monday to Wednesday" can mean 2 days or 3 depending on whether you count the starting day. Here is how to calculate the number of days between two dates reliably — every time.
The definition matters before the math
First, decide whether you are counting inclusive or exclusive.
- Exclusive counts the gap between the two dates. March 1 to March 3 = 2 days (the 1st is "day zero"). This is what most calculators do by default.
- Inclusive counts both endpoints. March 1 to March 3 = 3 days (the 1st, 2nd, and 3rd).
For legal documents, warranty periods, and contract deadlines, the rules vary — always check which convention applies. For date-age math, exclusive is standard.
The simple case: same month
If both dates are in the same month and year, subtract the day numbers. May 4 to May 18 = 18 − 4 = 14 days (exclusive).
The general method: ordinal day of year
For any two dates in the same year, convert each to its "day of the year" and subtract. January 1 is day 1. December 31 is day 365 (or 366 in a leap year).
Example: March 10 to July 22 in a non-leap year.
- March 10 → Jan (31) + Feb (28) + 10 = day 69
- July 22 → Jan (31) + Feb (28) + Mar (31) + Apr (30) + May (31) + Jun (30) + 22 = day 203
- Difference: 203 − 69 = 134 days
Across years: watch for leap years
For dates in different years, you have to account for each full year and the partial starts and ends. A common approach:
- Count the days from the start date to the end of its year.
- Add 365 (or 366) for each complete year in between.
- Add the day-of-year for the end date.
Example: June 15, 2023 to February 20, 2026.
- June 15, 2023 to Dec 31, 2023: 365 − 166 = 199 days (June 15 is day 166)
- Full 2024 (leap year): 366 days
- Full 2025: 365 days
- Jan 1, 2026 to Feb 20, 2026: 51 days
- Total: 199 + 366 + 365 + 51 = 981 days
The leap year rule
A year is a leap year if:
- Divisible by 4, AND
- NOT divisible by 100, UNLESS
- ALSO divisible by 400
So 2024 is a leap year (÷4 yes, ÷100 no). 1900 was not (÷100 yes, ÷400 no). 2000 was (÷400 yes). This rule exists because Earth's orbit is about 365.2422 days — the correction keeps calendars aligned with seasons over centuries.
The mental math shortcut: 30-day months
For rough estimates, pretend every month has 30 days. Month difference × 30 + day difference. From March 10 to July 22: 4 months × 30 + 12 days = 132 days. The true answer is 134 — close enough for most quick estimates.
Expressing the result in weeks, months, or years
A raw day count is precise, but long spans are hard to picture. "412 days" is a correct answer; "1 year, 1 month, and 16 days" says the same thing in a form people can actually use. Here is how to convert a day count into total weeks, total months, total years, or a years + months + days breakdown.
Days to weeks
Divide by 7. 412 days ÷ 7 = 58.86 weeks, or "58 weeks and 6 days" in mixed form. For events 2–6 months out, "12 weeks away" beats "84 days."
Days to months and years
Months range from 28 to 31 days, so day-based conversions are approximate. Use 30.44 days per month (the average across a year), or 30 as a rule of thumb: 412 days ÷ 30.44 ≈ 13.54 months. For years, divide by 365.25 to account for leap years: 412 ÷ 365.25 ≈ 1.128 years. Fine for estimates, not for contracts.
For exact figures, count whole calendar months or anniversaries from the actual start date. March 5, 2025 to April 5, 2026 is exactly 13 months; March 5, 2025 to April 21, 2026 is 13 months and 16 days — those same 412 days, or 1 year, 1 month, 16 days.
The years + months + days breakdown
This is the format people understand best:
- Count whole years from the start date to the latest "same calendar date" on or before the end date.
- Count whole months forward from that anniversary.
- Count the leftover days.
Example: March 5, 2023 to April 21, 2026.
- Years: March 5, 2023 to March 5, 2026 = 3 years
- Months: March 5, 2026 to April 5, 2026 = 1 month
- Days: April 5, 2026 to April 21, 2026 = 16 days
- Total: 3 years, 1 month, 16 days
One edge case: when the start date is February 29 and the end year isn't a leap year, the anniversary is typically treated as February 28 or March 1, following age-calculator conventions.
Which format to use
- Days: short spans (under a month), interest accrual, exact deadlines, medical dosing intervals.
- Weeks: pregnancies, training programs, project sprints, medium-term countdowns. Pregnancy is counted in weeks + days ("32 weeks and 3 days") from the first day of the last menstrual period, not conception; the due date is 280 days (40 weeks) later.
- Months: rent, loans, subscriptions, salary periods, and infant age — babies are usually described in months until age 2 ("18 months," not "1.5 years").
- Years: long-term planning, retirement, warranties, adult age.
- Mixed (Y-M-D): exact documentation, legal periods, and resumes — "3 years 2 months" reads better than "38 months."
Countdowns and age calculations
A countdown ("days until my vacation") is a days-between calculation with today as the start date, usually in calendar days. For long countdowns, convert the result: 213 days feels abstract, while "30 weeks and 3 days" or "7 months" is easier to picture. Our days until calculator handles the math.
Age adds a twist. How old on April 21, 2026, is someone born June 15, 2000? Subtracting years gives 26, but the birthday hasn't happened yet in 2026, so the standard method subtracts one: 25. For full precision, count years, then months, then days as in the breakdown above: 25 years, 10 months, 6 days.
Deadlines, trials, and warranties
This is where inclusive versus exclusive counting causes the most trouble:
- Response windows: "Respond within 30 days" on a notice dated March 1 means a response is due by March 31 — or March 30 if the notice date counts as day 1. Legal and contractual deadlines almost always use calendar days unless specified otherwise. When a deadline falls on a weekend or holiday, many jurisdictions extend it to the next business day, but not all.
- Free trials: A 30-day trial started March 10 expires at the end of April 9 if the start day is day 0, or April 8 if it is day 1. When in doubt, cancel one day early.
- Warranties: A 1-year warranty from a January 15 purchase expires January 15 of the following year — typically at 11:59 PM that day.
Business days vs calendar days
"Ship within 5 business days" means 5 days that are not weekends or holidays. Counting the next business day as day 1, a 5-business-day window that starts on a Monday ends the following Monday, and one that starts on a Thursday ends the following Thursday (7 calendar days either way). Some policies count the start day itself, which moves each deadline one business day earlier, so check the wording. Our working days calculator counts the business days between two dates you choose, including the start date, so for a "next business day is day 1" rule, enter the day after the event as the start. A standalone article covers the details.
The gap grows with longer spans. A 45-business-day project is 9 calendar weeks — about 63 calendar days — which is enough to miss a quarterly deadline if you plan with the wrong unit.
Interest accrual and the 360-day year
Many financial products accrue interest daily: principal × daily rate × days in period, where "days in period" is the exact count between statement dates — so an off-by-one error on a big loan costs real dollars. Some banks use a 360-day year, treating every month as 30 days, so the daily rate is the annual rate ÷ 360 instead of ÷ 365 — a subtle difference that compounds over time.
Common mistakes
Forgetting leap years. Between Feb 1, 2023 and Feb 1, 2024, there are 365 days — but if either date is Feb 29, 2024 or later and the other is before, you must include the leap day.
Counting days instead of nights. A 3-night hotel stay checking in on the 1st checks out on the 4th — 3 nights, 4 calendar days involved. Travel itineraries often confuse these. A 10-day trip departing June 5 returns June 14 if the departure day counts as day 1 (the usual travel convention), or June 15 if it counts as day 0.
Time zone shifts. Flights that cross time zones can appear to add or lose a day. Always use the local dates at each end, not UTC math. A conversion alone can change the date: 9 AM on March 15 Eastern is 6 AM the same day Pacific, but midnight UTC on March 15 is 5 PM on March 14 Pacific. Daylight saving adds traps too — on "spring forward" Sunday, 2:30 AM doesn't exist locally; on "fall back" day, 1:30 AM happens twice.
Skipping the sanity check. A quick test for off-by-one errors: any multiple of 7 days lands on the same weekday, so if today is Monday and "14 days from now" comes out as a Saturday, something went wrong.
Why this matters
Days-between calculations drive countless real-world applications: loan interest accrual, lease and rental durations, pregnancy tracking, project scheduling, contract notice periods, age verification, and much more. An error of one day in a high-stakes calculation — a medication interval, a legal deadline — can have real consequences.
Get the answer instantly
For routine work, skip the mental math and use our date difference calculator. It handles leap years and cross-year spans correctly every time. It counts exclusively (the start date is day zero), so add 1 if you need an inclusive count. Enter a start date, an end date, and get the exact number of days, weeks, months, and years between them. When precision matters, a tool beats manual counting every time.