Date Calculator Between Dates and Days
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the exact number of days between two dates, or the date you get when you add or subtract a certain number of days from a starting date. You enter a start date, an end date (or a day count), and the tool returns the difference in days, weeks, and months, or the resulting calendar date. It handles leap years and month-length differences automatically, so you don’t have to count on your fingers.
Formula
The core formula for the number of days between two dates is simply:
Days = EndDate − StartDate
where each date is converted to a serial number (the number of days since a fixed epoch, such as January 1, 1900, or the Unix epoch of January 1, 1970). The difference between the two serial numbers gives the exact number of 24-hour periods between them. For adding or subtracting days, the formula is:
ResultDate = StartDate + N days
where N can be positive (future) or negative (past). The calculator uses the Gregorian calendar, which is the standard civil calendar in most of the world. It automatically accounts for leap years (years divisible by 4, except centuries not divisible by 400) and the varying lengths of months (28–31 days).
Worked Example
Using the default values from the calculator above: start date January 1, 2025, and end date March 15, 2025.
- Count the days in January after January 1: January has 31 days, so from Jan 1 to Jan 31 is 30 days (excluding the start date).
- Add all of February: February 2025 has 28 days (2025 is not a leap year).
- Add the days in March up to March 15: that is 14 days (from March 1 to March 15, excluding the start).
- Total = 30 + 28 + 14 = 72 days.
The calculator shows 72 days. In weeks, that is 10 weeks and 2 days (since 72 ÷ 7 = 10 remainder 2). In months, it is approximately 2.4 months (72 ÷ 30.4375 ≈ 2.37, rounded to 2.4).
Why the Average Month Is 30.4375 Days
When converting days to months, a common approach is to divide by the average number of days in a Gregorian calendar year: 365.2425 days per year (accounting for the leap-year rule), divided by 12 months, gives 30.4375 days per month. This is an approximation, because real months vary from 28 to 31 days. The calculator uses this average to give a rough monthly figure, but for precise month counts (e.g., “3 months from today�), you should use the calendar date arithmetic, not the division.
How to Use the Calculator
You can use this tool in two ways:
- Find the difference: Enter a start date and an end date. The calculator returns the number of days, weeks, and approximate months between them.
- Add or subtract days: If you want to know the date 90 days from a given start, enter the start date and then adjust the end date until the day count shows 90. Alternatively, you can use the formula in reverse: pick a start date and a number of days, then compute the end date manually (or use a dedicated date-add calculator).
The result is inclusive of the start date? No—the calculator counts the number of 24-hour periods between the two dates. If you want to include both the start and end dates (e.g., “how many days until my birthday, including today�), add 1 to the result.
Common Mistakes and Misconceptions
One frequent error is confusing “days between� with “days including both endpoints�. For example, from Monday to Friday is 4 days between, but 5 days if you count both Monday and Friday. Another common mistake is forgetting leap years: February 29 adds an extra day every four years (except century years not divisible by 400). The calculator handles this, but if you do manual calculations, always check the year.
Another misconception is that a month is always 30 days. That is false—months range from 28 to 31 days. So “3 months� from January 31 is not the same as 90 days. The calculator’s month output is an approximation; for legal or contractual deadlines, always use the calendar date, not a day count.
Practical Uses
This type of calculator is useful in many everyday situations:
- Counting down to a deadline, exam, or event.
- Calculating age in days (e.g., for a pet or a baby).
- Determining billing cycles or subscription renewal dates.
- Planning project timelines: “We have 45 days from March 1 to finish.�
- Calculating pregnancy due dates (though that is typically done from the last menstrual period, not from conception).
In all these cases, the calculator gives a precise day count, which you can then interpret in weeks or months as needed.
Limitations of the Formula
The calculator uses the Gregorian calendar, which is the standard in most countries, but not all. Some regions use the Julian calendar for religious or historical purposes, and that would give different results. Also, the calculator assumes a 24-hour day; if you are interested in time-of-day differences (e.g., from 9:00 AM to 5:00 PM), you need a separate time calculator. Finally, the month conversion is an average—it is not suitable for precise month-based calculations like “the 15th of next month�.
Frequently Asked Questions
How do I count days including both the start and end dates? Add 1 to the result. For example, if you are traveling from June 1 to June 3, that is 2 days between, but 3 days if you count both departure and arrival days.
What is the difference between “days between� and “days until�? “Days between� usually excludes the start date, while “days until� often includes the current day. For instance, if today is June 1 and an event is on June 3, the days between are 2, but “days until� might be 2 or 3 depending on whether you count today. Always clarify which one you need.
How does the calculator handle leap years? It uses the standard Gregorian rule: a year is a leap year if it is divisible by 4, except if it is divisible by 100, unless it is also divisible by 400. So 2000 was a leap year, 1900 was not, and 2024 was a leap year.
Can I calculate the date after adding a specific number of days? Yes, but this calculator only shows the difference. To find the date, you can use the reverse: enter a start date and then manually adjust the end date until the day count matches your desired number. Alternatively, use a dedicated “date plus days� calculator.
Why does the month figure show a decimal? Because it is an average. Dividing the total days by 30.4375 gives a decimal that represents a fraction of an average month. For exact calendar months (like “3 months from today�), you need to add months to the date, not divide days.
Does the calculator account for time zones? No. It treats dates as calendar dates, not instants in time. If you need to account for time zones or daylight saving time, you need a more specialized tool.
Related
Formula used
in start | Start date | - | 2025-01-01 | 0 in end | End date | - | 2025-03-15 | 0 out days | Days between | days | end - start | 0 out weeks | Weeks and days | - | floor(days / 7) + "w " + (days % 7) + "d" | 0 out months | Approx. months | months | days / 30.4375 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.