What this time duration calculator does
This tool answers a plain question: how much time passes between one moment and another? Pick a start date and time and an end date and time, and it returns the span as hours and minutes, decimal hours, total hours, total minutes, and total seconds. Unlike a payroll-style calculator, there's no break field to fill in — it's just the raw gap between two points in time.
Because both the start and the end carry their own date, spans longer than a single day just work — there's no separate "how many extra days" field to fill in and no mental math about whether a shift crossed one midnight or three. Planning a trip that runs from Tuesday evening to Friday morning, or timing how long a project has been open? Set the end date later than the start date and the total adjusts automatically.
How to use it
Four quick steps — the date pickers do the day-counting for you.
- Enter your start date and time.Pick the date, then the time. Both 12-hour (9:00 AM) and 24-hour (09:00) input work.
- Enter your end date and time.Set the end date the same as the start for a same-day span, one day later for overnight, or further out for a multi-day span. Nothing else to configure.
- Read your result.The total appears instantly as days, hours and minutes, plus decimal hours, total hours, minutes, and seconds.
- Copy, print, or download it.Reuse the result in a message, on paper, or as a CSV row for your records.
How the duration is calculated
Because the start and the end are each a full date and a time, the calculator never has to guess which calendar day a time belongs to — it just subtracts one exact moment from the other. That's what makes multi-day spans foolproof: there's no "how many extra days" number for you to work out and possibly miscount.
Tue 25 Aug, 6:00 PMEnd:
Fri 28 Aug, 9:00 AMThat's 3 calendar days apart, but 9:00 AM is earlier in the day than 6:00 PM
So the actual span is 2 days, 15 hours — 63 hours total
63 × 60 = 3,780 minutes = 2d 15h 00m
Same-day and overnight spans
If the start and end share the same date, the calculator simply subtracts the two times. Set the end date one day later than the start — say 10:00 PM to 6:00 AM the next morning — and it correctly returns 8 hours, because the date itself tells the tool which day each time belongs to, rather than a rule that infers a midnight crossing from the numbers alone.
Multi-day spans
The same logic scales up without changing how you use the tool: three calendar days apart with an earlier end-of-day time comes to 63 hours, not 72, and the date pickers get that right automatically — no extra field, no manual day count to double-check.
Decimal hours, minutes and seconds
Alongside hours and minutes, the result also shows decimal hours (useful for spreadsheets and quick math), total hours, total minutes, and total seconds. To convert hours and minutes to decimal by hand, divide the minutes by 60 — 30 minutes becomes 0.50. The dedicated time to decimal converter does that conversion on its own.
Quick examples
Common spans and what they come to.
| Start | End | Result | Decimal |
|---|---|---|---|
| Mon 9:00 AM | Mon 5:00 PM | 8h 00m | 8.00 |
| Mon 8:15 AM | Mon 4:45 PM | 8h 30m | 8.50 |
| Mon 10:00 PM | Tue 6:00 AM | 8h 00m | 8.00 |
| Mon 2:00 PM | Wed 9:00 AM | 1d 19h 00m | 43.00 |
| Tue 6:00 PM | Fri 9:00 AM | 2d 15h 00m | 63.00 |
Working in 24-hour time and want to double-check a value reads the way you think? The military time converter and the 24-hour clock chart map every hour to its 12-hour equivalent.
Who uses it, and for what
- Event and travel planners working out how long a flight, trip, or conference actually runs, including overnight legs.
- Project managers timing how long a task, ticket, or deployment window has been open.
- Students & researchers measuring the length of a study session, experiment, or observation period.
- Anyone comparing two clock times without needing the payroll framing of a shift calculator. If you do need breaks and decimal payroll hours front and center, the hours calculator is built for that.
Need to add or subtract a fixed amount of time from a single clock time, rather than compare two times? Use the add & subtract time calculator. Tallying a full week of shifts instead of one span? The time card calculator is the better fit, and for spans measured in workdays rather than hours, try the business days calculator.
Frequently asked questions
How do I calculate the duration between two times?
Pick a start date and time and an end date and time. The calculator subtracts one from the other and returns the result as hours and minutes, decimal hours, total hours, total minutes, and total seconds.
Does this tool handle spans longer than 24 hours?
Yes, automatically. Just set the end date to a later calendar day than the start date — there's no separate field to fill in or day count to work out by hand.
What happens if the end time is earlier in the day than the start time?
As long as the end date is on or after the start date, it's handled correctly. For example, 10:00 PM on one date to 6:00 AM the next date returns 8 hours.
What if I accidentally set an end date before the start date?
The calculator shows a warning and withholds a result, since a negative duration isn't meaningful. Adjust the end date to on or after the start date to see the total.
How is this different from the hours calculator?
The hours calculator is built around payroll, with a break field and decimal hours as the headline figure. This tool gives the plain gap between two exact date-times — no break deduction — and it's built for spans of several days for deadlines, trips, or events rather than a single shift.
Can I use 24-hour or military time as input?
Yes — the time fields accept both 12-hour and 24-hour input. If a 24-hour value is unfamiliar, the military time converter shows its 12-hour equivalent.
Is the calculator free, and is my data private?
It is completely free with no sign-up. The calculation runs entirely in your browser — your dates and times are never uploaded or stored on a server.
