All calculators

Hours Calculator

Calculate the hours and minutes between two clock times. See decimal hours and total minutes, including overnight periods.

Time range

12-hour times (h:mm).

Start and end of the time range

Time between

--
Decimal hours--
Total minutes--

Crosses midnight: --

Enter start and end times to calculate the duration.

How to calculate hours between two times

Enter a start time and an end time, choosing AM or PM for each. The result updates automatically. Use clock times such as 8:30, or enter a whole hour such as 8.

Elapsed minutes = end time in minutes - start time in minutes

Convert each time to minutes after midnight. If the difference is negative, add 1,440 minutes. Divide by 60 for whole hours; the remainder is minutes. This tool measures the clock-time difference, without dates or daylight saving adjustments.

Hours and minutes vs decimal hours

8 hours 30 minutes is 8.50 decimal hours because 30 / 60 = 0.5. Total minutes are exact; decimal hours use two to four places, rounded only for display.

For standalone conversions, use the Decimal Hours Calculator.

Overnight time calculation

When the end time is earlier than the start, it is treated as the next day. For example, 10:00 PM to 6:30 AM is 8h 30m, or 510 minutes.

When the start and end times are the same, this calculator treats the duration as zero. For durations spanning full days, use the Time Duration Calculator.

Worked examples

8:00 AM to 5:00 PM
9h 00m, 9.00 decimal hours, 540 minutes.
8:30 AM to 5:15 PM
8h 45m, 8.75 decimal hours, 525 minutes.
10:00 PM to 6:30 AM
8h 30m, 8.50 decimal hours, 510 minutes. Crosses midnight.
9:15 AM to 1:45 PM
4h 30m, 4.50 decimal hours, 270 minutes.
12:00 PM to 12:00 PM
0h 00m, 0.00 decimal hours, 0 minutes.

Frequently asked questions

How do I enter noon or midnight?

Noon is 12:00 PM. Midnight is 12:00 AM. Selecting the wrong period can change the interval by 12 hours.

What if the end time is after midnight?

An earlier end time is automatically treated as the next day. If an overnight interval was not intended, check both times and their AM/PM selections.

How do I convert the result to decimal hours?

Divide total minutes by 60. For example, 525 / 60 = 8.75 hours. The calculator shows this alongside hours and minutes.

What happens if the start and end times are the same?

With matching AM/PM selections, the result is zero, not 24 hours. Noon to midnight, or midnight to noon, is 12 hours.

Can I calculate a duration longer than 24 hours?

Use the Time Duration Calculator for specific start and end dates, or periods longer than one day. This tool compares clock times only.