A calculator returns the answer instantly, but knowing how to count days between two dates by hand lets you check any result and see where it comes from. The same procedure works for a gap of a few days and for a span of many years.
Subtract the start date from the end date. When the span crosses years, count the full years first, then the leftover months, then the remaining days, convert each part to the same unit, and add them. Using 365.25 days per year to allow for leap years, a span from 5 September 1970 to 5 June 2022 works out to 18,901 days, or 18,902 if you include the end date.
What are the steps for counting days by hand?
The method splits a long interval into full years, whole months and leftover days, then converts every part into the same unit before adding:
The 0.25 in 365.25 caters for leap years, and each month is valued at the average year length divided by 12 because calendar months differ in length.
How do the parts convert into days?
| Step | Calculation from the source | Result |
|---|---|---|
| Full years, September 1970 to September 2021 | 2021 - 1970 | 51 years |
| Convert the years to days | 365.25 x 51 | 18,627.75 days |
| Months from September 2021 to June 2022 | (12 - 9) + (6 - 1 + 1) | 9 months |
| Convert the months to days | 365.25/12 x 9 | 273.9375 days |
| Add the two parts | 18,627.75 + 273.9375 | 18,901.6875 days |
| Round down or up | floor / ceiling | 18,901 or 18,902 days |
Worked example: 5 September 1970 to 5 June 2022
September 2022 has not arrived at the end date, so the last complete year is September 2021. That gives 51 full years, and 365.25 days each produces 18,627.75 days. The remaining months split into 12 - 9 = 3 months in 2021 and 6 - 1 + 1 = 6 months in 2022, or 9 months in total; at 365.25/12 days per month this adds 273.9375 days. The sum, 18,901.6875 days, rounds down to 18,901 days when the end date is not counted and up to 18,902 days when it is.
Frequently Asked Questions
Why does the method use 365.25 days in a year?
The 0.25 is included to cater for leap years. Treating every year as 365.25 days keeps long spans accurate enough without counting individual leap days one by one.
How do I count the months from September to June?
The source method uses 12 - 9 = 3 months left in 2021 and 6 - 1 + 1 = 6 months in 2022, giving 9 months in total between September 2021 and June 2022.
Should I round the result up or down?
Round down when the end date is not part of the count and up when it is. For the September 1970 to June 2022 example, the unrounded sum of 18,901.6875 days becomes 18,901 days or 18,902 days respectively.
What if the interval crosses several years?
Count the number of full years first, work out the number of months for the leftover period, then the number of days. Convert the parts to a single unit, such as days, and add all the values together.
References
- Omni Calculator, "What is the method used to calculate how many days there are between two dates?": the full-years, months, leftover-days and rounding procedure.
- Omni Calculator, "How do I go about calculating the days between two dates?": instructions for spans that cross several years and for converting all parts to one unit.
- Omni Calculator, "How many days are there between the 4th and the 26th of July?": the simple end-date-minus-start-date subtraction.