Time Difference Calculator – Hours and Minutes Between Two Times

Clocked in at 9:15 and out at 5:45? This page works out the exact time between any two times — in hours and minutes, total minutes, and the decimal hours your timesheet or payslip actually wants — with night shifts that cross midnight and unpaid breaks handled properly, so you never get a negative number or a guessing game.

100% FreeNo sign-up neededInstant results

Enter the two times

Hour
:
Min
:
Sec
AM / PM
Hour
:
Min
:
Sec
AM / PM
Advanced options — different dates (start date and end date)
With dates on, the times are taken exactly as written — the end must fall after the start, and the “next day” box above no longer applies.

These advanced options are already included in the result with their default values — open Advanced options to change them.

Lunch or rest breaks you were not paid for. Leave at 0 if the whole span counts — the break only affects the pay-time rows, never the total.
How we count: both times become minutes (and seconds) since midnight, and the answer is the plain subtraction. Cross midnight without the “next day” box ticked and you will be asked to confirm — this page never shows a negative duration.

🔒 Everything is calculated in your browser — your times never leave your device.

The time between them

Time between 9:15 AM and 5:45 PM
8h 30m
Starting 9:15 AM, ending 5:45 PM the same day

The span, every way you might need it

Total time8h 30m
Total minutes510
Total seconds30,600
Decimal hours8.50 h
Crosses midnightNo
Break taken offNo break set
Pay time after the break8h 30m
Pay hours, decimal8.50 h
5:45 PM minus 9:15 AM = 8h 30m

A note on your span

A plain daytime span — it starts and ends on the same calendar day, so nothing is added or carried over. What you see above is the whole story: 8 hours and 30 minutes from start to finish.

Wall clock, honestly: these answers are wall-clock differences — what the clock face says. If a span crosses a daylight-saving change, the real elapsed time differs by an hour, because that day genuinely has 23 or 25 hours. For timesheets and everyday planning, the wall-clock figure is the one that gets used.

Copied ✓
Key Takeaways
  • Both times are turned into seconds since midnight before anything is subtracted, so the 12-hour traps at midnight and noon cannot bite.
  • Night shifts that cross midnight are handled properly — tick next day and an early finish reads as tomorrow, never a negative number.
  • Read it the way you need it — hours and minutes, total minutes, decimal hours for a timesheet, and pay time with an unpaid break already taken off.

Your span on the clock face of a day

The coloured stretch is your span, placed inside one 24-hour day — the gold end is the finish. Cross midnight and the span wraps around the right-hand edge and comes back in on the left.

9:15 AM
5:45 PM
12 AM6 AM12 PM6 PM12 AM

9:15 AM to 5:45 PM — 8h 30m of the day, all in one stretch.

Why the finish time can look “earlier” than the start

A clock is a circle, not a line. 6:15 AM really is earlier than 10:30 PM on the same day — and it is also 7 hours 45 minutes after it, on the next one. Naive subtraction cannot tell those two apart, so it answers −16h 15m and leaves you to fix it. This page asks the one question that settles it — did the span cross midnight? — and adds the missing day only when you say so. That is the whole difference between a duration calculator and a minus sign.

How it works, in 3 steps

1

Type the start and the finish

Hours, minutes and seconds, in 12-hour AM/PM or 24-hour format — whichever your clock, roster or ticket uses. Seconds are optional; leave them at zero and nothing changes.

2

Say if it crosses midnight — or spans days

Night shift ending the next morning? Tick “next day” and the early finish is read as tomorrow. A span covering whole days? Switch the dates on and both days and clock times count together.

3

Read it the way you need it

The big figure is hours and minutes. Underneath: total minutes, total seconds, and decimal hours — and if you entered an unpaid break, your pay time with the break already taken off, in both styles.

The arithmetic behind it

time between = end − start  ·  both read as seconds since midnight first  ·  decimal hours = total minutes ÷ 60

The default, worked through. 9:15 AM is 9 × 60 + 15 = 555 minutes after midnight. 5:45 PM is 17:45 on a 24-hour clock, which is 17 × 60 + 45 = 1,065 minutes. Subtract: 1,065 − 555 = 510 minutes, and 510 ÷ 60 = 8.50 decimal hours — or, in clock style, 8h 30m. Take a 30-minute lunch off the pay time and it becomes 480 minutes: exactly 8.00 h.

The night shift. 10:30 PM is 1,350 minutes after midnight; 6:15 AM is only 375. The finish is the next day, so it counts as 375 + 1,440 (a full day of minutes) = 1,815. Then 1,815 − 1,350 = 465 minutes = 7h 45m. Without the “next day” box, the same two times would leave a nonsense negative answer — the box is what turns clock arithmetic into shift arithmetic.

Several days. With the dates switched on, whole days join in at 1,440 minutes each: 9:00 AM on 20 October to 5:00 PM on 23 October is 3 full days (4,320 minutes) plus the 480 minutes from 9:00 AM to 5:00 PM — 4,800 minutes, exactly 80.00 hours.

Deep dives

The 12-hour clock has two traps built in, and both live at twelve. 12:00 AM is midnight — the very start of the day, hour zero — while 12:00 PM is noon, hour twelve. So “12:30 AM” is half past midnight (00:30), not half past midday, and a span from 11:00 AM to 12:30 PM is an hour and a half, not “one hour plus twelve-something”. People mis-schedule flights and medication over this every week, because the numbers look identical and only the two letters after them carry the meaning.

This page converts before it subtracts. Every time you type is first turned into seconds since midnight — 12:00 AM becomes 0, 12:00 PM becomes 43,200, 11:59:59 PM becomes 86,399 — and only then does the subtraction happen. That is why the twelves can never leak into the answer: by the time any arithmetic happens, there are no twelves left, just a position on the day. If twelves trip you up in real life too, the 24-hour format removes them entirely — midnight is 0, noon is 12, and every hour name is unique.

Payroll does not speak in hours and minutes — it speaks in decimals. A shift of 8 hours 30 minutes is paid as 8.50 hours, 15 minutes is 0.25, 45 minutes is 0.75, and the conversion is always just minutes divided by 60. That is why the decimal figure sits right under the big one on this page, and why the pay-time rows exist: total span, minus the unpaid break, already converted. 8.50 is not “eight hours fifty” — it is eight and a half hours — and mixing those two up is the single most common timesheet error there is.

One honest wrinkle: employers often round. Many workplaces round punches to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour, and US practice has long allowed neutral rounding of that kind — it has to round up as often as it rounds down. So the figure here is the exact span, down to the second, and your employer’s rounded version may sit a few minutes either side of it. If a payslip looks wrong by more than a rounding step, the exact figure from this page is the one to take to the conversation.

The break ladder: same shift, three pay packets

The default shift — 9:15 AM to 5:45 PM — is 8h 30m, 510 minutes, 30,600 seconds, 8.50 decimal hours, before any break. Only the unpaid break changes below, so each row isolates exactly what the break costs.

Unpaid breakTotal span (unchanged)Pay timePay hours, decimal
None8h 30m8h 30m8.50 h
30 minutes8h 30m8h 0m8.00 h
60 minutes8h 30m7h 30m7.50 h

The first thing the ladder teaches is that the total span and the pay time are different numbers that happen to coincide when there is no break. With no break set, the pay time is the full 8h 30m and 8.50 decimal hours. Take 30 minutes off for lunch and the span is still 8h 30m — you were, after all, away from home for that long — but the pay time drops to exactly 8h 0m, or 8.00 decimal hours. Take a full hour and the pay time is 7h 30m, or 7.50 hours. The arithmetic is subtraction followed by division: 510 − 30 = 480 minutes, and 480 ÷ 60 = 8.00; 510 − 60 = 450 minutes, and 450 ÷ 60 = 7.50. The reason the page prints both styles is that payroll does not speak in hours and minutes — it speaks in decimals — and the conversion is the single most common timesheet error there is: 8.50 is eight and a half hours, not “eight hours fifty”.

The second lesson is about what the break does not do. It does not change the start, the finish, the total minutes or the total seconds; it only changes the two pay rows. That separation is deliberate, because the two questions — “how long was I there?” and “how long am I paid for?” — have different answers whenever a break is unpaid, and collapsing them into one figure is how payslips get argued about. If your break is paid, leave it at zero: a paid break is part of the span and part of the pay, and the page’s pay time then correctly equals the span.

Decimal hours: the conversion table to keep

Payroll’s decimal system is just minutes divided by 60, but the quarter-hour landmarks are worth memorising because they recur on every timesheet. Fifteen minutes is 0.25 hours, thirty minutes is 0.50, forty-five is 0.75, and ninety minutes is 1.50 — the same division every time, with no special cases. The default shift’s 510 minutes divide to exactly 8.50, which is why the default is such a clean example: 8 hours plus 30 minutes is 8 + 30/60 = 8.50, not 8.30 and not 8.5-something-else. The confusion to avoid is reading a decimal as clock digits: 8.50 hours is 8 hours 30 minutes, while 8.30 hours would be 8 hours 18 minutes (0.30 × 60 = 18). If a payslip ever shows a decimal that does not convert back to whole minutes, something has been rounded — and the next section explains how much rounding to expect.

MinutesDecimal hoursIn clock style
150.25 h0h 15m
300.50 h0h 30m
450.75 h0h 45m
901.50 h1h 30m
510 (the default span)8.50 h8h 30m

When seconds change the answer, and when they do not

Seconds are optional on this page — leave them at zero and nothing changes — but they are not decorative. Move the start thirty seconds later, to 9:15:30 AM, and the same shift to 5:45 PM becomes 8h 29m 30s: 509.5 minutes, 30,570 seconds, 8.49 decimal hours. Thirty seconds removed thirty seconds from the span, exactly as it should, and the decimal moved from 8.50 to 8.49 because 509.5 ÷ 60 is 8.4916…, displayed to two decimals. For most shifts that precision is noise — nobody’s pay depends on thirty seconds — but for timed events, races, laboratory work or any span where the second is the unit that matters, the page carries it faithfully instead of rounding it away at the input. The rule of thumb is simple: if the thing you are timing is measured in seconds, type the seconds; if it is measured in hours, leave them at zero and the answer is identical either way.

One honest wrinkle belongs here, and the page’s own deep dive states it: employers often round. Many workplaces round punches to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour, and US practice has long allowed neutral rounding of that kind — it has to round up as often as it rounds down. So the figure here is the exact span, down to the second, and your employer’s rounded version may sit a few minutes either side of it. If a payslip looks wrong by more than a rounding step, the exact figure from this page is the one to take to the conversation; if it differs by less than a rounding step, the difference is the rounding, not an error.

Night shifts and multi-day spans, without the nonsense answer

The two features that turn clock arithmetic into real-world arithmetic are the “next day” box and the dates switch, and the page’s own worked examples show both. The night shift — 10:30 PM to 6:15 AM — is 1,350 minutes after midnight to 375 minutes after midnight, and without the next-day box that subtraction goes negative, a nonsense answer. Tick the box and the finish counts as tomorrow: 375 + 1,440 (a full day of minutes) = 1,815, and 1,815 − 1,350 = 465 minutes, or 7h 45m. The multi-day version works the same way with whole days at 1,440 minutes each: 9:00 AM on 20 October to 5:00 PM on 23 October is 3 full days (4,320 minutes) plus the 480 minutes from 9:00 AM to 5:00 PM — 4,800 minutes, exactly 80.00 hours. In both cases the method is the same: convert everything to a position on a timeline first, then subtract. That is also why the twelves can never leak into the answer — by the time any arithmetic happens, 12:00 AM has already become 0 seconds since midnight and 12:00 PM has become 43,200, and there are no twelves left to confuse.

Split shifts and the 40-hour week, added up properly

Not every working day is one unbroken span. A day split by a long unpaid gap is two spans, and the page handles it by running each span separately and adding the results — which is exactly what this section does, with both halves verified on the page.

Take a day that runs 9:15 AM to 12:00 PM, then 1:00 PM to 5:45 PM, with the hour between unpaid and uncounted. The morning span is 2h 45m — 165 minutes, 9,900 seconds, 2.75 decimal hours — and the afternoon span is 4h 45m — 285 minutes, 17,100 seconds, 4.75 decimal hours. Add them: 165 + 285 = 450 minutes, which is 7h 30m and 7.50 decimal hours for the day. Note that the naive approach — running 9:15 AM to 5:45 PM as one span and subtracting the hour — gives the same 7h 30m here, because the gap is exactly the break the page would subtract. The two-span method earns its place when the gap is not a break at all: a second job, a call-out, a gap spent elsewhere, where treating it as “break” would mislabel the day even though the minutes agree. Minutes do not carry labels; your records should.

The weekly version of the same addition is where decimal hours stop being a curiosity and start being money. Five default shifts with a 30-minute unpaid break each pay 8.00 hours a day, which is exactly 40.00 hours for the week — the round number is no coincidence, since 5 × 8.00 = 40.00, and it is why the 30-minute lunch on an 8h 30m span is the most common shift pattern in office work: it is the pattern that makes the week come out even. Five shifts with no break pay 5 × 8.50 = 42.50 hours, which is 2.50 hours over 40 — the overtime line in many workplaces, and the reason the break row matters to the weekly total far more than it matters to any single day. Run each day separately, add the decimal hours, and compare with the weekly threshold your contract sets: the page gives you the daily figures exactly, and the weekly figure is their sum, nothing more mysterious than that.

A worked rounding example makes the employer’s side concrete. Suppose a shift runs 8h 37m — 517 minutes — and the workplace rounds to the nearest quarter hour. The neighbouring quarter-hour marks are 510 minutes (8.50 hours) and 525 minutes (8.75 hours); 517 sits 7 minutes from the lower mark and 8 from the upper, so neutral rounding gives 8.50 hours, seven minutes less than the exact span. The next day, a shift of 8h 38m — 518 minutes — sits 8 minutes from the lower mark and 7 from the upper, so it rounds up to 8.75 hours, seven minutes more than exact. Over many shifts those ups and downs roughly cancel, which is the whole justification for neutral rounding — but on any single payslip, a difference of up to half a rounding step in either direction is expected, and only a difference larger than a full step is evidence of an error rather than a rounding rule.

One more addition deserves a warning, because it is where split-shift arithmetic most often goes wrong: midnight. A split day that crosses midnight — an evening span plus an after-midnight span — must have the “next day” box applied to the second span’s own subtraction, not to the day as a whole. Run the evening span with its own finish, run the after-midnight span as its own overnight span, and add the two totals. Adding clock times across midnight without converting each span to a timeline position first is how a 2-hour evening plus a 3-hour night becomes a negative number or a 19-hour day, and the page’s method — convert to seconds since midnight, add a day where the finish belongs to tomorrow, then subtract — is the only order of operations that never produces either.

Across midnight, across months: the borrow-and-carry routine

The arithmetic is subtraction with borrowing. The skill is knowing what to borrow from.

Within one day, subtract the earlier time from the later one, borrowing an hour (60 minutes) when the minutes run short. From 22:30 to 06:45 the next day, first add 24 hours to the later time — 06:45 becomes 30:45 — then subtract: 30:45 − 22:30 = 8 hours 15 minutes, or 8.25 decimal hours. Across dates, the same idea extends: count whole days first, then the leftover hours and minutes, and let the calendar do the month lengths for you rather than assuming every month has 30 days.

Two habits prevent the common errors. First, always state whether both endpoints are included: the difference between 09:00 Monday and 09:00 Tuesday is 24 hours of elapsed time but only one working day if the endpoints are shifts, and the two answers serve different questions. Second, convert to a single unit before subtracting — minutes since midnight, or decimal hours — whenever the times are awkward. Decimal conversion is exact (15 minutes = 0.25 hours, 45 minutes = 0.75 hours) and avoids the trap of writing 8 hours 30 minutes as 8.30 hours, which understates the span by 18 minutes.

Time zones inside a difference: convert first, subtract second

Subtracting wall-clock times in different zones gives a nonsense answer. Convert both to one reference, then subtract.

A 09:00 call in New York and a 14:00 call in London on the same day are the same moment, not five hours apart — London is five hours ahead, so 14:00 London is 09:00 New York. The routine is: convert both times to UTC (or to one of the two zones), then subtract. The same routine handles date-line crossings: a Monday evening departure from Tokyo can arrive in Los Angeles on Monday morning, and only the UTC conversion keeps the elapsed time positive and sane.

Daylight saving is where the routine earns its keep. On the spring-forward day, 01:00 to 03:00 local time spans one hour of elapsed time, not two, because 02:00 never happened; on the fall-back day the same wall-clock span is three hours, because 01:00 happened twice. A difference calculator that uses fixed offsets will get both days wrong. This page’s companion time-zone logic uses the actual offset for the exact date, which is why a difference that crosses a changeover must be calculated from real zone data, not from a remembered “five hours” rule.

Time difference questions, answered

How do I work out the time between two times?

Turn both times into minutes since midnight, then subtract. 9:15 AM is 555 minutes; 5:45 PM is 17:45 on a 24-hour clock, which is 1,065 minutes; 1,065 minus 555 is 510 minutes — 8 hours 30 minutes. Type both times above and the page does exactly this, in seconds so nothing is lost, and shows the answer as hours and minutes, total minutes and decimal hours.

How do I calculate a shift that runs past midnight?

Tick the “end time is on the next day” box, then enter the times exactly as they read on the clock. A night shift from 10:30 PM to 6:15 AM works out to 7 hours 45 minutes: the finish counts as 6:15 plus a full 24 hours before the subtraction happens, so you get 465 minutes instead of a negative number. Without the box, an end time earlier than the start asks you to confirm — because on the same day, it would mean the span runs backwards.

What is 8 hours 30 minutes in decimal hours?

8.50 hours. Decimal hours are just the minutes divided by 60: 30 divided by 60 is 0.5, so 8 hours 30 minutes is written 8.50 on a timesheet. The same rule gives the quarter hours payroll loves — 15 minutes is 0.25 h, 45 minutes is 0.75 h — and the calculator shows the decimal figure, to two decimal places, for the whole span and for your pay time after any break.

Should I subtract my lunch break?

If the break was unpaid and you were free during it, yes — it is not paid time, and most timesheets expect it off. Enter the break in minutes and the pay-time rows show the span with it removed: the default example with a 30-minute lunch is 8h 30m of span but 8.00 h of pay time. Paid rest breaks are different — short paid breaks usually stay in. The total-time rows never change; the break only shapes the pay figures.

Can the span be longer than 24 hours?

Yes — switch on “the two times are on different dates” and add the two dates. Whole days then count alongside the clock times: 9:00 AM on 20 October to 5:00 PM on 23 October is 3 full days plus 8 hours — 4,800 minutes, exactly 80.00 hours. With dates on, the times are taken literally and the end must fall after the start; for a single overnight span without dates, the next-day box is the quicker tool.

How is this different from a time calculator that adds hours and minutes?

Different job. This page starts from two clock times — a start and a finish — and tells you the distance between them. A time calculator starts from a duration and a pile of hours, minutes and seconds to add or subtract, without any clock involved. If your question is “I started at 9:15 and finished at 5:45, how long was that?”, you are in the right place. If it is “what do 2h 45m plus 1h 50m make?”, the time calculator is the tool you want.

Is 12:00 AM midnight or noon?

Midnight — the very start of the day, hour zero. 12:00 PM is noon, hour twelve. So 12:30 AM is half past midnight (00:30), not half past midday, and a span from 11:00 AM to 12:30 PM is an hour and a half. The page converts before it subtracts, turning 12:00 AM into 0 seconds since midnight and 12:00 PM into 43,200, so the twelves can never leak into the answer. If twelves trip you up in real life too, the 24-hour format removes them entirely: midnight is 0, noon is 12, and every hour name is unique.

Can a span be longer than 24 hours?

Yes, once you switch the dates on. Without dates, the page works within a single day plus the “next day” box for overnight spans. With dates switched on, whole days join in at 1,440 minutes each — 9:00 AM on 20 October to 5:00 PM on 23 October is 3 full days plus 480 minutes, 4,800 minutes or exactly 80.00 hours. Clock times alone cannot express a multi-day span; dates are what give the subtraction a timeline long enough to hold it.

Do I need to enter seconds?

No — seconds are optional, and leaving them at zero changes nothing. They exist for spans where the second is the unit that matters: moving the start thirty seconds later, to 9:15:30 AM, turns the default shift into 8h 29m 30s, or 509.5 minutes and 30,570 seconds. If you are timing a shift, leave them at zero; if you are timing something measured in seconds, type them and the page carries them faithfully.

Why does my employer’s figure differ by a few minutes?

Almost certainly rounding. Many workplaces round punches to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour, and that kind of rounding has to round up as often as it rounds down. The figure on this page is the exact span, down to the second, so a difference smaller than one rounding step is the rounding, not an error. A difference larger than a rounding step is worth querying, and the exact figure here is the one to take to that conversation.

How do I calculate a difference spanning a daylight saving change?

Convert both times to a fixed reference first — UTC is the usual one — and subtract there. Wall-clock subtraction fails on changeover days because an hour is skipped in spring and repeated in autumn, so 01:00 to 03:00 local time is one elapsed hour in spring and three in autumn. Using the zone offset in force on each date separately, or a calculator that looks up offsets from the time-zone database, gives the elapsed time correctly. State the elapsed figure and the wall-clock figure separately if both matter, so nobody mistakes one for the other.

What is the difference between elapsed time and clock time?

Elapsed time is how much time actually passed, measured in hours and minutes of duration. Clock time is what the clocks showed at the two endpoints. They agree on ordinary days and disagree whenever clocks change or zones differ: a flight that leaves at 18:00 and lands at 20:00 local time in a zone two hours behind has an elapsed time of four hours, not two. For pay, travel and scheduling, elapsed time is almost always the figure that matters; clock time is the figure people remember, which is why the two get confused.

Related calculators

Exact clock arithmetic — with two honest limits.

The differences on this page are exact subtractions of the times you enter, computed to the second. Two things sit outside any calculator like this. First, results are wall-clock differences: a span that crosses a daylight-saving change has a real elapsed length one hour different from what the clock faces say, because that calendar day is genuinely 23 or 25 hours long. Second, pay is governed by your employer’s and jurisdiction’s rules — many employers round clock-ins to the nearest 5, 6 or 15 minutes, and break and overtime rules vary. Use the exact figure here as the reference, and your contract or local labour rules as the final word on pay.

↑