Free calculators tool

Hours and minutes between two clock times, with the break taken off

Shift workers, freelancers and anyone filling in a timesheet: enter when you started and finished, subtract a break, and read the result three ways. Clock times that run past midnight are handled.

Overnight spans handled automaticallyBreak minutes subtracted for youDecimal hours for timesheets
Time Duration Calculator

Enter when you started and finished and any break in minutes. The net duration updates as you type, and an end time before the start is treated as the next day.

Runs on your device
8h 0m
Net duration
8
Decimal hours
480
Total minutes

Break time is subtracted from the elapsed time.

What the Time Duration Calculator does

The Time Duration Calculator measures the time between a start clock time and an end clock time within one 24-hour cycle, subtracts an optional break in minutes, and shows the net duration in three forms: hours and minutes, decimal hours to two places, and total minutes.

When the end time is earlier than the start time, the tool assumes the end falls on the following day and adds 24 hours, so a shift from 22:00 to 06:00 is 8 hours. A note under the results tells you when this rule has been applied.

The example values are 09:00 to 17:30 with a 30-minute break, which gives 8h 0m, 8 decimal hours and 480 minutes. All of the arithmetic runs in your browser with the times you enter; no dates, time zones or accounts are involved.

How to use it

Enter the start time

Use the time field in your browser's clock format. The value is read as hours and minutes only.

Enter the end time

Type the finishing time. If it is earlier than the start, the tool treats it as the next day.

Enter any break in minutes

Type the unpaid or excluded minutes, or 0 for none. The break is subtracted and the three results update.

How the duration is calculated

Both times are converted to minutes since midnight by multiplying the hours by 60 and adding the minutes. The start is subtracted from the end; if the result is negative, 1,440 minutes (24 hours) are added. The break is then subtracted, and the result is floored at zero so a break longer than the shift gives 0 rather than a negative duration.

The hours figure is the whole number of hours in the net minutes and the minutes figure is the remainder. Decimal hours are the net minutes divided by 60, rounded to two decimal places: 7 hours 20 minutes is 440 minutes, or 7.33 hours.

Overnight example: 22:00 to 06:00 is 480 minutes. With a 45-minute break the net duration is 435 minutes, which reads 7h 15m, 7.25 decimal hours and 435 total minutes.

Decimal hours and timesheet conventions

Payroll and billing systems often want hours as a decimal rather than hours and minutes. Thirty minutes is 0.5 hours, fifteen is 0.25, and twenty is 0.333, which this tool shows as 0.33 after rounding. Copy the decimal figure straight into a timesheet that asks for hundredths of an hour.

The tool applies no rounding rules beyond the two-decimal display. Employers and clients may round start and end times to the nearest few minutes, apply overtime thresholds or require a minimum break; apply any such rules after reading the exact figure here. Some systems record durations in the ISO 8601 notation instead, where 7 hours 15 minutes is written PT7H15M; the Wikipedia article on ISO 8601 describes that format if you need to convert.

The two-decimal display means 1 minute shows as 0.02 hours and 7 minutes as 0.12. For exact totals across many days, add the total minutes figures instead and divide by 60 once at the end.

What the calculator does not do

It works with clock times only. There are no dates, so a span longer than 24 hours cannot be entered, and identical start and end times give 0 rather than a full day. Use the Date Difference Calculator for spans measured in days.

Time zones and daylight saving are ignored: the times are treated as readings from the same clock. On the night the clocks change, the real elapsed time differs from the clock difference by an hour.

Only one break can be entered. Add up several breaks and enter the total in minutes.

Limits to know before you rely on it

  • Clock times only: no dates, so spans of 24 hours or more cannot be entered.
  • Identical start and end times give zero, not 24 hours.
  • One break field; add multiple breaks together before entering them.
  • Seconds are not used; the time fields work in whole minutes.
  • Time zones and daylight saving changes are not considered.
  • Decimal hours are rounded to two places, so short intervals show rounded values.

Questions people ask about the Time Duration Calculator

How do I calculate hours worked between two times?

Enter the start and end times and any break in minutes. The tool subtracts the start from the end, adds 24 hours if the shift crosses midnight, takes off the break and shows the result. From 08:15 to 16:45 with a 30-minute break the net duration is 8h 0m, or 8 decimal hours.

Does it work for a night shift that ends after midnight?

Yes. When the end time is earlier than the start, the tool treats it as the next day. From 23:00 to 07:30 with no break the duration is 8h 30m, 8.5 decimal hours and 510 minutes, and a note confirms the next-day assumption.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 6 hours 45 minutes is 6 plus 45 divided by 60, which is 6.75. The tool shows this figure as Decimal hours whenever you enter a time span.

What happens if the break is longer than the shift?

The net duration stops at zero. The tool does not show negative time. Check that the break is in minutes, not hours; a 1-hour break should be entered as 60.

Can I enter a shift of exactly 24 hours?

No. The same start and end time gives 0 minutes, because the tool only adds a day when the end is strictly earlier than the start. Enter the shift as two parts, or use the Date Difference Calculator for whole days.

Can I use the result for payroll or invoicing?

You can copy the figures, but apply your own rounding, overtime and break rules on top. The tool reports exact elapsed time to the minute and does not know any employer's or client's policy.

Sources and further reading