Skip to main content
date

Days Between Dates

Count the number of days between two dates

Reviewed by Christopher FloiedUpdated

This free online days between dates provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Include end date
Total Days30

Weeks + Days

4w 2d

Months + Days

0mo 30d

Years + Months

0yr 0mo

Business Days

21

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Days Between Dates. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Days Between Dates instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Days Between Dates Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Days Between Dates when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Days Between Dates is a free, browser-based calculation tool for engineers, students, and technical professionals. Count the number of days between two dates It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

The Theory Behind It

The number of days between two dates is computed by counting complete 24-hour periods between the start and end dates, accounting for the irregular structure of the Gregorian calendar. The calculation is straightforward conceptually — subtract one date from another — but handling leap years, month length variations, and timezone considerations correctly requires calendar-aware arithmetic rather than simple subtraction. The standard approach is to convert both dates to a canonical representation (Julian day number or Unix timestamp) and subtract those numbers, then convert back to a day count. Julian Day Number (JDN) is a count of days since January 1, 4713 BC on the proleptic Julian calendar — it is the standard representation used by astronomers and by many date libraries because it turns calendar arithmetic into simple integer subtraction. The calculator exposes two related but distinct counts: 'days between' inclusive (the first date and last date are both counted, so January 1 to January 3 is 3 days) and days between exclusive (only one of the endpoints is counted, giving 2 days for the same range). Most everyday usage prefers the exclusive count: the number of days between your departure and arrival excludes travel day, for example. Business-day counts (weekdays only, excluding Saturday and Sunday) are another common variant, used for contract deadlines, bank settlement dates, and service-level agreements. Legal document deadlines often specify either calendar days or business days, and the distinction matters especially around weekends and holidays. Some US federal government calculations use 'federal business days' which exclude federal holidays in addition to weekends — useful for court filing deadlines, tax return deadlines, and Medicare enrollment windows. The calculator handles calendar day counts; for business-day calculations with holiday exclusions, consult a domain-specific tool.

Real-World Applications

  • Project and deadline tracking: compute how many days remain until a project due date, product launch, event, or other fixed-date milestone. Useful for counting down to significant deadlines and for post-project retrospective analysis.
  • Pregnancy and gestation tracking: obstetricians and expecting parents count days from the last menstrual period or from conception to estimated delivery. A normal pregnancy is 280 days from LMP or 266 days from conception.
  • Legal deadline calculation: many legal filings are due 'within 30 days of notice' or 'no later than 60 days after the event.' Calculate the exact target date to avoid missing a deadline. Note that some legal contexts use business days rather than calendar days.
  • Travel planning and visa stay tracking: compute the number of days you have been in a country to verify you are within visa limits. The Schengen Area rule, for example, allows 90 days in any 180-day period for most non-EU visitors.
  • Subscription and membership tracking: verify the number of days remaining on a free trial, software license, or subscription service. Also useful for computing prorated refunds when canceling a service mid-period.

Frequently Asked Questions

Does this calculator include the start and end date?

The calculator computes the count of days ELAPSED between the two dates, so neither endpoint is double-counted. From January 1 to January 3 is 2 days (the 1st to the 2nd, and the 2nd to the 3rd). If you want inclusive counting (where both endpoints are counted and you get 3 days for January 1 to January 3), add 1 to the result. Contracts and legal documents often specify which convention to use — read carefully to apply the correct rule for your situation.

Can I calculate business days only?

This calculator computes calendar days including weekends. For business days only (weekdays), multiply calendar days by 5/7 as a rough approximation, or count weeks explicitly: 14 calendar days ≈ 10 business days. For exact business-day counts with holiday exclusions, use a dedicated business-day calculator that incorporates the holiday calendar for your jurisdiction. Federal holidays in the US include New Year's Day, MLK Day, Presidents Day, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving, and Christmas.

Does the calculator handle leap years?

Yes. The calculator uses standard Gregorian calendar arithmetic, including leap years. February 29 in leap years adds one day to the count for any range that includes it. 2024, 2028, 2032 are leap years; 2023, 2025, 2026, 2027 are not. Year 2100 will not be a leap year (century years must also be divisible by 400). The calculator handles all these cases automatically.

What is the maximum date range the calculator supports?

The calculator handles date ranges from roughly 1900 to 2100, which is more than adequate for most practical purposes. For historical dates before 1900, the Gregorian calendar was not universally adopted until well into the 20th century in some regions, so calculations across the transition date should be verified against period-specific calendars. For dates far in the future, the calculation remains mathematically correct but may not match future legal or political calendar changes.

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

Compute the days between the two dates using the calculator, then divide by 7. For example, 63 days / 7 = 9 weeks. The result is often a non-integer, representing the exact count including fractional weeks — 50 days is 50/7 ≈ 7.14 weeks. For whole-week counts, round down (50 days = 7 complete weeks with 1 extra day). Some contexts prefer counting Monday-to-Monday or Sunday-to-Sunday spans; the calculator's day count is the primary number from which any week count can be derived.

References & Further Reading