Date Calculator
Calculate the difference between two dates.
How to use Date Calculator
Enter Your First Date
Click the 'Start Date' input field and select or type your first date. Use the calendar picker or enter the date in MM/DD/YYYY format. The field accepts dates from January 1, 1900 onwards.
Enter Your Second Date
Click the 'End Date' input field below the start date. Select your second date using the calendar icon or type manually in MM/DD/YYYY format. Ensure this date is after or before your start date depending on your calculation need.
View Instant Results
The calculator automatically displays results in multiple formats: total days, weeks and days, months and days, and years and months. Results appear in the blue 'Results' panel on the right side of the calculator.
Copy or Share Results
Click the 'Copy' button next to any result to copy it to your clipboard. Use the 'Share' button to generate a shareable link with your calculation included.
Related Tools
Date calculator: find days between dates or add time to a date
Date calculator: find days between dates or add time to a date
Need to know how many days are between two dates, or what date falls 90 days from today? Use the free date calculator on ToolHQ to get the answer instantly, in days, weeks, months, and years.
A date calculator works in two directions. It can find the difference between two dates, or it can start from a known date and add or subtract a specific amount of time to land on a target date.
These calculations sound simple but come up constantly in real situations: contract deadlines, notice periods, project timelines, loan terms, shipping estimates, medical follow-ups, and legal compliance windows. Manually counting calendar squares leads to errors, especially when leap years, month-length differences, and weekend counts are involved. ToolHQ's date calculator handles all of that automatically and shows the result in multiple units at once.
Key Takeaways
- Mode 1 (difference): enter two dates to see the gap in years, months, weeks, and days
- Mode 2 (add/subtract): enter a start date and a duration to find the resulting date
- Results show in multiple units simultaneously, you do not have to choose one
- Leap years and month-length differences are handled automatically
- No data is stored or transmitted, all calculations run in your browser
How date calculations work
Calendar math is trickier than it looks. Months have different lengths (28, 29, 30, or 31 days), leap years add a day every four years (with exceptions), and depending on your context you may need to count calendar days, business days, or just round numbers of weeks.
Calculating the difference between two dates involves counting every day from the start date to the end date. Most calculators then decompose that total into years, months, weeks, and days. For example, from March 15 to October 22 of the same year is 221 days, which is 7 months and 7 days, or 31 weeks and 4 days.
Adding or subtracting time from a date is the reverse: you start at a known date and move forward or backward. Adding 90 calendar days to January 1 lands on April 1 (or April 2 in a non-leap year, because the 90th day lands differently depending on the year).
According to Wikipedia's Gregorian calendar article, the Gregorian calendar is the internationally accepted civil calendar and was introduced in 1582 to correct drift in the Julian calendar. The international standard for representing dates, according to ISO 8601, is YYYY-MM-DD; which is also the most unambiguous format for avoiding confusion between US (MM/DD/YYYY) and European (DD/MM/YYYY) conventions.
When you need a date calculator
Contract and notice periods. A contract requires 30 days written notice before termination. If you send notice on March 10, the termination date is April 9, not "sometime in April."
Project planning. Your team has 45 working days to deliver a project from kickoff on February 3. What is the deadline date? A date calculator tells you in one step.
Legal and compliance windows. Many legal rights, warranty periods, and regulatory deadlines are measured in exact days. Getting these wrong has consequences.
Loan and mortgage terms. A 6-month introductory rate starting July 1 expires on January 1. Knowing the exact end date helps you plan refinancing.
Shipping and delivery. "Ships within 14 business days" from a Thursday order date, what is the actual delivery window?
Take Olivia, a freelance consultant who signed a client contract with a 60-day payment window starting from invoice date. She sent her invoice on November 8. Rather than guessing "sometime in January," she used the date calculator: November 8 plus 60 days lands on January 7. She set a calendar reminder for January 3 to send a payment reminder before the deadline. The invoice was paid on January 6, and she avoided the awkward follow-up conversation.
How to use the ToolHQ date calculator
The calculator has two clearly separated modes.
Mode 1: Find the difference between two dates
- Select the "Days between dates" mode.
- Enter your start date. You can type it in YYYY-MM-DD format or use the date picker.
- Enter your end date.
- Read the result. The calculator shows the total in days, and also breaks it down into years, months, weeks, and days simultaneously.
Mode 2: Add or subtract time from a date
- Select the "Add or subtract" mode.
- Enter your starting date.
- Choose whether to add or subtract.
- Enter the duration: years, months, weeks, and/or days. You can combine these, for example, add 3 months and 15 days at once.
- The resulting date appears instantly.
No data is stored or transmitted. All calculations run in your browser.
For related tools, the business days calculator handles working-day-specific calculations, and the countdown timer shows you how many days, hours, and minutes remain until a specific date.
Common date calculation scenarios
Reference: how long standard windows are in calendar days
| Window description | Calendar days | Example: starting Jan 1 ends on |
|---|---|---|
| 30 days | 30 | January 31 |
| 45 days | 45 | February 15 |
| 60 days | 60 | March 1 (or March 2 in leap year) |
| 90 days | 90 | April 1 |
| 6 months | ~181-184 | July 1 |
| 1 year | 365 (or 366) | January 1 |
| 18 months | ~547-549 | July 1 next year |
| 2 years | 730 (or 731) | January 1 two years later |
"30 days" and "1 month" are not the same thing. Adding 30 days to January 31 gives March 2. Adding 1 month to January 31 gives February 28 (or 29). Contracts and legal notices typically specify one or the other, check the exact wording.
Leap year note
A leap year has 366 days instead of 365. Leap years occur every 4 years (2024, 2028, 2032...) with an exception: years divisible by 100 are not leap years unless also divisible by 400. This means adding "1 year" from February 28 to the next February 28 is 365 days in most years but 366 days if the year contains February 29.
The date calculator handles all leap year logic automatically. You do not need to think about it.
Working days vs. calendar days
The standard date calculator counts all calendar days, including weekends. If your contract or project timeline specifies working days or business days, use the business days calculator instead. Fifty calendar days and 50 working days differ by about 14 days, a significant gap on project timelines.
Ethan managed operations for a mid-size logistics company. A supplier contract allowed a 45-day cure period for service level violations. He needed to know: if a violation was reported on September 3, when did the cure period expire? He entered September 3 as the start date, added 45 days, and got October 18. He documented the date in the contract management system that afternoon. When the supplier asked for "a bit more time" in late October, he could point to the precise date and hold the line.
The unix timestamp converter is useful if you are working with dates in code or databases, and the age calculator is a specialized version of the date calculator that shows how many years, months, and days old someone is from their birth date.
Frequently asked questions
How do I calculate the number of days between two dates?
Enter both dates in the "Days between dates" mode. The calculator returns the total days, plus the breakdown in years, months, weeks, and days. For example, January 1 to July 4 is 184 days (in a non-leap year), or 6 months and 3 days.
What is the difference between "30 days" and "1 month"?
Thirty days always means exactly 30 calendar days. One month means the same calendar day next month, regardless of how many days that month has. Adding 30 days to January 31 gives March 2. Adding 1 month to January 31 gives February 28 (or 29). Always check whether a contract or policy says "days" or "months."
Does the calculator account for leap years?
Yes. Leap year logic is handled automatically. If your date range spans February 29, the calculator includes it in the count. You do not need to adjust for leap years manually.
Can I add months and days together in one calculation?
Yes. In the add/subtract mode, you can combine units. Enter 3 months and 15 days, for example, and the calculator adds the combined total to your start date.
What date format should I use?
The calculator accepts YYYY-MM-DD (ISO 8601 international standard) as well as common regional formats via the date picker. Using the date picker eliminates any ambiguity between MM/DD and DD/MM conventions.
The short version
Date calculations are simple in concept but easy to get wrong when months have different lengths, leap years shift things, and you are working across year boundaries. ToolHQ's date calculator handles two modes in one tool: the difference between any two dates (in days, weeks, months, and years) and the result of adding or subtracting any time period from a start date.
No account needed, no data stored. Enter your dates and get the answer.
Use the free date calculator now
For working-day-specific calculations, use the business days calculator. For counting down to a specific date in real time, try the countdown timer. For Unix timestamp conversion when working with code, use the unix timestamp converter.