Home / Articles / Days between two dates

How to Calculate Days Between Two Dates

The number of days between two dates is simple subtraction, until months start having different lengths and February gets a 29th.

Chris Terry
By Chris Terry, Editor
Updated June 17, 2026

Try the Percentage Calculator

Instant answers for any percentage problem: find the percent, the part, or the whole in one click.

To find the number of days between two dates, convert both to a day count from a fixed reference point and subtract. In a spreadsheet, subtracting one date cell from another gives the answer directly, no formula required.

The manual method

For dates within the same year, count the days left in the start month, add the full months between, and add the days in the final month. For anything longer, a calculator or spreadsheet is the right tool, because you also have to account for months with 28, 29, 30, or 31 days.

In Excel or Google Sheets

With two date cells (e.g. A1 and B1), the formula is simply =B1-A1. Format the result cell as a number, not a date, and it returns the exact number of days. You can also use =DAYS(B1,A1) for clarity.

Days between dates in months

To convert days to complete months, use =DATEDIF(A1,B1,"M") in Excel. This returns full calendar months, not an approximation. For a partial count including remaining days: =DATEDIF(A1,B1,"MD") gives days left over after whole months.

Why do people need a days calculator?

Common uses: days until an event, contract deadline verification, figuring out how long ago something happened, and interest calculations on daily-rate loans. Also, arguing about how many days until a birthday. (People are competitive about this.) The Date Calculator handles all these cases and shows the result in days, weeks, and months. See also how to calculate age for a related use case.

Leap year considerations

A leap year adds February 29, occurring roughly every four years. If your date span crosses one or more leap year Februaries, the count is one day higher per leap year than a simple 365-per-year estimate. This matters most for spans of several years.

Try the Percentage Calculator

Instant answers for any percentage problem: find the percent, the part, or the whole in one click.

Related reading

Good to know

FAQs

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

Subtract the earlier date from the later date. In Excel, put each date in its own cell and enter =B1-A1 in a third cell, formatted as a number. Online, the Date Calculator above does it in one click.

How do I calculate days between two dates in Excel?

Select two cells with dates, then in a third cell type =B1-A1 and format the result as a number. Excel returns the exact day count. You can also use =DAYS(end,start) for the same result.

How many days are between two dates in months?

Use =DATEDIF(start,end,"M") in Excel for complete months. For a rough approximation, divide the total days by 30.44 (average days per month).

What tool calculates the number of days between two dates?

The Date Calculator on this site returns the exact count in days, weeks and months for any two dates, with leap years handled automatically.

Chris Terry
About the author
Chris Terry
Editor, Encore Editorial

Chris Terry is the editor of Encore Editorial and oversees content, sourcing, and the accuracy of everything published here. His background spans business operations, market research, and making complicated things readable.