Skip to main content
🟢 Beginner

Time Duration Calculator

Find the exact duration between two times in hours, minutes, and seconds. Great for work logs and event timing. Free time duration calculator, no signup.

★★★★★ 4.8/5 · 📊 0 calculations · 🔒 Private & free

How to Calculate Time Duration

Calculating the duration between two times requires converting hours and minutes to a total number of minutes from a common reference point (midnight), subtracting, and then converting back to hours and minutes. This method works for any two times within the same day or spanning midnight.

Step-by-step example: From 09:45 to 14:20

  1. Convert start time to minutes from midnight: 9 × 60 + 45 = 585 minutes
  2. Convert end time to minutes from midnight: 14 × 60 + 20 = 860 minutes
  3. Subtract: 860 − 585 = 275 minutes
  4. Convert back: 275 ÷ 60 = 4 hours remainder 35 minutes
  5. Result: 4 hours 35 minutes

Crossing midnight: If the end time is earlier than the start time, you are spanning midnight. Add 1,440 minutes (24 hours) to the end time's total. For example, from 22:30 to 02:15 the next day: end total = 2×60+15 = 135 min → 135+1440 = 1,575 min; start = 22×60+30 = 1,350 min; duration = 1,575−1,350 = 225 min = 3 hours 45 minutes.

Start TimeEnd TimeDurationDecimal Hours
08:0016:308 hr 30 min8.50 h
09:1517:458 hr 30 min8.50 h
22:0006:00 (+1d)8 hr 0 min8.00 h
07:3012:004 hr 30 min4.50 h
13:4518:204 hr 35 min4.583 h

Adding and Subtracting Times

Time arithmetic uses base-60 (sexagesimal) for minutes and seconds, unlike our everyday base-10 (decimal) system. This requires an extra carry/borrow step that trips up many people.

Adding times (e.g., totalling split times):

Subtracting times:

Running application: Adding race splits is a classic use case. A half-marathon split of 1:54:30 plus a second-half split of 2:02:15 gives total time = 1:54:30 + 2:02:15. Minutes: 30+15=45. Hours: 1+2=3, plus carry 0. But wait: 54+2=56 minutes... result is 3:56:45. This technique is used by race officials to compute net chip times and by coaches to analyse pacing.

Duration in Different Time Units

Different contexts require time expressed in different units. Converting between them accurately is essential for payroll, scheduling, sports analysis, and project management.

Duration (h:mm)Total MinutesDecimal HoursTotal Seconds
0:30300.5001,800
1:00601.0003,600
1:30901.5005,400
2:001202.0007,200
3:302103.50012,600
4:002404.00014,400
8:004808.00028,800
24:001,44024.00086,400

For payroll purposes, decimal hours are typically required. Convert minutes to decimal by dividing by 60: 45 minutes = 45/60 = 0.75 hours. Then multiply by the hourly rate: 8.75 hours × $22/hr = $192.50 gross pay. Rounding to the nearest quarter-hour is common in US payroll systems, though many modern systems track to the minute.

Time Zones and Cross-Zone Duration

When calculating duration across time zones, always convert both times to UTC (Coordinated Universal Time) first, then subtract.

Example: A video call starts at 9:00 AM PST (UTC−8) and ends at 2:00 PM EST (UTC−5).

Daylight Saving Time (DST) caution: When a DST transition occurs during your duration, you must account for the 1-hour shift. Clocks spring forward in spring (losing 1 hour) and fall back in autumn (gaining 1 hour). A meeting duration spanning a DST transition may be 1 hour shorter or longer than a simple subtraction suggests.

International flight durations: Airlines publish scheduled block times (gate departure to gate arrival), but the "actual" flight time depends on the time zones of origin and destination. A flight from New York to London departing at 21:00 EST and arriving at 09:00 GMT the next day is 3+9 = ... First, EST is UTC−5, so 21:00 EST = 02:00 UTC. Next day 09:00 GMT = 09:00 UTC. Duration = 7 hours. The local clocks appear to cross 12 hours but only 7 hours of actual time elapsed.

Practical Work and Payroll Applications

Time duration calculation is a daily task in workforce management, freelancing, and professional billing. Common scenarios include:

Clock-InClock-OutBreakNet HoursPay at $18/hr
08:0017:0060 min8.00 h$144.00
07:3016:4530 min8.75 h$157.50
09:1518:3045 min8.50 h$153.00
06:0014:3030 min8.00 h$144.00

Time Duration in Sports and Athletics

Sports timing is one of the most precise and emotionally significant applications of time duration. A margin of 0.01 seconds can separate gold from silver in Olympic sprinting.

Running splits: Marathon runners track 5K splits, half splits, and mile splits to gauge pacing. The ideal even-split marathon has each 5K in the same time; a negative split means the second half was faster than the first (the preferred strategy for optimal performance). Adding and comparing split times requires accurate time arithmetic.

Common race durations:

EventElite TimeAverage FinisherCutoff
5K~13 min (men), ~14:30 (women)30–35 min60–90 min
10K~27 min (men), ~30 min (women)55–65 min90–120 min
Half Marathon~58 min (men), ~65 min (women)2:10–2:303:30–4:00
Marathon~2:01 (men), ~2:11 (women)4:30–5:006:00–8:00

ISO 8601 and Standard Time Formats

ISO 8601 is the international standard for representing dates and times. Duration is expressed as PnYnMnDTnHnMnS, where P is the duration designator, T separates date from time components. For example, P2Y3M10DT1H30M represents a duration of 2 years, 3 months, 10 days, 1 hour, and 30 minutes.

In software development, duration calculations often use milliseconds (ms) as the base unit: 1 second = 1,000 ms; 1 minute = 60,000 ms; 1 hour = 3,600,000 ms; 1 day = 86,400,000 ms. JavaScript's Date.getTime() returns milliseconds since the Unix epoch (1970-01-01 00:00:00 UTC), making duration calculation as simple as subtracting two timestamps.

Frequently Asked Questions

How do I calculate the duration between 8:30 AM and 5:15 PM?

From 8:30 to 17:15: convert both to minutes — start = 8×60+30 = 510 min; end = 17×60+15 = 1,035 min. Difference = 1,035−510 = 525 min = 8 hours 45 minutes.

How do I calculate hours for a time card or payroll?

Convert clock-in and clock-out to minutes from midnight. Subtract to get total minutes. Divide by 60 for decimal hours. Subtract break time in decimal form. Multiply by hourly wage. Example: 8:15 AM to 4:45 PM with 30-min break = (8.75h − 0.5h) × hourly rate = 8.25h × rate.

How do I calculate the duration of a race?

Subtract the start time from the finish time. Example: gun start 7:05 AM, finish 9:47 AM. Duration = 9h 47m − 7h 5m = 2 hours 42 minutes. If using chip timing, subtract the chip start (when you crossed the start mat) from chip finish.

What is the difference between elapsed time and duration?

They describe the same concept differently. Elapsed time is measured continuously (a stopwatch counting up from zero). Duration is calculated by subtraction (end time minus start time). Both give the same result — the total length of time from start to finish.

How do I handle a duration that crosses midnight?

If the end time is less than the start time (in 24-hour format), add 1,440 minutes (24 hours) to the end time before subtracting. Example: from 23:00 to 02:30 → end = 02:30 = 150 min + 1,440 = 1,590 min; start = 1,380 min; duration = 210 min = 3 hours 30 minutes.

How do I convert minutes to decimal hours?

Divide the minutes by 60. Examples: 15 min = 0.25 h; 30 min = 0.50 h; 45 min = 0.75 h; 20 min = 0.333 h; 50 min = 0.833 h. This decimal form is required for most payroll and billing calculations.

How long is 1.5 hours in hours and minutes?

1.5 hours = 1 hour and 30 minutes. To convert decimal hours to hours and minutes: take the whole number (hours), multiply the decimal part by 60 for minutes. 1.75 hours = 1 hour and 45 minutes; 2.333 hours = 2 hours and 20 minutes.

Can this calculator handle durations longer than 24 hours?

This calculator handles same-day or overnight (crossing midnight once) durations. For multi-day durations, use a date difference calculator that also accepts full dates. Most multi-day durations arise in project management, long hospital stays, or multi-day events.

How do I add up multiple time durations?

Convert each duration to total minutes, add all the minute totals together, then convert back to hours and minutes. Example: 1h 45m + 2h 30m + 0h 55m = 105 + 150 + 55 = 310 min = 5 hours 10 minutes.

How are time durations used in interval training?

Interval training specifies work and rest durations precisely. A typical session might be 8 × 400m at 5K pace with 90-second rest intervals. Coaches calculate total workout duration by adding work intervals (time per rep × number of reps) plus rest intervals. For 8 reps at 90 seconds each = 12 min work + 7 rest intervals × 90s = 10.5 min rest = total ~22.5 minutes.

Sleep Duration: The Forgotten Time Calculation

One of the most personally relevant time duration calculations is sleep tracking. The American Academy of Sleep Medicine recommends 7–9 hours per night for adults, 8–10 for teenagers, and 9–12 for school-age children. Despite this, surveys consistently show that 35% of US adults sleep fewer than 7 hours on weeknights — a chronic sleep deficit with significant health consequences.

Calculating actual sleep duration requires accounting for sleep latency (time to fall asleep, typically 10–20 minutes), any night wakings, and time in bed after natural awakening. If you get into bed at 10:30 PM, fall asleep at 11:00 PM, wake briefly at 3:00 AM for 15 minutes, and wake fully at 6:45 AM: total time in bed = 8h 15m; sleep latency = 30 min; night waking = 15 min; actual sleep = 8h 15m − 30m − 15m = 7h 30m.

Sleep trackers (Fitbit, Oura, Garmin) automate this calculation but add their own classification errors. They typically detect sleep stages (light, deep, REM) through accelerometry and heart rate, estimating total sleep time within ~30 minutes of polysomnography (lab gold standard) in validation studies.

Chronic sleep debt accumulates when you consistently sleep less than your biological need. A person needing 8 hours but sleeping 6.5 hours nightly accumulates a debt of 1.5 hours/night × 5 workdays = 7.5 hours per week. Research suggests you cannot fully "repay" sleep debt with weekend catch-up — the cognitive and metabolic effects of chronic restriction persist despite recovery sleep. Tracking sleep duration consistently over weeks using a smart watch or dedicated app provides actionable data: if your weekly average sleep drops below 7 hours, that is a measurable signal that schedule or lifestyle changes are needed. The time duration calculator can help you plan: if you need to wake at 6:00 AM and want 8 hours of sleep, count backwards — you need to be asleep by 10:00 PM, which likely means getting into bed at 9:30–9:45 PM accounting for sleep latency.

Time Duration in Project Management and Scheduling

Accurate time duration calculation is essential in project management. Every project is fundamentally a collection of tasks with durations and dependencies, and managing those durations determines whether the project finishes on schedule and within budget.

Critical Path Method (CPM): The critical path is the longest sequence of dependent tasks from project start to finish. Any delay in a critical path task delays the entire project by the same amount. Calculating task durations in hours and then converting to calendar days (accounting for working hours per day) requires careful time arithmetic.

Earned Value Management (EVM): EVM tracks whether a project is ahead or behind schedule by comparing actual duration spent to planned duration for completed work. Schedule Performance Index (SPI) = Earned Value / Planned Value. SPI > 1.0 means ahead of schedule; SPI < 1.0 means behind.

Agile sprints: Modern software development uses fixed time-box sprints, typically 2 weeks (336 hours of calendar time). Velocity is measured in story points completed per sprint. Duration planning is central to sprint planning and release forecasting.

Common project duration units and their conversions:

UnitHoursWorking Days (8h)Calendar Weeks
1 working day8 h10.2
1 working week40 h51
1 sprint (2 weeks)80 h102
1 month (approx.)160 h~21~4.3
1 quarter480 h~63~13

When converting project hours to calendar time, remember to account for non-working days (weekends, holidays), overtime caps, and team availability percentages. A 200-hour task at 80% allocation (engineer also doing other work) takes 250 elapsed hours ÷ 8 hours/day = 31.25 working days ÷ 5 days/week ≈ 6.25 working weeks of calendar time.

History of Timekeeping and the 60-Based System

The base-60 (sexagesimal) system for measuring time was developed by the ancient Sumerians and Babylonians more than 4,000 years ago. Their number system, which had 60 as its base, was likely chosen because 60 is divisible by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, and 30 — making it exceptionally convenient for fractions. When we divide an hour into 60 minutes, or a minute into 60 seconds, we are using a Babylonian convention that has survived essentially unchanged for four millennia.

The mechanical clock, invented in 13th-century Europe, divided the day into 24 hours (a concept inherited from Egyptian sundials). The second was originally defined as 1/86,400 of a mean solar day (24 × 60 × 60 = 86,400 seconds per day). Today, the SI definition of the second is far more precise: 9,192,631,770 vibrations of a caesium-133 atom — enabling atomic clocks that lose or gain less than one second in 300 million years.

For everyday time duration calculations, understanding the 60-based arithmetic is essential. Unlike decimal arithmetic where carrying occurs at 10, 100, 1,000, etc., time arithmetic carries at 60 (seconds → minutes), 60 again (minutes → hours), and 24 (hours → days).

<h2>Digital Time Formats: 12-Hour vs 24-Hour</h2>
<p>The world uses two main time display formats:</p>
<p><strong>12-hour format (AM/PM):</strong> Used primarily in the US, Canada, Australia, and parts of Asia. The day is divided into two 12-hour periods: AM (ante meridiem, before noon) and PM (post meridiem, after noon). Midnight is 12:00 AM; noon is 12:00 PM — a source of frequent confusion since 12 AM is technically the start of the AM period, not the end.</p>
<p><strong>24-hour format (military time):</strong> Used internationally, in scientific and medical contexts, and by the military worldwide. Midnight is 00:00, noon is 12:00, 3 PM is 15:00. This format eliminates AM/PM ambiguity entirely and makes duration calculations simpler (no need to check whether a time crosses noon).</p>
<table><thead><tr><th>12-Hour</th><th>24-Hour</th><th>12-Hour</th><th>24-Hour</th></tr></thead><tbody>
<tr><td>12:00 AM (midnight)</td><td>00:00</td><td>12:00 PM (noon)</td><td>12:00</td></tr>
<tr><td>1:00 AM</td><td>01:00</td><td>1:00 PM</td><td>13:00</td></tr>
<tr><td>6:30 AM</td><td>06:30</td><td>6:30 PM</td><td>18:30</td></tr>
<tr><td>11:59 AM</td><td>11:59</td><td>11:59 PM</td><td>23:59</td></tr>
</tbody></table>
<p>When calculating duration, always convert both times to 24-hour format first to avoid AM/PM errors. For example, "from 11:00 AM to 1:00 PM" is straightforward (13:00 − 11:00 = 2 hours), but if the times are given as "11:00 and 1:00" without AM/PM, there is genuine ambiguity.</p>
},{"@type":"Question","name":"How do I calculate hours for a time card?","acceptedAnswer":{"@type":"Answer","text":"Convert clock times to minutes from midnight, subtract, divide by 60 to get decimal hours. For example: clock in 8:15 AM (495 min), clock out 4:45 PM (1005 min). Duration = 510 min = 8.5 hours. For a $20/hr rate: 8.5 × $20 = $170."}},{"@type":"Question","name":"How do I calculate the duration of a race?","acceptedAnswer":{"@type":"Answer","text":"Subtract start time from finish time. For example: started at 7:05 AM, finished at 9:47 AM. Duration = 9h 47m − 7h 5m = 2 hours 42 minutes. This is your official chip time."}},{"@type":"Question","name":"What is the difference between elapsed time and duration?","acceptedAnswer":{"@type":"Answer","text":"Elapsed time is the wall-clock time from start to finish, which can span midnight or multiple days. Duration is the total length of time in hours and minutes. They are the same thing calculated differently — elapsed time is measured continuously, duration is calculated by subtraction."}}]}