Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Hours Calculator — Free Online Hours Between Two Times

Calculate the hours and minutes between any two times of day.

Start Time

End Time

Time Duration

8hours0minutes

Total Minutes

480

Decimal Hours

8.00

Formatted Duration

8h 00m

From 09:00 to 17:00

Decimal Hours Conversion Reference Table

Minutes Decimal Hours Fraction Common Use
5 min 0.08 1/12 Quick phone call
10 min 0.17 1/6 Minimum billing increment
15 min 0.25 1/4 Quarter-hour billing
20 min 0.33 1/3 Standard break
30 min 0.50 1/2 Lunch break / half hour
45 min 0.75 3/4 Class period / meeting

Related Calculators

About this calculator

Hours Calculation Formula

Duration = End Time - Start Time (in minutes)
If Crosses Midnight: Duration = (End Time + 1440) - Start Time
Decimal Hours = Total Minutes / 60

Variables Explained

  • Start Time (minutes): Calculated as Start Hour x 60 + Start Minute. For example, 9:30 becomes (9 x 60) + 30 = 570 minutes from midnight.
  • End Time (minutes): Calculated as End Hour x 60 + End Minute. For 17:00, this is (17 x 60) + 0 = 1,020 minutes from midnight.
  • 1,440: The total number of minutes in a 24-hour day. This constant is added to the end time when the Crosses Midnight option is enabled to account for the day transition.
  • Duration (minutes): The absolute difference between end and start times, expressed in total minutes. This is then divided by 60 to extract hours and the remainder gives minutes.
  • Decimal Hours: The duration expressed as a decimal number. Calculated by dividing total minutes by 60. For example, 480 minutes / 60 = 8.00 decimal hours.

Step-by-Step Example

Calculate hours from 9:15 to 17:45:

  1. Convert start time: (9 x 60) + 15 = 555 minutes
  2. Convert end time: (17 x 60) + 45 = 1,065 minutes
  3. Calculate difference: 1,065 - 555 = 510 minutes
  4. Extract hours: floor(510 / 60) = 8 hours
  5. Extract remaining minutes: 510 mod 60 = 30 minutes
  6. Calculate decimal hours: 510 / 60 = 8.50
  7. Result: 8 hours 30 minutes (8.50 decimal hours)

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026