Home › Time & Date › Time Duration Calculator

Time Duration Calculator

Enter a start time and an end time to get the exact duration in H:MM:SS, decimal hours, minutes and seconds. Overnight spans and multi-day dates are handled for you.

Last updated:

Start time
: :
End time
: :

Hours 0–23 in 24-hour mode, 1–12 with AM/PM in 12-hour mode. Seconds are optional.

Duration (H:MM:SS)–
Total hours–
Total minutes–
Total seconds–
Advertisement
Advertisement

How to use the Time Duration Calculator

  1. Pick a clock format: 24-hour or 12-hour with AM/PM.
  2. Enter the start and end time in hours, minutes and seconds, or press Now.
  3. Tick Include dates if the span covers more than one day, and choose the dates.
  4. Press Calculate to see the duration as H:MM:SS, decimal hours, minutes and seconds.
  5. Use Multiple rows to list several time ranges and get their total.

How to calculate the time between two times

Convert both times to seconds after midnight (hours × 3600 + minutes × 60 + seconds), subtract the start from the end, and convert the difference back to hours, minutes and seconds. If the end time is smaller than the start time, the span crosses midnight, so add 24 hours (86,400 seconds) before converting.

Example: a night shift from 22:30 to 06:15. The start is 22 × 3600 + 30 × 60 = 81,000 s and the end is 6 × 3600 + 15 × 60 = 22,500 s. The difference is −58,500 s, so add 86,400 s to get 27,900 s. That is 27,900 ÷ 3600 = 7.75 hours, or 7:45:00 (7 hours 45 minutes), or 465 minutes.

Converting minutes to decimal hours

Timesheets and payroll systems often want hours as a decimal number. Divide the minutes by 60: 45 minutes is 45 ÷ 60 = 0.75 hours, so 7 h 45 min becomes 7.75 h. The table shows common values.

MinutesDecimal hoursMinutesDecimal hours
50.083350.583
100.167400.667
150.25450.75
200.333500.833
250.417550.917
300.5601.0

12-hour and 24-hour clock

In the 12-hour clock, 12:00 AM is midnight and 12:00 PM is noon. To convert to the 24-hour clock, add 12 to any PM hour except 12 PM, and change 12 AM to 00. So 9:15 PM is 21:15 and 12:40 AM is 00:40. The calculator does this for you when you switch the clock format, and the result is the same in both modes.

12-hour24-hour12-hour24-hour
12:00 AM00:0012:00 PM12:00
3:30 AM03:303:30 PM15:30
6:45 AM06:456:45 PM18:45
11:59 AM11:5911:59 PM23:59

Spans longer than a day

Without dates, any two clock times are at most 24 hours apart. For longer spans, such as a 36-hour shift or a multi-day trip, tick “Include dates” and pick the start and end dates. The duration then shows total hours beyond 24 (for example 31:15:00) together with a days-hours-minutes breakdown. Daylight saving changes are not applied, so a span across a clock change may be off by an hour.

Frequently asked questions

How do I calculate the time between two times?

Convert both times to minutes or seconds after midnight, subtract the start from the end and convert back to hours and minutes. If the result is negative, the span crosses midnight, so add 24 hours.

How many hours is 22:30 to 06:15?

It is 7 hours 45 minutes, or 7.75 hours. The end time is earlier than the start, so the calculator treats it as the next morning.

What happens if the end time is earlier than the start time?

Without dates, the calculator assumes the end is on the next day and shows a note saying so. With dates switched on, an end before the start is reported as an error so you can fix the dates.

How do I convert minutes to decimal hours?

Divide the minutes by 60. For example 45 minutes is 0.75 hours and 20 minutes is about 0.333 hours, so 7 hours 45 minutes is 7.75 hours.

Can it calculate durations longer than 24 hours?

Yes. Tick Include dates and set a start and end date. The H:MM:SS result then goes beyond 24 hours, for example 52:30:00, and the breakdown shows days, hours and minutes.

Can I add up several time ranges?

Yes. Switch to Multiple rows, enter a start and end time on each row and the tool sums all the durations into one total, counting overnight rows correctly.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Hours Calculator (Time Card)Weekly time card with breaks, overtime, pay, print and CSV.Days Between DatesCount days, weeks, months and business days between two dates.Date CalculatorAdd days to a date or count days between dates.StopwatchOnline stopwatch with laps, fullscreen mode and CSV export.Audio Fade In and OutAdd a smooth fade in and fade out to any song or recording, then save it as MP3 or WAV.Battery Charge Time CalculatorHow long to charge a battery: mAh or Ah, charger current, efficiency and current charge %.Commute Cost CalculatorDaily, monthly and yearly cost of driving or taking transit to work, plus hours spent.Decimal Hours ConverterConvert decimal hours to hours and minutes and back, with a payroll timesheet.Unix Timestamp ConverterConvert epoch timestamps to dates and back.Tally CounterMultiple named click counters with keyboard shortcuts and vibration.TeleprompterFree online teleprompter with smooth auto-scroll, speed in words per minute, mirror and fullscreen.Time Card CalculatorWeekly timesheet: clock in/out times and breaks to total hours, overtime and gross pay.Business Hours CalculatorCount working hours and minutes between two dates, skipping nights, weekends and holidays.Flight Arrival Time CalculatorFind your local arrival time across time zones from departure time and flight length.Golden Hour CalculatorMorning and evening golden hour and blue hour times for any location and date.When to Leave for the Airport CalculatorWhen to leave home and arrive at the airport, from your flight, bags, security and drive.Hours From Now CalculatorFind what time it will be in any number of hours from now, or what time it was hours ago.Snowflake ID to TimestampDecode Discord, X/Twitter and custom snowflake IDs into creation date, worker ID and sequence.Time TrackerTrack time per task and project with start/stop timers, weekly totals, billable hours and CSV export.Wedding Day Timeline GeneratorBuild a minute-by-minute wedding day schedule from your ceremony time, printable for each vendor.5K Training Plan GeneratorRun/walk beginner, finish or time-goal 5K plans by race date, with daily sessions and paces.Baby Kick CounterCount baby's kicks with one tap, see the time to 10 movements and track your usual pattern.Knitting Row CounterCount rows with a big tap button, pattern repeats, increase reminders and saved projects.Nap CalculatorFind when to wake from a 20-minute power nap or 90-minute nap, plus the best time to nap.Stock Market Hours (Is the Market Open?)Live NYSE and Nasdaq status with countdown to the open or close, extended hours and holidays.Binge Watch CalculatorFind how long it takes to binge a TV series and the date you'll finish at your daily pace.Sehri and Iftar TimesRamadan timetable of sehri (suhoor) end and iftar times for any city, with a live countdown.Shabbat TimesCandle lighting and Havdalah times for any city and week, plus a table of upcoming Fridays.Meat Smoking Time CalculatorSmoke time for brisket, pork butt, ribs and more, with stall, rest and when to start for dinner.Telling Time GameKids' clock game: read the analog clock or set the hands, with 5 levels, stars and hints.Telling Time Worksheet GeneratorPrintable clock worksheets: read or draw the time to the hour, half, quarter, 5 or 1 minute, with answer key.Time Blocking PlannerDrag to create time blocks on a day or week grid, color them by category and compare plan vs actual.Time Clock Rounding CalculatorRound punch times to 5, 6 or 15 minutes (7-minute rule) and see rounded payable hours.Day Count Convention CalculatorDay count and year fraction for 30/360, 30E/360, Actual/360, Actual/365 and Actual/Actual.Pressure Cooker Time ConverterConvert stovetop, oven or slow cooker recipes to pressure cooker time and liquid.Sleep Regression CalculatorDates of your baby's 4, 8, 12 and 18 month sleep regressions and growth spurts.Sleep Schedule AdjusterGradually shift your bedtime and wake-up time with a day-by-day plan.
See all 34 Time Calculators →