How to Calculate Days Between Two Dates

Learn how to find days between two dates, add or subtract days, count business days, and use age mode — free online guide.

By Generatr Team

Calculating days between two dates means measuring the calendar gap from a start date to an end date — as a total day count, as years/months/days, or as weekdays only when weekends should not count.

This guide covers date difference, adding or subtracting days to land on a new calendar date, business-day counts, and age mode (birth date to today or another “as of” date). When you want the math done for you, open the free date calculator and pick the mode that matches your question.

Inclusive vs exclusive counting and holiday rules change results by a day or more. Match the definition used by your contract, school, or payroll policy before you treat a number as final.

Free tool

Use the Date Calculator now

Open the interactive date calculator in your browser — free, instant, no signup.

Open Date Calculator

How Do You Calculate the Difference Between Two Dates?

Pick a start and end date. The difference is how much time separates them under calendar rules (month lengths, leap years).

Two useful output styles

  • Total days — single integer (good for deadlines, shipping SLAs, “how many days until…”)
  • Mixed units — years, months, and days (good for tenure, ages, long projects)

Worked example (total days)

From 1 June 2026 to 3 August 2026: June has 30 days → 29 days left after June 1 if exclusive of start, or count carefully with a tool. Inclusive “both endpoints” vs exclusive “nights between” is the usual fork — hotels count nights; many “days until event” countdowns exclude today or include it by product choice.

Mixed Y/M/D sketch

Hire date 15 March 2024, “as of” 3 August 2026 → on the order of 2 years, 4 months, ~19 days after applying month-length borrowing (same idea as chronological age). For birth-focused precision and birthday countdown, the free age calculator and exact age guide go deeper on leap-day edge cases.

How Do You Add or Subtract Days From a Date?

Adding or subtracting days moves you forward or backward on the calendar by N midnights of day-count, rolling months and years automatically.

Add days

Start 3 August 2026 + 30 days → 2 September 2026 (August has 31 days: 28 days remain in August after the 3rd if you count carefully — tools avoid off-by-one slips).

Common uses: “net 15 / net 30” invoice due dates, medication courses, warranty windows, project buffers.

Subtract days

Event on 1 November 2026, need 45 days prior for a filing → count back 45 calendar days from that date. Same engine as add, with a negative offset.

Months vs days

“Add 1 month” is not always “add 30 days.” January 31 + 1 month may land on February 28/29 depending on the library. When a contract says “30 days,” use day mode; when it says “one calendar month,” use month mode and confirm the convention.

Clock-level duration inside a single day (shift length) is different math — use the free time calculator and work hours guide for hours and minutes.

How Do You Count Business Days Between Dates?

Business days (working days) usually mean Monday–Friday, excluding Saturday and Sunday. Holidays may or may not be excluded — that is a policy choice, not pure math.

Simple method

  1. List or iterate each calendar day from start to end under your inclusive rule.
  2. Drop Saturdays and Sundays.
  3. Optionally drop a holiday list (U.S. federal, company PTO calendar, exchange holidays).
  4. Count what remains.

Worked intuition

Monday–Friday in a normal week is 5 business days. A span that includes one weekend loses 2 calendar days from the business count. Two full weekends lose 4, and so on.

Example shape: 10 calendar days that include exactly one Saturday–Sunday pair often yield about 8 business days if both endpoints are weekdays and count under your rule — verify with a counter rather than guessing long spans.

Why it matters

Banks, HR onboarding, shipping “business day” delivery, and SLA response times often ignore weekends. Quoting calendar days when the contract says business days understates the true window.

How Does Age Mode Work on a Date Calculator?

Age mode is date difference with a fixed meaning: start = date of birth (or another origin), end = today or a chosen “as of” date. Results usually include years/months/days, sometimes day-of-week of birth, zodiac labels, and days until the next birthday.

What you enter

  • Date of birth (exact ID date)
  • Optional end date (age on a wedding day, school cutoff, or immigration appointment)

What you read

  • Completed years plus remaining months and days
  • Total days lived (fun / research)
  • Countdown to next anniversary of the birth month/day

Civil age usually ticks up on the birthday in local date terms. Leap-day births (29 February) need a convention in non-leap years — systems disagree, so check official rules when eligibility is on the line.

Health tools that take age as an input (for example BMI context) need at least correct completed years; see the free BMI calculator and BMI guide when age bands matter.

Should You Count the Start Date, End Date, or Both?

Off-by-one errors almost always come from inclusive vs exclusive counting.

  • Elapsed / exclusive of end “moments” — classic age and “full days completed”
  • Inclusive both ends — “event runs Monday through Friday” as 5 days of programming
  • Nights — hotel stay Mon check-in, Wed check-out = 2 nights, not 3 calendar labels

How to avoid fights over a day

Write the rule in plain language next to the number: “14 calendar days after the effective date, not counting the effective date” vs “within 14 days including today.” When a statute or contract defines the method, that definition wins over any website default.

Percent of a year or quarter completed is easier once you have day counts — the free percentage calculator and percentage guide turn “day 45 of 90” into 50% quickly.

How Do You Use an Online Date Calculator?

Match the mode to the question, enter unambiguous dates (YYYY-MM-DD or clear month names), then read the unit you need.

  1. Open the free date calculator.
  2. Choose date difference, add/subtract days, age, or business days.
  3. Enter start and end dates (or start date + number of days to add/subtract).
  4. For age mode, enter date of birth and optional “as of” date.
  5. For business days, confirm whether holidays are excluded in your situation (many tools only drop weekends).
  6. Read total days and/or years-months-days output.
  7. Note day-of-week, birthday countdown, or other extras only if you need them.
  8. Re-run with inclusive/exclusive intent in mind if the result must match a contract clause.

Scheduling tip

When the answer must land on a weekday, compute the raw date first, then nudge for weekends/holidays if your process requires a business-day landing date.

Bedtime and wake planning still use clock times more than calendar spans — the free sleep calculator and sleep guide handle that side.

What Are Common Date Calculation Mistakes?

Calendars look simple until month lengths and leap years show up.

  • Off-by-one from inclusive vs exclusive counting
  • Assuming every month has 30 days when adding “a month”
  • Ignoring February 29 in multi-year spans
  • Using calendar days for a business-day SLA
  • Time zone / “today” changing near midnight when traveling or using a server in another zone
  • US vs international date order (03/04/2026 as March 4 vs April 3)

This guide is educational. For legal deadlines, statutes of limitation, and filing windows, follow the authority’s written counting rules or counsel — not a generic web default alone.

Step-by-Step Instructions

  1. 1Open the free date calculator on Generatr.
  2. 2Select date difference, add/subtract days, age mode, or business days.
  3. 3Enter the start date and end date, or a start date plus the number of days to shift.
  4. 4Use an unambiguous date format so day and month are not swapped.
  5. 5For age, enter date of birth and an optional end date instead of always using today.
  6. 6For working-day counts, remember weekends (and holidays, if your policy excludes them).
  7. 7Read total days and the years/months/days breakdown when both appear.
  8. 8Confirm whether your use case counts endpoints inclusively before you finalize a deadline.

Frequently Asked Questions

How do I calculate how many days are between two dates?+

Choose a start and end date, then count the day gap under a clear inclusive or exclusive rule. A date calculator returns total days and often a years-months-days breakdown using calendar month lengths and leap years.

How do I add 30 days to a date?+

Take the start date and add 30 calendar days, rolling the month and year when you pass the end of a month. Online add/subtract modes do this without manual month-length math.

What is the difference between calendar days and business days?+

Calendar days count every day on the calendar. Business days usually count Monday–Friday only, and sometimes exclude holidays. Always check whether your contract uses calendar or business days.

Can a date calculator also find age?+

Yes. Age mode treats date of birth as the start and today (or another date) as the end, then reports years, months, and days — the same family of math as a general date difference.

Why do two day-count tools disagree by one day?+

They often use different inclusive/exclusive rules, time zones for “today,” or holiday lists for business-day mode. Align the definition with your policy, then use one consistent method.

Is the Generatr date calculator free?+

Yes. It runs in your browser for date difference, add/subtract days, age-style results, and business-day counts — no signup required.

Ready to try it yourself?

Use the free Date Calculator — no download, no account.

Launch Date Calculator