Text & Developer tool

Time Duration Calculator (Hours and Minutes)

Find the hours and minutes between two times, or add and subtract time from a clock time.

  • Instant results
  • Working shown
  • No sign-up
  • Runs in your browser
ToolUpdates as you type
8 hours 15 minutes
from 9:30 AM to 5:45 PM
  • Total minutes495
  • Decimal hours495 ÷ 60 = 8.25
  • In HH:MM08:15

Both times are on the same day. If the end time is earlier, it is taken as the next day.

How it works

This time duration calculator finds the hours and minutes between a start time and an end time. From 9:30 AM to 5:45 PM is 8 hours 15 minutes, or 8.25 hours. If the end time is earlier than the start, it is taken as the next day, so night shifts work. You can also subtract a break, or add and subtract hours and minutes from a time.

This time duration calculator works out how long it is between two clock times, in hours and minutes. Use it for class timings, study sessions, work shifts, exam duration or travel time. It can also add or subtract time from a clock time.

How to use the time duration calculator

Time between two times

  1. Enter the start time and the end time.
  2. Optional: enter a break in minutes, such as a 45-minute lunch.
  3. Read the result in hours and minutes, total minutes, decimal hours and HH:MM.

Add or subtract time

  1. Choose Add or subtract time.
  2. Enter the start time and the hours and minutes.
  3. Click Add or Subtract and read the new time and day.

Hours between two times: the method

Minutes after midnight = Hours × 60 + Minutes   (24-hour clock)
Duration = End − Start
If End is earlier than Start, add 24 × 60 = 1,440 minutes
Hours = Duration ÷ 60 (whole part), Minutes = Duration mod 60

Example: 9:30 AM to 5:45 PM with a 45-minute break.

Step Working Result
Start in minutes 9 × 60 + 30 570
End in minutes 17 × 60 + 45 1,065
Duration 1,065 − 570 495 minutes = 8 h 15 min
Minus break 495 − 45 450 minutes = 7 h 30 min
Decimal hours 450 ÷ 60 7.5 hours

Common mistake: A common mistake is writing 8 hours 15 minutes as 8.15 hours. In decimal hours it is 8.25, because 15 minutes is a quarter of an hour. Writing 8.15 on a timesheet loses 6 minutes.

Time difference across midnight

When a shift starts at night and ends the next morning, the end time looks smaller than the start. The calculator adds a day:

Start End Duration
10:00 PM 6:30 AM 8 hours 30 minutes
11:45 PM 12:15 AM 30 minutes
6:00 PM 2:00 AM 8 hours

Add and subtract time

Start Change Result
9:15 PM + 2 h 45 min 12:00 AM, next day
1:00 AM − 1 h 30 min 11:30 PM, previous day
10:00 AM + 3 h 20 min 1:20 PM, same day

Minutes to hours conversion

Minutes Hours and minutes Decimal hours
15 0 h 15 min 0.25
30 0 h 30 min 0.5
45 0 h 45 min 0.75
90 1 h 30 min 1.5
150 2 h 30 min 2.5

Time calculations in code

Converting times to minutes and using the remainder (mod) operator is a classic beginner exercise, the same idea as splitting seconds into minutes and seconds. For whole dates rather than clock times, use the days calculator, and for years of work from joining and leaving dates, the experience calculator.

Pro tip: Planning study time? Find how long a chapter takes with the reading time calculator, then use this tool to fit sessions between your classes.

Times stay in your browser. Nothing is sent or saved.

Frequently asked questions

How do I calculate the hours between two times?
Convert both times to minutes after midnight, subtract, and turn the minutes back into hours and minutes. 9:30 AM is 570 minutes and 5:45 PM is 1,065 minutes, so the gap is 495 minutes, which is 8 hours 15 minutes.
How do I calculate a night shift, such as 10 PM to 6:30 AM?
When the end time is earlier than the start time, add 24 hours to the end. The calculator does this for you: 10:00 PM to 6:30 AM is 8 hours 30 minutes.
What is 8 hours 15 minutes in decimal hours?
Divide the minutes by 60: 15 ÷ 60 = 0.25, so it is 8.25 hours. Timesheets and pay sums often use decimal hours.
How do I add hours and minutes to a time?
Choose 'Add or subtract time', enter the start time and the hours and minutes to add. For example, 9:15 PM plus 2 hours 45 minutes is 12:00 AM the next day.
Does it handle more than 24 hours?
The between-times mode works within 24 hours, because a clock time has no date. For longer gaps across dates, use the days calculator.

Try another tool

See all free tools
Chat with us