Skip to content
Omnikalc

Time duration calculator: hours and minutes between two times

Find the time between a start and an end time, even overnight, minus a break, in hours and minutes and in decimal hours.

Updated on
Your inputs

Value out of range

Value out of range

min

Value out of range

Results

Duration (h:mm:ss)

8:00:00

Decimal hours
8.00 h
Total minutes
480
Duration before the break
8:30:00

Hours between two times

The time duration calculator finds how long it is from a start time to an end time, in hours and minutes and in decimal hours. If the end time is earlier than the start time, it assumes the period crosses midnight, as for a night shift. You can also take off an unpaid break.

The formulas

  • Duration = end time − start time, plus 24 hours if the result is negative
  • Worked time = duration − break
  • Decimal hours = hours + minutes ÷ 60

Worked example

A shift from 9:00 AM to 5:30 PM with a 30-minute lunch:

  1. 5:30 PM − 9:00 AM = 8 hours 30 minutes.
  2. Minus the break: 8 hours worked.
  3. In decimal hours: 8.00, or 480 minutes.

For a night shift from 10:00 PM to 6:30 AM, the end time is earlier than the start, so the calculator adds 24 hours: 6:30 + 24:00 − 22:00 = 8 hours 30 minutes.

Minutes to decimal hours

Minutes Decimal
6 0.10
15 0.25
20 0.33
30 0.50
40 0.67
45 0.75

Breaks and paid time

Under US federal rules, short rest breaks, usually 5 to 20 minutes, count as hours worked and must be paid. Meal periods of at least 30 minutes, during which the employee is fully relieved from duty, can be unpaid. Several states, including California, require meal and rest breaks by law; others leave it to the employer.

Tips for accurate time tracking

  • Record times to the minute rather than rounding in your head; rounding rules, if any, should be set by the employer and applied evenly.
  • Use 24-hour time or note AM and PM clearly, since the most common error is a PM end time typed as AM.
  • For several days, the time card calculator adds up a full week and computes overtime.

Beyond work

The same calculation answers everyday questions: how long a flight lasts between departure and arrival in the same time zone, how long you slept, or how long a game, a film or a recording runs between two timestamps.

Frequently asked questions

How do I calculate the hours between two times?

Subtract the start time from the end time. From 9:00 AM to 5:30 PM is 8 hours 30 minutes; with a 30-minute unpaid lunch, 8 hours worked.

How do I calculate hours for an overnight shift?

If the end time is earlier than the start time, add 24 hours. A shift from 10:00 PM to 6:30 AM lasts 8 hours 30 minutes.

How do I convert the result to decimal hours?

Divide the minutes by 60: 8 hours 15 minutes is 8.25 hours. Timesheets and payroll systems usually ask for decimal hours.

Are breaks counted as hours worked?

Under US federal rules, short breaks of 5 to 20 minutes are paid work time, while bona fide meal periods of 30 minutes or more, free of duties, can be unpaid.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.