Skip to content

Hours between two times calculator

Enter a start time, an end time and an optional unpaid break. Shifts that run past midnight work too.

An end earlier than the start counts as the next day. An end equal to the start is zero hours.

Leave empty if there was no unpaid break.

Enter a start time and an end time to see the time between them.

Hours between two times calculator guide

A start time and an end time give you the time between them. That is easy when both are on the same day. The two cases that cause mistakes are a shift that runs past midnight and a shift with an unpaid break. This guide covers both, and how to check the result before you use it.

Subtract the start from the end

Turn each time into minutes after midnight, subtract the start from the end, and turn the result back into hours and minutes. 8:00 AM is 480 minutes after midnight. 4:30 PM is 990 minutes. 990 minus 480 is 510 minutes, which is 8 hours and 30 minutes.

The calculator uses this rule:

Time from start to end = end - start, with 24 hours added when the end is earlier than the start (the shift ended the next day). Equal times are zero. Paid time = time from start to end - unpaid break, never below zero.

Shifts that run past midnight

When the end time is earlier than the start time, the shift ended the next day. From 10:00 PM to midnight is 2 hours, and from midnight to 6:00 AM is 6 hours. Together they make 8.

The calculator adds one day to the end when the end is earlier than the start. You do not need to change a date or add the hours yourself. Type the times as the clock shows them.

Equal start and end times

A start and an end at the same time give zero hours. The calculator does not read the gap as a full 24 hours. A time card records the times you give it, so if a shift really lasted a full day, the two times cannot say so.

Check the start and the end against your records before you count a shift like that.

Taking out an unpaid break

An unpaid break comes off the time between the start and the end. Type it in minutes: 30 means half an hour. Take a 30-minute unpaid break off 8 hours and 30 minutes, and 8 hours are left.

Whether a break is paid is your policy, and the calculator does not know your policy. It takes off the minutes you type. If there was no unpaid break, leave the field empty. If the break is longer than the time between the two times, the paid time is zero and a note explains why.

Worked examples

  • 8:00 AM to 4:30 PM with a 30-minute unpaid break: 8 hours 0 minutes paid.
  • 9:15 AM to 1:45 PM with no break: 4 hours 30 minutes paid.
  • 10:00 PM to 6:00 AM with a 30-minute unpaid break: 7 hours 30 minutes paid.
  • 6:00 AM to 6:00 AM: zero hours, because the two times are the same.

How to check the number

Count the full hours first, then the minutes. From 8:00 AM to 4:00 PM is 8 hours. Add 30 minutes to reach 4:30 PM, so the answer is 8 hours and 30 minutes. Then take off the break.

Times are read to the minute, so 8:05 AM and 8:05 PM are 12 hours apart. Check the AM and PM on each time before you read the result.

Two quick checks. First, does the shift length match the schedule or the clock-in times? Second, does an overnight shift show a few hours where you expected many? A PM typed as AM does exactly that.

Limits

The calculator does arithmetic on the numbers you type and nothing else. It does not know:

  • It works from the two times you type. It does not see a clock, a GPS record or a schedule, so check the times against your records.
  • It does not round. If your pay rounds to 6 or 15 minutes, round the paid time after you check it.
  • It does not know which breaks are paid. It takes off the minutes you type and nothing else.

Questions people ask

What if the shift goes past midnight?

Enter the real start and end times. If the end is earlier than the start, the calculator counts the shift into the next day. 10:00 PM to 6:00 AM is 8 hours.

Why does an end time equal to the start time show zero?

Two equal times are zero minutes apart, so the calculator shows zero. It does not assume a full 24 hours. If a shift really lasted a day, check the dates in your records.

Should the break come off before or after rounding?

This calculator does not round. Take off the unpaid break first, then round the paid time if your pay rule does. The result shows the real minutes.

Does a paid break reduce the paid time?

No. Only the unpaid minutes you type come off. If a break is paid, leave the field empty, and the full time between the two times counts.

Other free tools