Time Duration Calculator
Compute hours and minutes between two times.
Scratchpad (not saved)
Save to create a persistent, shareable workspace.
What This Calculator Does
Calculate the exact time duration — hours and minutes — between any two times. This calculator handles same-day and overnight spans, including automatic next-day crossover when the end time is earlier than the start time.
It combines Start Hour, Start Minute, End Hour, End Minute to estimate Duration, Total Minutes.
Formula & Method
Notation used in the formulas: = Duration; = Start Hour; = Start Minute; = End Hour; = End Minute.
Method summary: inputs are normalized to consistent units, core equations are evaluated, then secondary values are derived and rounded for display.
Use this for shift duration calculations, time-tracking, travel planning, and any scenario where you need exact hours and minutes between two clock times on the same or consecutive days.
Worked Examples
Same-day example: 9:15 AM to 4:45 PM
Start: 9:15 AM (09:15) End: 4:45 PM (16:45) Duration = 16:45 − 09:15 = 7 hours 30 minutes
Overnight example: 10:30 PM to 7:15 AM
Start: 10:30 PM (22:30) End: 7:15 AM (07:15) 7:15 < 22:30, so this is an overnight span. Duration = (24:00 − 22:30) + 07:15 = 1:30 + 7:15 = 8 hours 45 minutes
How Overnight and AM/PM Crossovers Work
When the end time is earlier than the start time, the calculator automatically assumes the end time is on the next day. For example, a shift from 11:00 PM to 6:00 AM is treated as a 7-hour overnight shift rather than returning a negative result.
For AM/PM entry: make sure to select the correct AM or PM suffix. 12:00 PM is noon; 12:00 AM is midnight. The calculator handles 12-hour clock inputs by converting them to 24-hour format before computing.
How Many Hours Between Common Times
Here are pre-calculated durations for the most commonly searched time pairs:
| Start Time | End Time | Duration |
|---|---|---|
| 8:00 AM | 4:00 PM | 8 hours 0 minutes |
| 8:00 AM | 4:30 PM | 8 hours 30 minutes |
| 9:00 AM | 5:00 PM | 8 hours 0 minutes |
| 9:00 AM | 5:30 PM | 8 hours 30 minutes |
| 9:00 AM | 6:00 PM | 9 hours 0 minutes |
| 6:00 AM | 6:00 PM | 12 hours 0 minutes |
| 12:00 AM | 12:00 PM | 12 hours 0 minutes (midnight to noon) |
| 10:00 PM | 6:00 AM | 8 hours 0 minutes (overnight) |
| 11:00 PM | 7:00 AM | 8 hours 0 minutes (overnight) |
Shift-Work Start and End Time Reference
Common shift combinations for 8-hour, 10-hour, and 12-hour schedules:
| Shift Length | Start Time | End Time | Notes |
|---|---|---|---|
| 8-hour | 7:00 AM | 3:00 PM | Day shift (first shift) |
| 8-hour | 3:00 PM | 11:00 PM | Afternoon shift (second shift) |
| 8-hour | 11:00 PM | 7:00 AM | Night shift (third shift, overnight) |
| 10-hour | 6:00 AM | 4:00 PM | Common in manufacturing |
| 10-hour | 4:00 PM | 2:00 AM | Evening 10-hour (overnight) |
| 12-hour | 7:00 AM | 7:00 PM | Day 12-hour (nursing, industrial) |
| 12-hour | 7:00 PM | 7:00 AM | Night 12-hour (overnight) |
All overnight shifts crossing midnight are handled automatically — enter any start and end time and the calculator computes the correct duration.
Common Mistakes
- Forgetting to set AM or PM correctly — entering 6:00 instead of 6:00 PM shifts the result by 12 hours.
- Not accounting for overnight crossover — if your shift ends the next morning, the end time will appear earlier than the start time, which is handled automatically by this calculator.
- Confusing time duration with a specific clock time — a duration of 8h 30m is not the same as 8:30 AM.
When Not To Use This Calculator
- Multi-day spans longer than 24 hours — use the date difference calculator at /date/date-difference instead.
- Time zone conversions — if your start and end times are in different time zones, use the time zone converter at /date/time-zone-converter first.
Frequently Asked Questions
- How do you calculate time duration?
- Subtract the start time from the end time. If both times are on the same day, the result is straightforward. If the end time is earlier than the start time (overnight), add 24 hours to the result to get the correct positive duration.
- How many hours between two times?
- Enter both times in this calculator and it will compute the exact hours and minutes between them. For example, 9:00 AM to 5:30 PM = 8 hours 30 minutes. 10:00 PM to 6:00 AM = 8 hours (overnight).
- Can this handle overnight times (e.g. 11 PM to 6 AM)?
- Yes. When the end time is earlier than the start time, the calculator automatically assumes the end time is the following day and computes the overnight duration correctly.
- How do I calculate elapsed time?
- Enter the start time and end time. The calculator returns elapsed hours and minutes. For spans longer than 24 hours, use the date difference calculator instead.
Inputs Used
- Start Hour: Used directly in the calculation.
- Start Minute: Used directly in the calculation.
- End Hour: Used directly in the calculation.
- End Minute: Used directly in the calculation.
Related Calculators
- Date Difference Calculator - Compute days, weeks, and approximate months between two dates.
- Add/Subtract Days Calculator - Find a future or past date by adding or subtracting days.
- Work Days Calculator - Count business days between two dates excluding weekends.
- Countdown Calculator - Count down days remaining until a target date.
- Age Calculator - Calculate exact age from birth date to a reference date.
- Weekday Finder - Find the day of week for any calendar date.
- Time Zone Converter - Convert a time between UTC offsets.
- Unix Timestamp Calculator - Convert a date-time to Unix epoch seconds.