How-To Guides

How to Calculate the Number of Days Between Two Dates

Disclosure: Solo Biz Soft is an independent publication. Links on this page go to each company's official website. If we ever earn a commission from a link, we will say so clearly.

In this guide
  1. The formula
  2. Step by step
  3. Worked example
  4. Common mistakes
  5. Frequently asked questions

Counting days between dates comes up for deadlines, holidays, contracts and invoices. You can do it by hand with a simple method, or let a calculator do it. Here is how it works.

The formula

Days between = later date − earlier date. Count the days left in the first month, add the full months in between, then add the days in the last month.

Step by step

  1. Count the days remaining in the first month.
  2. Add the total days in every full month in between.
  3. Add the day number in the final month.
  4. Decide whether to include the end date, and add 1 if you do.

Worked example

From 20 September to 31 October: 10 days left in September (30 − 20) plus 31 days in October = 41 days.

Common mistakes

  • Forgetting that months have different lengths
  • Missing 29 February in a leap year
  • Counting both the first and last day by accident

Skip the maths: use our free days between dates calculator. To add days to a date, use the date calculator.

Frequently asked questions

How many weekdays are in a period?

Count the weeks and multiply by five, then handle the remaining days by hand, or use a calculator.

Do I include the start date?

It depends on the context. Contracts often say. If not, decide and be consistent.

How do leap years work?

A year divisible by 4 is a leap year, except most century years unless divisible by 400.

More free tools: browse all our free calculators.

This article is general information only.

Leave a Reply

Your email address will not be published. Required fields are marked *