Math Solver Free

Date to Date Calculator

How long between two dates? Years, months, days, and weekdays — answered.

Pick a start and end date to see the duration.

How Date Duration Is Calculated

Pick any two dates — a start and an end — and this calculator measures the exact span between them on the real Gregorian calendar. It reports the duration three ways at once: a calendar breakdown in years, months, and days; the raw total of days; and a split into weekdays and weekend days. That sounds trivial until you try it by hand: months have four different lengths, February changes in leap years, and “three months from now” is not a fixed number of days. The tool handles all of that instantly, updating the moment both dates are chosen.

The Counting Rules, Defined Precisely

Three definitions keep the arithmetic honest. Total days is the number of midnights crossed between the two dates — end date minus start date — so identical dates give 0, and the start day itself is not counted as a completed day. A weekday is Monday to Friday and every other day is a weekend day; weekdays + weekends always equals total days, a useful self-check. The years-months-days breakdown borrows like column subtraction: if the end date's day-of-month is smaller than the start's, one month is borrowed and the days of the previous month are added in. Finally, leap years follow the Gregorian rule — divisible by 4, except century years, which must be divisible by 400.

What You Get

  • Calendar breakdown: e.g. 2 years, 3 months, 14 days.
  • Total days: the raw day count between the dates.
  • Weekdays: the Monday-to-Friday days inside the span — useful for work planning.
  • Weekends: the Saturday and Sunday days, shown separately so the two counts always add up to the total.

How to Use This Calculator

  1. Click the Start date field and pick the earlier of your two dates.
  2. Click the End date field and pick the later date. The results appear automatically as soon as both dates are set — there is no button to press.
  3. Read the Duration banner first (years, months, days), then the three cards beneath it: Total days, Weekdays, and Weekends.
  4. If the end date is earlier than the start date, the tool asks you to swap them rather than showing a negative duration.

Worked Example 1: 1 January 2026 to 15 March 2026

Count the span month by month. From 1 January to 1 February is 31 days — the length of January. From 1 February to 1 March is 28 days, because 2026 is not divisible by 4, so February stays short. From 1 March to 15 March is 14 more days. Total: 31 + 28 + 14 = 73 days, which the calendar breakdown reports as 2 months, 14 days. Now split by weekday. The 73 days contain ten full weeks — 70 days contributing 50 weekdays — plus a final Thursday, Friday, and Saturday, which add 2 more weekdays and 1 weekend day. The cards therefore read 52 weekdays and 21 weekend days, and 52 + 21 = 73 confirms the split.

Worked Example 2: 15 January 2024 to 15 January 2025 — the Leap-Year Trap

This span is exactly one calendar year, so the breakdown reads 1 year, 0 months, 0 days. Yet the total is 366 days, not 365, because 29 February 2024 falls inside the interval. Choose the same dates in 2025–2026 and the total drops to 365. The effect in miniature: 1 February to 1 March is 29 days in 2024 but only 28 days in 2025. The cards for the leap-year span show 262 weekdays and 104 weekend days — again, 262 + 104 = 366. This is why contracts, tenancies, and subscriptions described as “one year” should always be pinned to an exact end date rather than assumed to be 365 days.

Everyday Uses

Project managers count weekdays between kickoff and deadline to get honest working time; tenants and employees check notice periods against exact dates rather than rough months; travellers verify that a trip fits inside a 90-day visa window; and families count down to weddings, exams, and due dates. Project deadlines, pregnancy tracking, age verification, and subscription lengths all come down to the same question: how much time is between these two dates?

Three Date-Counting Mistakes

  1. Assuming a month is 30 days and a year is 365. Real months run 28 to 31 days and leap years add a day. The “close enough” estimate drifts by several days over any long span — enough to miss a legal deadline.
  2. Counting both endpoints. Duration is end minus start. Including both the first and last date adds a phantom day, the classic off-by-one error; hotel stays, billed by nights rather than days, work exactly this way.
  3. Estimating weekdays as five-sevenths of the total. That ratio holds only for whole weeks; the partial weeks at either end of a real span tilt the count. And remember public holidays are not weekends — this tool's weekday count still includes them.

Related Tools

Measuring a lifespan? Our age calculator gives exact age from a birthdate, and the birthday calculator adds fun stats like day-of-week born. To move a date by a set number of days, use the add days calculator; to compare two birth dates, the age difference calculator; for an age on a chosen date, the age at date calculator; for any date's weekday, the day of week calculator; and to count down live to a target date, the countdown calculator.

Frequently Asked Questions

How do I calculate the number of days between two dates?

Count along the real calendar: add the days remaining in the start month, then any whole months, then the days elapsed in the end month — or let this calculator do it instantly and restate the same span as years, months, and days. By hand, remember that month lengths vary between 28 and 31 days and that February gains a 29th day in leap years, which is where most manual counts go wrong.

Does the calculator handle leap years?

Yes. It applies the full Gregorian rule: a year is a leap year if it is divisible by 4, except that century years must be divisible by 400. So 2024 and 2000 were leap years, but 1900 and 2100 are not. Any February 29 falling between your two dates is counted automatically, which is why a span crossing February 2024 totals one day more than the same span a year later.

Can I count only weekdays between two dates?

Yes. The results always include a Weekdays card that counts only the Monday-to-Friday days inside your span, shown next to a Weekends card for Saturdays and Sundays. There is nothing to switch on — pick the two dates and all three figures appear together. Project planners use the weekday count for working-time estimates, while the total-day count remains the right figure for deadlines and notice periods.

Why is my result one day less than I expected?

Because duration is a difference, not a head-count of named dates. From Monday to Tuesday is one day, even though two calendar dates are involved. If you count both the start date and the end date themselves, you add one extra day. When a booking or contract genuinely includes both endpoints, add that day back deliberately rather than assuming the calculator is wrong.

Does the calculator count public holidays as non-working days?

No — the Weekdays card removes Saturdays and Sundays only. Public holidays vary too much by country and region for any single list to be right, and many move to different dates each year. If your span includes public holidays and you need true working days, subtract those holiday dates from the weekday figure by hand. The total-day and weekend counts are unaffected by holidays.

Is this date calculator free?

Yes. Every calculator on Math Solver Free is completely free, with no sign-up, no account, and no usage limits. All calculations run locally in your browser, so your dates are never uploaded or stored, and you can use the tool as many times as you like, on any device.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team