Time & duration calculator

Time Duration Calculator

Find the exact duration between any two dates and times — same day, overnight, or weeks apart. Pick a start and an end and the total updates as you type, with no payroll framing to work around.

Enter your start and end

Pick exact dates and times — same day, overnight, or weeks apart all work the same way. No sign-up, nothing stored.

Set the end date later than the start for spans over a day — no extra step needed.

Total duration

8h 00m
End must be on or after the start
Decimal hours
8.00
Total hours
8
Total minutes
480
Total seconds
28,800

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.

  1. 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.
  2. 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.
  3. Read your result.The total appears instantly as days, hours and minutes, plus decimal hours, total hours, minutes, and seconds.
  4. 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.

Worked example · Tue 6:00 PM to Fri 9:00 AM
Start: Tue 25 Aug, 6:00 PM
End: Fri 28 Aug, 9:00 AM
That'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.

StartEndResultDecimal
Mon 9:00 AMMon 5:00 PM8h 00m8.00
Mon 8:15 AMMon 4:45 PM8h 30m8.50
Mon 10:00 PMTue 6:00 AM8h 00m8.00
Mon 2:00 PMWed 9:00 AM1d 19h 00m43.00
Tue 6:00 PMFri 9:00 AM2d 15h 00m63.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.

About the author

Fletcher Langley
Time & Scheduling Specialist · 24hourto12hour.com

Operations and workforce-systems specialist with 14+ years inside shift-based industries and payroll platforms, and a BS in Industrial Engineering. Fletcher writes and reviews the calculators, converters, and guides here — from overnight-shift math to decimal payroll hours — drawing on years spent translating between 12-hour, 24-hour, and military time for real timesheets.

Written & reviewed by Fletcher Langley · Last updated: August 2026