Desmarto
Utility instrumentAnswer first. Adjust only what matters.
Time · Calculator

Hours Between Times Calculator

Calculate the exact number of hours and minutes between two times. Supports overnight shifts and break deduction.

← All time calculators

End time is on the next day

Subtract break from total

Calculated result

Duration

8h 0m

8.00 decimal hours

Hours

8

Minutes

0

Total Minutes

480

Decimal

8.00

Hours

Hours: 8
8h 0m

Smart Insights

The total duration is 8h 0m (8.00 decimal hours).

Calculation steps for these inputs

How It Works

The calculator converts both times to seconds from midnight, subtracts them, and formats the result. If crossing midnight, 24 hours are added to the end time.

Frequently Asked Questions

What time formats are accepted?

The calculator accepts 12-hour (9:00 AM) and 24-hour (09:00) formats, decimal hours (8.5), and simple numbers (8 = 8:00).

How does overnight calculation work?

When 'Crosses midnight' is enabled, the calculator adds 24 hours to the end time if it's earlier than the start time.

What break formats are accepted?

Enter break duration as '30m', '0.5h', '30 minutes', or '0:30'. The parser automatically normalizes the input.

How are decimal hours calculated?

Decimal hours = total minutes ÷ 60. For example, 8 hours and 30 minutes = 8.5 decimal hours.

Can I use this for payroll?

Yes. The decimal hours output is suitable for payroll calculations. Show the breakdown for full transparency.

What if my break is not deducted?

Toggle 'Deduct break' off to see gross hours before break deduction. This is useful for calculating total shift time.

Last reviewed: September 10, 2026

Hours between two times: detailed guide

Use this calculator when the question is specifically how many hours and minutes lie between two clock times. It works for same-day intervals and for spans that cross midnight, and it can optionally deduct a break. The most reliable method is to convert each clock reading to minutes from midnight, place an overnight end time on the next day's timeline, subtract the start, and only then convert the total into hours, minutes, and decimal hours.

How to use it accurately

  1. Enter both clock times: Use AM/PM or 24-hour notation consistently enough that each reading is unambiguous.
  2. Mark midnight crossing: Enable the overnight option when an end such as 06:00 follows a start such as 22:00.
  3. Choose whether to deduct a break: Keep the gross time span and the net-after-break result conceptually separate.
  4. Verify the decimal output: Use total minutes ÷ 60; never copy the clock minutes directly after a decimal point.

Hours-between formula

elapsed minutes = normalized end − normalized start

For an overnight interval where end ≤ start, add 1,440 minutes to the end before subtracting. If a break is deducted, subtract those break minutes from the elapsed total. Decimal hours = remaining minutes ÷ 60.

Worked examples

9 to 5 with lunch

Inputs: 09:00–17:00, 30-minute break

Result: 7 h 30 min = 7.50 h

The gross span is 480 minutes; deducting 30 leaves 450 minutes.

Night span

Inputs: 21:45–05:15 next day

Result: 7 h 30 min

From 21:45 to midnight is 2 h 15 min and midnight to 05:15 is 5 h 15 min.

Calculation steps from a worked example

  1. Start with the inputs: 09:00–17:00, 30-minute break
  2. Apply the relationship: elapsed minutes = normalized end − normalized start
  3. Calculate the result: 7 h 30 min = 7.50 h
  4. Sanity-check the answer: The gross span is 480 minutes; deducting 30 leaves 450 minutes.

How to interpret the result

Hours Between Times Calculator should be interpreted together with the inputs and the convention used to produce the answer. The core relationship on this page is “elapsed minutes = normalized end − normalized start”. For an overnight interval where end ≤ start, add 1,440 minutes to the end before subtracting. If a break is deducted, subtract those break minutes from the elapsed total. Decimal hours = remaining minutes ÷ 60. In practical use, that means the displayed number is not just an isolated output: it represents a result under the assumptions stated on this page. Time calculations are especially sensitive to units, 12-hour versus 24-hour notation, midnight crossings, and whether a duration represents wall-clock time or an actual elapsed instant. Keep those conventions with the result when you reuse it elsewhere.

A useful sanity check is to compare your result with a nearby worked example. For “9 to 5 with lunch”, the inputs 09:00–17:00, 30-minute break produce 7 h 30 min = 7.50 h. The gross span is 480 minutes; deducting 30 leaves 450 minutes. A second boundary check is “Night span”: 21:45–05:15 next day produces 7 h 30 min. From 21:45 to midnight is 2 h 15 min and midnight to 05:15 is 5 h 15 min. If your result moves in the opposite direction from these examples when you change a similar input, recheck units, signs, endpoints, rounding, or any special option before copying the answer elsewhere.

How to verify the calculation

  1. Re-read the original inputs before checking the result. A correct formula cannot compensate for an incorrect date, time, rate, duration, amount, or sign entered at the start.
  2. Recalculate the central relationship once by hand or with a simple independent method: elapsed minutes = normalized end − normalized start. The purpose is not to reproduce every display detail, but to confirm that the answer is in the right range and direction.
  3. Check the output units and formatting. The reference table “Common hours-between examples” is a second quick check when your inputs fall near one of the listed values.
  4. Test the edge case that is most similar to your situation. One important warning on this calculator is: If the end is earlier than the start and overnight is not enabled, the interval is ambiguous.
  5. Before using the result for a consequential decision, read the assumptions section. The calculation assumes both readings use the same local clock and that any overnight transition is a normal 24-hour day. For a shift that crosses a daylight-saving change or different time zones, use actual dates and zone-aware timestamps.

When this calculator is useful

  • Finding hours between appointment, travel, study, or event times.
  • Checking a single work shift before using weekly or payroll tools.
  • Comparing gross and net time when a break is involved.
  • Converting a time span to decimal hours for billing or costing.

Common hours-between examples

StartEndElapsed
08:0016:008 h
09:1517:458 h 30 min
13:3018:004 h 30 min
22:0006:00 next day8 h
23:3000:15 next day45 min

Common mistakes and edge cases

  • If the end is earlier than the start and overnight is not enabled, the interval is ambiguous.
  • 12:00 AM means midnight; 12:00 PM means noon.
  • 7 h 30 min is 7.5 decimal hours, not 7.30.
  • A plain clock-time calculator does not account for DST or different time zones unless the locations are supplied.

Assumptions and limitations

The calculation assumes both readings use the same local clock and that any overnight transition is a normal 24-hour day. For a shift that crosses a daylight-saving change or different time zones, use actual dates and zone-aware timestamps.

Frequently asked questions

How can I verify a Hours Between Times Calculator result?

Keep the original inputs, apply the page's core relationship (elapsed minutes = normalized end − normalized start), and compare the answer with the worked examples. For example, 09:00–17:00, 30-minute break should give 7 h 30 min = 7.50 h. The reference table “Common hours-between examples” is a second quick check when your inputs fall near one of the listed values. If the independent check is close but not identical, inspect rounding, endpoint, unit, or convention differences before assuming either result is wrong.

Why might another Hours Between Times Calculator show a different answer?

Two calculators can use the same basic mathematics but differ in assumptions or input interpretation. On this page, an especially important source of disagreement is: 12:00 AM means midnight; 12:00 PM means noon. Another is: 7 h 30 min is 7.5 decimal hours, not 7.30. Compare the settings and definitions first; only then compare the final numbers.

What should I save with a Hours Between Times Calculator result?

Save the inputs, result, units, date of calculation, and any option that changes the convention. This is particularly useful when the result is later copied into a timesheet, schedule, budget, report, invoice, application, or spreadsheet. Recording the assumptions makes it possible to reproduce the calculation instead of relying on a number with no context.

When is this Hours Between Times Calculator not enough on its own?

The calculation assumes both readings use the same local clock and that any overnight transition is a normal 24-hour day. For a shift that crosses a daylight-saving change or different time zones, use actual dates and zone-aware timestamps. Use the result as the arithmetic or planning layer, then verify any legal, payroll, lender, tax, time-zone, holiday, policy, or specialist rule that applies to the real decision. The calculator is most reliable when the question matches the stated scope rather than when a general result is stretched into a domain-specific ruling.

AI & citation information

This public block gives search, answer, and citation systems a concise description of what this page covers. It does not replace the calculator instructions or the assumptions above.

Tool
Hours Between Times Calculator
Publisher
Desmarto
Page type
Free online calculator and explanatory reference
Key concepts
Hours Between Times Calculator; Time; Hours-between formula
Use this page when
Use this calculator when the question is specifically how many hours and minutes lie between two clock times.
Calculation basis
elapsed minutes = normalized end − normalized start. For an overnight interval where end ≤ start, add 1,440 minutes to the end before subtracting.
Important caveat
The calculation assumes both readings use the same local clock and that any overnight transition is a normal 24-hour day.
Canonical page
https://desmarto.com/time-calculators/hours-between
Last reviewed
September 10, 2026

Suggested citation: Desmarto. “Hours Between Times Calculator.” https://desmarto.com/time-calculators/hours-between. Updated September 10, 2026.