Hours Calculator

About this calculator

The Hours Calculator works out how many hours and minutes lie between two clock times, or between a time on one date and a time on another. You get the answer in hours and minutes, in decimal hours (for payroll) and in total minutes. Overnight spans are handled automatically.

Leave blank for today.
Leave blank for today.
minutes
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How to calculate hours between two times

To find the hours between two times of day, convert both to minutes after midnight, subtract, and convert back. A 12-hour time first needs its AM or PM resolved: 12 AM is midnight (0 minutes), times from 1 AM to 11 AM keep their hour, 12 PM is noon, and 1 PM to 11 PM add 12 hours. If the end time is earlier than the start time, the shift crossed midnight, so 24 hours (1,440 minutes) is added.

Minutes = (end hour × 60 + end minute) − (start hour × 60 + start minute)
If minutes < 0, add 1,440
Decimal hours = minutes ÷ 60

Worked examples

A standard day shift

8:30 AM is 510 minutes after midnight and 5:30 PM is 1,050 minutes. The difference is 540 minutes, which is exactly 9 hours. If you took a 30-minute unpaid lunch, enter 30 in the break box and the worked time becomes 8 hours 30 minutes, or 8.5 hours.

An overnight shift

From 10:15 PM to 6:40 AM: 10:15 PM is 1,335 minutes and 6:40 AM is 400 minutes. The end is earlier, so add 1,440: 400 + 1,440 − 1,335 = 505 minutes, or 8 hours 25 minutes. As decimal hours that is 505 ÷ 60 = 8.42 hours.

Across several days

From January 15, 2026 at 8:30 AM to January 18, 2026 at 5:45 PM is 3 days, 9 hours and 15 minutes. In hours alone that is 81 hours 15 minutes, or 81.25 decimal hours, which is 4,875 minutes.

Converting minutes to decimal hours

Payroll systems and invoices usually want decimal hours. Divide the minutes by 60. The table shows common values.

MinutesDecimal hoursMinutesDecimal hours
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Daylight saving time

These results use wall-clock time. On the night clocks spring forward, a shift from 11:00 PM to 7:00 AM shows 8 hours even though only 7 hours actually elapsed; on the night clocks fall back, 9 hours elapse. If you need elapsed time across a clock change, adjust the result by one hour, or check your employer's timekeeping policy, since US wage rules count hours actually worked.

About the hour

The hour is 60 minutes, or 3,600 seconds. Dividing the day into 24 hours traces back to ancient Egypt, where daylight and darkness were each split into 12 parts that changed length with the seasons. Equal-length hours became standard with mechanical clocks in medieval Europe. Today the second is defined atomically, and the hour is simply 3,600 of them.

Related tools

For a full week of clock-in and clock-out times with overtime and pay, use the time card calculator. For durations that include seconds, or between times on different dates down to the second, use the time duration calculator.

Hours in common periods

PeriodHoursMinutes
Standard workday8480
Standard workweek402,400
One day241,440
One week16810,080
Full-time year (52 weeks × 40 hours)2,080124,800

The 2,080-hour figure is the usual basis for converting between an hourly wage and an annual salary: a $25 hourly rate works out to about $52,000 per year before overtime or unpaid time off.

Entering times

Type the clock time as hours and minutes separated by a colon, such as 8:30 or 11:05, and choose AM or PM from the list next to it. A bare hour such as 9 is read as 9:00. Noon is 12:00 PM and midnight is 12:00 AM. If you are working from a 24-hour schedule, 13:00 to 21:00 corresponds to 1:00 PM to 9:00 PM.

Frequently asked questions

How many hours is 8:30 AM to 5:30 PM?
9 hours, or 540 minutes. Subtract any unpaid break to get time worked.
How do I calculate hours for an overnight shift?
Subtract the start time from the end time and add 24 hours if the result is negative. 10:15 PM to 6:40 AM is 8 hours 25 minutes.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add the hours. 8 hours 25 minutes is 8 + 25/60 = 8.42 hours.
Does the calculator account for daylight saving time?
No. It uses clock time, so spans that cross a clock change may differ from actual elapsed time by one hour.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.