Time DurationCalculator

Pick a start time and an end time — on the same afternoon or years apart — and this Time Duration Calculator shows exactly how much time lies between them, from years right down to seconds. It reads 12-hour and 24-hour clock formats, follows elapsed time past midnight, and turns every time difference into decimal hours for payroll calculations, work hours tracking, project planning and day-to-day time management.

In one line: Time Duration = End Time − Start Time
Your Local Time
121234567891011
12:00:00 PM
Monday, June 22, 2026
Auto
Today Elapsed
0hrs
:
0min
:
0sec
0% of day
Time on Page
0m0s
Day Remaining
0h0m
The end is earlier than the start, so this is how far the end sits before the start.

0Years
0Months
0Days
0Hours
0Minutes
0Seconds

The Same Span in Other Units

0Total Days
0Total Hours
0Total Minutes
0Total Seconds
0Total Weeks
0Milliseconds
0.00Decimal Hours

See Your Time Duration on a Chronograph

Two watch faces mirror the start time and end time you entered, and the arc between them carries the time duration. Change either input and the hands, gauges and timeline move with it, so you can check the elapsed time at a glance.

START TIME
121234567891011
--:--:--
0h 0m 0s
DURATION
END TIME
121234567891011
--:--:--
0Days
0Hours
0Minutes
0Seconds
Start
End

What Is a Time Duration Calculator?

A calculator for one question: how long is it from this moment to that one?

A Time Duration Calculator measures the gap between a start time and an end time. Give it two moments — two clock readings, two calendar dates or a full date and time for each — and it reports the time difference in hours, minutes and seconds, plus the larger units when the span runs for days, months or years.

A clock answers "what time is it?". A duration calculator answers a different question — how long passed, or will pass, between two points — and that is the number you need for shift lengths, billing, deadlines and travel.

Because it works with complete date-time stamps, the result stays correct when the span crosses midnight, the end of a month, a leap day or a daylight saving time change. Whether the interval is ten minutes or ten years, the method is the same.

Time duration vs elapsed time

In everyday use, time duration and elapsed time describe the same thing: the amount of time that has gone by between two points. "Duration" is the term used in formal standards such as ISO 8601, where a span is written like PT2H30M; "elapsed time" is the plainer, conversational version.

The distinction that matters is clock time versus time duration. 3:45 PM is a position on the clock; 2 hours 30 minutes is a length. A time difference calculator like this one takes two positions and hands back the length between them.

Interactive: Clock Time vs Duration
9:00 AMSTART5:30 PMEND8h 30mClock Time(a point)Clock Time(a point)Duration(a span)

Time Duration Formula

Every time interval calculation rests on one subtraction. Change the numbers in the panel to watch it work.

Formula for Hours and Minutes

At its core, a time duration is one subtraction:

Duration = End Time − Start Time

For two times on the same day, rewrite both in 24-hour time, then take the starting time away from the ending time — hours and minutes in separate columns. 17:30 − 09:00 leaves 8 hours 30 minutes.

When the minutes column comes out negative, take one hour from the hours column and add 60 to the minutes. This borrowing step is the carryover method, and it is exactly what the calculator does in its step-by-step calculation — just without the chance of a slip.

Formula for Decimal Hours

Payroll calculations, invoices and work hours tracking usually want decimal hours rather than hours and minutes:

Decimal Hours = Hours + (Minutes ÷ 60)

So 7 hours 45 minutes becomes 7 + (45 ÷ 60) = 7.75 decimal hours. A Decimal Hour Calculator does this in one move, and the result panel above already shows the decimal figure next to the normal breakdown. For clock-to-clock totals, the Hours Calculator gives the same number for a single shift.

Interactive: Try the Formula
:
−
:
Hours & Minutes:8h 30m
Decimal Hours:8.50
Total Minutes:510
00:0006:0012:0018:0024:00

How to Use the Time Duration Calculator

Four quick steps, all inside your browser — nothing to install and no account to create.

01

Set the Start

Choose the date and start time with the picker or type them in. The time calculator understands both 12-hour time with AM/PM and 24-hour time, depending on your device settings.

02

Set the End

Enter the end time, or tap "Now" to use this exact moment. Overnight duration and spans of several days need no special handling — just give the real dates.

03

Calculate

Press "Calculate Duration". You get years, months, days, hours and minutes, a one-line summary you can copy, and the same span as total minutes, total seconds and decimal hours.

04

Check the Chronograph

Scroll to the chronograph to see the time duration drawn out: one dial for the start time, one for the end time, and the elapsed time on the bridge in between.

How Time Duration Is Calculated

Behind the scenes, the time duration calculator converts times and subtracts them using calendar-aware arithmetic.

Under the hood, the result is produced in four stages:

  1. Both the start time and the end time are turned into a full date-time value in 24-hour time, so AM and PM can never be mixed up.
  2. Each unit is subtracted from its partner — seconds from seconds, minutes from minutes, and so on up to years.
  3. Any unit that drops below zero borrows from the next larger one — 60 seconds, 60 minutes, 24 hours or a month's worth of days. That is the carryover method.
  4. Month lengths of 28, 29, 30 or 31 days and the leap year rules of the Gregorian Calendar are applied, so the day count is exact.

Calculating durations across midnight and multiple days

On a 12-hour clock, a time duration that passes midnight looks backwards: a shift from 10:00 PM to 6:00 AM seems to end before it starts, even though eight hours have gone by.

The tool avoids that trap by reading dates as well as clock times — 6:00 AM on 22 June is plainly later than 10:00 PM on 21 June. That is why this Date and Time Duration Calculator gets overnight duration and multi-day spans right without any manual "+24 hours" fix.

Interactive: Crossing Midnight
MIDNIGHTDay 1Day 210:00 PMStart6:00 AMEnd= 8 hours12PM6PM6AM12PM

12-Hour and 24-Hour Time Formats

The way a clock displays hours decides how you read — and how a time calculator converts — every start time and end time.

The 12-hour clock format runs from 12:00 to 12:59 twice a day, using AM for midnight-to-noon and PM for noon-to-midnight. The 24-hour clock format — often called military time — counts from 00:00 to 23:59, so every hour has a unique number and no suffix is needed.

How AM and PM map to 24-hour time

Two moments trip people up: 12:00 AM is midnight (00:00), not the start of the afternoon, and 12:00 PM is noon (12:00), not midnight. Every other conversion is straightforward — add 12 to PM hours, leave AM hours as they are. This time duration calculator converts every input to 24-hour time before subtracting, which eliminates AM and PM errors. The Military Time Converter shows the conversion for any single time.

Description12-Hour24-Hour
Midnight12:00 AM00:00
Early morning6:30 AM06:30
Noon12:00 PM12:00
Afternoon3:45 PM15:45
Evening9:15 PM21:15
One minute to midnight11:59 PM23:59
Interactive: 12h ↔ 24h Converter
12-Hour (AM/PM)
:
24-Hour (Military)
15:45
Your UTC Offset:UTC+5:00

Time Standards and Duration Notation

A clock time says when; a duration says how long. Standards like UTC and ISO 8601 make both unambiguous.

UTC and GMT

Coordinated Universal Time (UTC) is the reference clock the world keeps time against. Every time zone is described as a UTC offset — New York sits at UTC−5 in winter, Tokyo at UTC+9 all year. GMT shows the same time in practice; UTC is kept by atomic clocks, GMT comes from the sun's position over Greenwich.

Clock time vs duration

3:45 PM is a clock time — it answers "when?". 2 hours 30 minutes is a time duration — it answers "how long?". A time difference calculator takes two clock times and hands back a duration. Mixing the two up is the source of most hand-calculation mistakes.

Common notation standards

Durations are written in several ways depending on the context. The table below shows five notations for the same span. The interactive comparator lets you type any hours-and-minutes value and see every format update at once.

FormatExample (2 h 30 m)Where Used
HH:MM02:30Timesheets, clocks
HH:MM:SS02:30:00Stopwatches, logs
Decimal hours2.50Payroll, invoicing
Total minutes150Cooking, medicine
ISO 8601PT2H30MAPIs, databases
Interactive: Duration Format Comparator
hm
Human2h 30m
HH:MM:SS02:30:00
Decimal Hours2.50
Total Minutes150
ISO 8601PT2H30M
0 h8 h (full day)

How Time Zones and Daylight Saving Affect Duration

A time duration that crosses a zone boundary or a DST switch can be a different number of hours than the clocks suggest.

Single-zone calculation

When both the start time and the end time are in the same time zone, you can subtract one clock reading from the other. This time duration calculator does exactly that, borrowing across hours and minutes for you.

Cross-zone comparison

For events in different zones, first convert both moments to a common reference — typically UTC. With New York at UTC−5 and London at UTC+0, 9 AM New York (14:00 UTC) and 3 PM London (15:00 UTC) are only 1 hour apart, not 6. The Time Zone Converter handles this conversion.

DST spring-forward and fall-back

When Daylight Saving Time begins, clocks jump forward one hour — a day that starts at midnight and ends at midnight is only 23 hours long. When DST ends, clocks fall back and the day is 25 hours. Because this calculator uses your device's actual time-zone rules, a span that crosses a DST switch is measured in real elapsed hours, not clock-face hours.

Spring Forward Example

A shift from 1:00 AM to 4:00 AM on the night DST starts shows 3 hours on the clock but the real elapsed time is only 2 hours, because the clock skipped from 2:00 AM to 3:00 AM.

DST Clock Change Timeline
1:00 AMStartSKIPPED2–3 AM4:00 AMEndReal = 2 hours

Convert Time to Decimal Hours

Decimal hours make payroll calculations, invoicing and spreadsheet entry far simpler. Here is how the switch works.

Decimal conversion examples

To move from HH:MM format to decimal hours, divide the minutes by 60 and add the result to the hours — a simple time conversion:

HH:MMDecimal HoursTotal Minutes
1:151.2575
2:302.50150
4:454.75285
7:207.33440
8:008.00480
0:100.1710
9:509.83590

When decimal hours are useful

Decimal hours are the common language of payroll calculations, employee timesheets and billing and invoicing. Accounting tools and spreadsheets multiply them by an hourly rate straight away, with no minute-to-hour step in between.

That is why a Work Hours Calculator or a Time Card Calculator reports this format. Instead of "7 hours 45 minutes" you log 7.75, multiply by the pay rate, and the total is ready.

Interactive: Decimal Converter
hm
7 hours
45m
7 + (45 ÷ 60) =7.75decimal hours
7.75hours

Add or Subtract Time from a Date

Shift any date and time forward or back by a chosen time duration — find the date 90 days from today, or the clock time 3 hours and 20 minutes ago.

Resulting Date & Time
—

Everyday Uses for a Time Duration Calculator

Time tracking turns up in more places than you might expect — from the factory floor to a wedding plan.

Work hours and payroll

Measure the true length of every shift, convert it to decimal hours and multiply by the hourly rate. A dedicated Work Hours Calculator also subtracts breaks, which takes the guesswork out of payroll calculations.

Employee timesheets

Fill in employee timesheets without arithmetic slips. A Time Card Calculator handles lunch breaks, split shifts and overtime calculation, while the Break Time Duration Calculator takes rest periods off the total.

Project tracking

Time a sprint, the gap between two milestones or the run-up to a launch. Project planning is only as good as its time duration estimates, and a Day Counter Calculator keeps longer phases on track.

Billing and invoicing

Charge clients for the time you actually worked. Turn hours, minutes and seconds into decimal hours, apply your rate, and the invoice adds up. Repeat it for each week of a retainer the way a Weekly Time Duration Calculator would.

Event planning

Count down to a wedding, a conference or a product launch, and work out how long each session or the gaps between them will run. The Date and Time Duration Calculator handles events that last several days.

Study and productivity tracking

Log study sessions, deep-work blocks and Pomodoro rounds to see where the hours really go. Good time management starts with honest time tracking, and measured productivity is easier to improve.

Examples of Time Duration Calculations

Click any example to load it into the calculator and see the result.

Calculate Time Duration With Breaks

Subtract lunch and rest periods from a shift to get the net working hours your payroll actually needs.

Gross vs net working hours

The time duration from clock-in to clock-out is your gross shift length. Remove unpaid breaks and you have net working hours — the figure that goes on a timesheet or into payroll calculations.

Net Hours = (End Time − Start Time) − Total Break Time

For example, clocking in at 8:30 AM and out at 5:00 PM gives 8 hours 30 minutes gross. Subtract a 30-minute lunch and two 15-minute rests (1 hour total) and you get 7 hours 30 minutes net — or 7.50 decimal hours. The calculator above has a break-deduction field that does this in one step, and the Break Time Duration Calculator handles multiple break types automatically.

Break Deduction Timeline
LUNCH8:30 AM5:00 PMNet = 7h 30m (7.50)

Hours and Minutes Between Two Times

The most common time duration question: how many hours and minutes from one clock reading to another on the same day?

For two times on the same day, convert both to 24-hour time, subtract hours from hours and minutes from minutes. If the minutes go negative, borrow 1 from the hours and add 60. The table below shows quick examples you can verify in the calculator above.

StartEndDurationDecimal
8:00 AM12:30 PM4h 30m4.50
9:15 AM5:45 PM8h 30m8.50
7:00 AM3:00 PM8h 0m8.00
11:45 AM2:15 PM2h 30m2.50
Same-Day Time Bar
9:00 AM5:30 PM8h 30m

Calculate Overnight Time Duration

When the end time is earlier than the start time, the shift crosses midnight.

An overnight duration means the end falls on the next calendar day. On a 12-hour clock, 10:00 PM to 6:00 AM looks backwards, but because the calculator works with full date-time values, the result is a straightforward 8 hours.

StartEndDuration
10:00 PM6:00 AM (+1 day)8h 0m
11:00 PM7:00 AM (+1 day)8h 0m
9:30 PM5:45 AM (+1 day)8h 15m

The trick many people use by hand — add 24 hours to the end time before subtracting — is exactly what the calculator does internally when it detects the span crosses midnight.

24-Hour Night Arc
10 PM6 AM8 hoursovernight12 AM

Time Between Two Dates and Times

When a span runs for days, weeks or months, the Date and Time Duration Calculator accounts for varying month lengths and leap years.

Enter any two calendar dates — however far apart — and this time duration calculator returns the exact breakdown in years, months, days, hours, minutes and seconds. It follows the Gregorian Calendar rules: months of 28, 29, 30 or 31 days and a leap day every four years (with the century exception).

StartEndDuration
Jan 1, 9:00 AMJan 3, 5:00 PM2d 8h 0m
Mar 28, 2:00 PMApr 2, 10:00 AM4d 20h 0m
Jun 15, 8:00 AMDec 31, 11:59 PM199d 15h 59m

For whole-day counts, the Days Between Dates Calculator separates weekdays from weekends.

Multi-Day Calendar Span
MonTueWedThuFri= 4 days 20h

How to Calculate Time Duration Manually

The step-by-step subtraction method — useful to understand even when you let the calculator do the work.

To find the time duration between two times by hand, follow these steps:

  1. Write both times in 24-hour format. Example: 2:45 PM → 14:45.
  2. Subtract the start minutes from the end minutes. If the result is negative, borrow 1 hour (add 60 to minutes, subtract 1 from hours).
  3. Subtract the start hours from the end hours. If the end is on the next day, add 24 first.
  4. Combine the remaining hours and minutes — that is your time duration.
Worked Example

09:15 to 17:45 → Minutes: 45 − 15 = 30. Hours: 17 − 9 = 8. Result: 8 hours 30 minutes.

Step-by-Step Subtraction
End − Start17 : 45End−09 : 15Start08 : 30 = 8h 30m

Why Use an Online Time Duration Calculator?

You could work it out on paper. Here is what you gain by letting the tool do it.

±0s

Accuracy to the second

Working a time interval calculation by hand goes wrong easily — a missed borrow under the carryover method, a month with 30 days instead of 31. The calculator removes rounding slips and AM and PM errors entirely.

<1s

Answers in an instant

A sum that takes a couple of minutes on paper appears here as soon as both times are set. The duration calculator is faster than any manual step-by-step calculation, and you can re-run it as often as you like.

0

No arithmetic slips

Never forget to borrow 60 minutes again, never mix up AM and PM, and never miscount the number of minutes in a long span. The tool does the carrying for you.

5+

Reads every common time format

Enter times however you have them — HH:MM format, HH:MM:SS format, the 12-hour time format or 24-hour time — and get the answer back as a breakdown, as totals and as decimal hours, without converting anything first.

Common Time Calculation Mistakes

These are the pitfalls that catch people when they try to calculate time duration by hand.

12AM

Crossing Midnight

An 11 PM to 7 AM shift covers two calendar dates, so plain subtraction gives a negative answer. Because the calculator compares full dates, it returns the correct 8-hour overnight duration straight away.

Daylight Saving Time Changes

In spring an hour is skipped; in autumn one repeats. Daylight Saving Time (DST) turns a normal day into 23 or 25 hours, and this time calculator follows your device's time-zone rules so the real elapsed hours are counted.

Different Time Zones

9 AM in New York is 2 PM in London. Time Zones and UTC Offsets make remote meetings and travel scheduling confusing; the time difference calculator uses your local zone, and the Time Zone Converter lines up two cities.

AMPM12:00 ≠ 0:00

AM and PM Errors

12:00 AM is midnight and 12:00 PM is noon — the opposite of what many people expect, and the top cause of wrong time difference answers. Working in the 24-hour clock format internally means AM/PM format confusion simply can't happen.

Time Unit Converter

Instantly convert between hours, minutes and seconds, days, weeks, and more.

60Minutes

Frequently Asked Questions

Answers to the most common questions about the Time Duration Calculator.

Set a start time and an end time in the Time Duration Calculator at the top of this page and press "Calculate Duration". The start is subtracted from the end and the answer is broken into years, months, days, hours, minutes and seconds. Overnight durations, AM/PM conversion and leap year dates are all handled for you. To do it by hand, convert both times to 24-hour form and subtract, borrowing 60 minutes from the hours whenever the minutes go negative.

Work out the full time duration first, then take the breaks away. The "Add or Subtract Time" panel on this page can remove, say, a 30-minute lunch or two 15-minute rests from the total. Total shift length minus total break time gives net working hours — the same logic the Break Time Duration Calculator applies automatically.

Yes. Because each input carries a date as well as a clock time, a start time of 10:00 PM on Monday and an end time of 6:00 AM on Tuesday produce 8 hours with no extra steps. You never need to add 24 hours yourself to get the right overnight duration.

Divide the minutes by 60 and add the answer to the whole hours: 2 hours 30 minutes = 2 + (30 ÷ 60) = 2.50 decimal hours, and 6 hours 20 minutes = 6.33. The Decimal Hour Calculator panel on this page converts as you type, and the main result always lists the decimal figure. Payroll calculations use this format because it multiplies directly by an hourly rate.

Not quite. Time duration is a length — it answers "how long?". Clock time is a position — it answers "when?". 3:00 PM is a clock time; 2 hours 15 minutes is a time duration. Elapsed time is another name for the duration: the span between two points.

Yes. Enter any two dates, however far apart, and the Date and Time Duration Calculator returns the exact breakdown. It accounts for months of 28, 29, 30 and 31 days, the leap year rules of the Gregorian Calendar and Daylight Saving Time (DST) changes in your time zone. For whole-day counts only, the Days Between Dates Calculator also separates weekdays from weekends.

The calculator works in your device's time zone. For a cross-zone comparison, first express both moments in the same zone using their UTC offsets: with New York at UTC−5 and London at UTC+0, 9 AM in New York is 2 PM in London. The live clock at the top switches between major zones including UTC and GMT, and the Time Zone Converter does the conversion for you.

In practice there is none — both time duration and elapsed time mean the amount of time that passed between a starting point and an ending point. "Duration" is the formal word used by standards such as ISO 8601; "elapsed time" is the everyday phrase, common in schools and in stopwatch apps. This time calculator computes both in exactly the same way.

It is free with no account, no download and no usage cap. Every calculation runs locally in your browser, so the dates and times you enter are never sent to a server. The Time Duration Calculator, the Time Unit Converter and the "Add or Subtract Time" panel can all be used as often as you like.

8 hours is 480 total minutes, because each hour holds 60 minutes: 8 × 60 = 480. The same rule works for any number of hours — 7.5 hours is 450 minutes. You can check it in the Time Unit Converter on this page by converting 8 hours to minutes.