When to use Date Calculator
Find the days between two dates, or add or subtract days, months, and years.
Check a calendar or duration calculation for planning, records and comparisons between dates or times.
How to use this tool
- Choose the calculation mode that matches your task and the information you have.
- Enter the inputs listed below. Follow the field format, and select units beside each supported quantity.
- Results update automatically. Review the main result and its breakdown. Use Clear to enter a new scenario.
- Start date
- End date
- Days to add
- Months to add
- Years to add
How it works
Between dates
Subtract the start date from the end date. A negative result means the end date comes first.
Add or subtract
Add years and months first, using the last day if the destination month is shorter. Then add days. Enter negative values to subtract.
Worked example
The examples below use fixed sample inputs. They explain the calculation and do not change when you edit the tool above.
Between dates
- Start date
- 2026-01-01
- End date
- 2026-02-01
- Result
- 31 d
- Total days
- 31
Add or subtract
- Start date
- 2026-01-31
- Days to add
- 0
- Months to add
- 1
- Years to add
- 0
- Result
- 2026-02-28
Understanding the result and its limits
Check whether endpoints, breaks and holidays are included. A date-only calculation is not automatically a time-zone-aware timestamp difference.
Frequently asked questions
Why can two date calculations differ by one day?
One may count both endpoints while another measures elapsed days. Use the convention stated in the method.
Methodology and references
Use the formulas and assumptions above when interpreting the example. Any practical estimate depends on the accuracy of the inputs.