Hours calculator: time between two times
Add dates
8 h 5 min
8:05 · 8.08 decimal hours · 485 minutes
8:45 AM to 5:20 PM, minus 30 min break
Set a start and an end time, take off any break, and the hours and minutes between them appear straight away, in h:mm and in decimal hours. An end time earlier than the start counts as the next day. Add dates for periods longer than a day.
Great for
- The length of a shift or a single work session
- Billable hours for an invoice, in decimal form
- The time between two clock readings, even overnight
How the hours calculator works
The calculator turns both times into minutes after midnight, subtracts the start from the end and takes off the break. When the end is earlier than the start and no dates are set, it adds 24 hours, because the period must have crossed midnight: 10:30 PM to 2:15 AM is 3 hours 45 minutes.
With dates it counts the whole days too, so Monday 9:00 AM to Wednesday 11:30 AM is 50 hours 30 minutes.
How to use the hours calculator
- Choose 12-hour or 24-hour. The time lists and the result follow that clock.
- Set the Start time and the End time with the hour and minute lists.
- Type a Break (minutes) if part of the time was unpaid or off task; leave 0 otherwise.
- For a period of more than one day, open Add dates and pick the Start date and the End date.
- Press Copy result to paste the answer somewhere else.
Worked example
The example in the calculator runs from 8:45 AM to 5:20 PM. That is 8 hours 35 minutes on the clock; minus a 30-minute lunch it leaves 8 hours 5 minutes, written 8:05. In decimal hours it is 8 + 5 ÷ 60 = 8.08, and in minutes 485.
Mind the difference between 8:05 and 8.05. The first means 8 hours 5 minutes; the second means 8 hours 3 minutes. Payroll systems and invoices usually want the decimal form.
Minutes to decimal hours
To turn minutes into decimal hours, divide them by 60. The table rounds to two decimal places, the way most timesheets do.
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 1 min | 0.02 | 30 min | 0.50 |
| 3 min | 0.05 | 35 min | 0.58 |
| 5 min | 0.08 | 36 min | 0.60 |
| 6 min | 0.10 | 40 min | 0.67 |
| 10 min | 0.17 | 42 min | 0.70 |
| 12 min | 0.20 | 45 min | 0.75 |
| 15 min | 0.25 | 48 min | 0.80 |
| 18 min | 0.30 | 50 min | 0.83 |
| 20 min | 0.33 | 54 min | 0.90 |
| 24 min | 0.40 | 55 min | 0.92 |
| 25 min | 0.42 | 59 min | 0.98 |
How accurate is it?
The arithmetic is exact to the minute; only the decimal figure is rounded, to two places. Seconds aren't counted. The calculator works with clock time and doesn't adjust for daylight saving time: on the night the clocks change, a shift lasts one hour more or less than the difference between the two clock times.
In most of the United States the clocks go forward at 2:00 AM on the second Sunday in March and back at 2:00 AM on the first Sunday in November, according to NIST. A 10:00 PM to 6:00 AM shift on the November night shows 8 hours here but lasts 9.
Tip: For a whole week of shifts, the [time card calculator](/time-card-calculator) adds up each day and the week, with overtime.
Sources: NIST – Daylight Saving Time Rules · U.S. Department of Labor – Breaks and Meal Periods · last checked November 12, 2026
Questions & answers
How many hours is 9 AM to 5 PM?
8 hours. With a 30-minute unpaid lunch it is 7 hours 30 minutes, or 7.50 decimal hours.
How do I calculate hours across midnight?
Enter the times as they are. If the end time is earlier than the start time, the calculator counts it as the next day: 11:00 PM to 7:00 AM is 8 hours.
What is 7 hours 45 minutes in decimal?
7.75 hours. Divide the minutes by 60 (45 ÷ 60 = 0.75) and add the whole hours.
Can it count hours over several days?
Yes. Open Add dates and pick both dates as well as the times. Friday 6:00 PM to Monday 6:00 AM, for example, is 60 hours.
What does the 12-hour or 24-hour switch change?
Only how the times are picked and shown. 2:30 PM and 14:30 are the same moment, so the result stays the same.