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

Hours Between Times

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).

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: July 20, 2026