How to Calculate the Number of Days Between Two Dates

By CalculatorBase Editorial Team · Published November 26, 2026 · Updated November 14, 2026 · 2 min read

How to Calculate the Number of Days Between Two Dates

Quick answer: To calculate the days between two dates, convert each to a running day count and subtract. From January 1, 2026 to December 25, 2026 is 358 days (51 weeks and 1 days). Whether to include the end date depends on the context, so state which you use.

Method

  1. Count days from a fixed reference for both dates (such as day of year).
  2. Subtract the smaller from the larger.
  3. Add 1 if you need an inclusive count.

Examples

From To Days
Jan 01, 2026 Dec 25, 2026 358
Feb 01, 2026 Mar 01, 2026 28
Feb 01, 2028 Mar 01, 2028 29
Nov 14, 2026 Jan 01, 2027 48

Note February has 29 days in 2028, a leap year.

Leap Year Rule

A year is a leap year if divisible by 4, except century years not divisible by 400: 2000 was a leap year, 1900 was not.

Calculate

The Date Calculator computes durations. For working days see business days between dates.

Tips for Accurate Results

Decide whether to include the start or end date, and note any holidays or leap years.

Common mistakes with everyday calculations: using the wrong units, forgetting leap years or breaks, and trusting a rounded result for something that needs an exact one. Double-check anything critical.

Try the Date Calculator

Skip the manual work and get an instant result with our free Date Calculator. Enter your numbers, see the answer immediately and adjust the inputs to compare scenarios.

More calculators you may find useful: Age Calculator.

Related guides

Frequently asked questions

Is the end date included?

Not by default; add 1 for inclusive.

How many days in a leap year?

366.

How do I count weeks?

Divide the days by 7.

Is 1900 a leap year?

No.

Results from tools and formulas are estimates for everyday use. Verify anything critical, such as security, building or legal deadlines, against official guidance.

Explore other calculators