BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 2 primary sourcesLast updated

Time Duration Calculator (Hours and Minutes Between Two Times)

Hours and minutes between two clock times, less a break, in minutes and decimal hours. Handles night shifts that cross midnight and shows 12-hour times too.

Quick Answer: From 9:00 to 17:30 with a 30 minute break is 8 hr, which is 480 minutes or 8 decimal hours. The time duration calculator works it out for any two clock times, including shifts that run past midnight.

Assumptions

Computed
min

Preset scenarios

Time between, less break
8 hr
In minutes
480 min
In decimal hours
8 hr
Before the break
8 hr 30 min
In 12-hour time
9:00 AM to 5:30 PM
Crosses midnight
No

Minutes to decimal hours

Download CSV
Each row is this calculator run from 00:00 to the number of minutes shown, with no break. Decimal hours are the minutes divided by 60, rounded half up to two places.
MinutesHours and minutesDecimal hours
55 min0.08
66 min0.1
1010 min0.17
1212 min0.2
1515 min0.25
1818 min0.3
2020 min0.33
2525 min0.42
3030 min0.5
3535 min0.58
4040 min0.67
4545 min0.75
5050 min0.83
5555 min0.92
601 hr1
751 hr 15 min1.25
901 hr 30 min1.5
1202 hr2

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Time Duration Calculator (Hours and Minutes Between Two Times): Time between, less break 8 hr (Start time: 09:00; End time: 17:30; Break to subtract: 30 min).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of an hourglass, two mugs, a folded scarf and a potted plant on a desk by a window with a city view
Quick Answer: From 9:00 to 17:30 with a 30 minute break is 8 hr, which is 480 minutes or 8 decimal hours. The time duration calculator works it out for any two clock times, including shifts that run past midnight.

What does this calculator do?

This time duration calculator gives the hours and minutes between a start time and an end time, takes off a break if you enter one, and shows the result three ways: as hours and minutes, as a single number of minutes, and as decimal hours for a timesheet.

It also writes both times on the 12-hour clock and tells you whether the span crossed midnight.

It is built for the everyday cases: how long a shift was, how long a meeting or a drive took, how much time passed between two readings on a clock. You type two times, and if the end is earlier than the start, the calculator reads the end as the next day, so a night shift from 22:00 to 06:00 comes out as 8 hours rather than a negative number.

Times are entered on the 24-hour clock, which some people call military time: 1:30 PM is 13:30 and midnight is 00:00. Most phones and browsers show a time picker for these boxes, which may use your usual 12-hour format with AM and PM; either way, the calculator receives the same 24-hour time.

Using the Time Duration Calculator

  1. Enter the Start time.
  2. Enter the End time. If it is earlier than the start, it is taken as the next day.
  3. Enter a Break to subtract in minutes, or 0 for plain elapsed time.
  4. Read the result at the top. Below it are the total minutes, decimal hours, the span before the break, both times in 12-hour form, and whether midnight was crossed.

The presets load four common cases: an office day with a 30 minute lunch, a night shift with a 45 minute break, a plain elapsed time of an afternoon, and a morning shift with a 15 minute break.

How is this calculated?

  1. Turn each time into minutes after midnight. 09:00 is 540 and 17:30 is 1,050. A time of 24:00 is accepted as the end of the day, 1,440 minutes.
  1. Find the span. If the end is the same as or later than the start, the span is end minus start. If the end is earlier, the end is on the next day, so a full day of 1,440 minutes is added to it first.

span = end − start, end ≥ start; end + 1440 − start, end < start

  1. Take off the break. The break in minutes is subtracted from the span. If the break is longer than the span, the result is held at zero rather than going negative.
  1. Write it out. The net minutes are split into whole hours and leftover minutes. Decimal hours are the net minutes divided by 60, rounded half up to two decimal places.

decimal hours = (net minutes)/60

Worked Example

The default, 09:00 to 17:30 with a 30 minute break:

  1. Start is 540 minutes after midnight and end is 1,050.
  2. The span is 1,050 minus 540, or 8 hr 30 min.
  3. Less 30 minutes of break leaves 8 hr, which is 480 min.
  4. In decimal hours that is 8.

A night shift, 22:00 to 06:00 with a 45 minute break:

  1. The end, 360 minutes, is earlier than the start, 1,320, so it is on the next day: 360 plus 1,440 minus 1,320 gives 8 hr.
  2. Less 45 minutes leaves 7 hr 15 min, or 435 min.
  3. In decimal hours, 7.25.

How Do You Calculate Elapsed Time?

Subtract the start from the end, borrowing an hour when the minutes would go negative. From 13:47 to 16:05: 16:05 is 15:65 after borrowing an hour, and 15:65 minus 13:47 is 2 hours 18 minutes. Enter 13:47 and 16:05 with no break and the calculator gives the same 2 hr 18 min, or 2.3 decimal hours.

How Do You Convert Hours and Minutes to Minutes?

Multiply the hours by 60 and add the minutes. 2 hours 18 minutes is 120 plus 18, or 138 minutes, which is what the "In minutes" card shows for the elapsed time example. To turn minutes into decimal hours, divide by 60; the table below has the common values a timesheet needs.

What does this calculator not account for?

  • Spans longer than a day. Two clock times with no dates can only describe up to 24 hours. A span of 30 hours needs dates; use the days until calculator for whole days and add the hours.
  • Daylight saving changes. On the night clocks go forward an hour, a shift from 22:00 to 06:00 is really 7 hours long, and on the night they go back it is 9. The calculator reads the clock times as written and does not know the date.
  • Seconds. Times are to the minute.
  • Pay rules. Rounding to the nearest quarter hour, paid breaks, overtime and minimum shift lengths depend on your employer and local law. The decimal hours here are exact to two places, not rounded to any pay rule.
  • Equal start and end times. If the start and end are the same, the answer is zero, not 24 hours. Enter 00:00 to 24:00 for a full day.

What mistakes do people make with this?

  • Reading decimal hours as hours and minutes. 7.25 hours is 7 hours 15 minutes, not 7 hours 25 minutes. The decimal is a fraction of 60 minutes. Likewise 4.17 hours, from the morning shift preset, is 4 hours 10 minutes.
  • Mixing up AM and PM. 12:30 AM is just after midnight (00:30) and 12:30 PM is just after noon (12:30). If a shift looks far too long, check the AM and PM.
  • Subtracting times like decimals. 16:05 minus 13:47 is not 2.58 of anything. Minutes run to 60, so you have to borrow an hour.
  • Forgetting an unpaid break. A 9 to 5:30 day is 8 hours 30 minutes on the clock and 8 hours worked once a half-hour lunch is taken off.
  • Overnight spans entered the wrong way round. If you swap start and end for a night shift, 06:00 to 22:00 gives 16 hours instead of 8.

Frequently Asked Questions

How many hours is 9 to 5:30?

8 hours 30 minutes on the clock. With a 30 minute lunch, which is the default here, it is 8 hours worked, or 480 minutes.

How do I convert military time to minutes?

Multiply the hours by 60 and add the minutes. 01:30 is 1 times 60 plus 30, or 90 minutes after midnight, which is the row for 90 minutes in the table. Turning each time into minutes is the first step the calculator takes.

How do I calculate hours worked across midnight?

Enter the start and end as they appear on the clock, such as 22:00 and 06:00. The calculator sees that the end is earlier than the start and counts it as the next morning, giving 8 hours before any break.

What is 15 minutes in decimal hours?

0.25 hours. Divide the minutes by 60. The table lists other common values, such as 0.5 for 30 minutes and 0.75 for 45.

Can I add up several shifts?

Not in one go: the calculator measures one span at a time. Run it for each shift and add the minutes cards, then divide the total by 60 for decimal hours.

Why does 10:00 to 10:20 with a 30 minute break show zero?

The break is longer than the 20 minutes between the two times, so there is nothing left after subtracting it. The calculator stops at zero rather than showing a negative time.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 6 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 09:00 to 17:30 less 30 minutes is 8 hr
  • A night shift crosses midnight
  • Elapsed time with a borrowed hour
  • Rounds decimal hours half up to two places
  • Edge cases: equal times, full day, a break longer than the span
  • builds the minutes to decimal hours table

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews