Hours Calculator

Find out how many hours are between a start time and an end time — for a work shift, a class, or anything else measured clock-to-clock. Handles overnight shifts automatically and can subtract an unpaid break to show your actual worked hours.

Leave the dates blank for a same-day (or auto-detected overnight) shift. Fill in both dates for an exact result across specific days — useful for a full 24-hour shift or anything spanning more than one night.
Result
Total Time
Rounded Time
Elapsed (Before Break)
Decimal Hours

Why "8:30 to 4:30" isn't a complete answer on its own

Written without AM or PM, "8:30 to 4:30" is genuinely ambiguous — it could mean an 8-hour workday (8:30 AM to 4:30 PM), or something else entirely depending on context. This calculator uses your device's own time picker, which always requires an unambiguous AM/PM or 24-hour selection, so there's no guesswork involved in the result.

Example: 8:30 AM to 4:30 PM
4:30 PM − 8:30 AM = 8 hours With a 30-minute lunch break: 8 hours − 30 minutes = 7.5 hours

Overnight shifts

If the end time is earlier than the start time and no dates are entered, the calculator assumes the shift runs past midnight into the next day, rather than showing a negative or nonsensical result.

Example: 10:00 PM to 6:00 AM
6:00 AM (next day, assumed) − 10:00 PM = 8 hours

That assumption works well for a typical overnight shift, but it can't tell the difference between "ends the next morning" and, say, "the same clock time exactly 24 hours later" — both look identical from bare start/end times alone. For an exact answer with no guessing, fill in both a start date and an end date; the calculator then computes the real elapsed time directly from those dates instead of inferring anything.

The 24-Hour Day in Phases

24-Hour Time 12-Hour Time Life Context
00:00 – 05:00 12 AM – 5 AM Deep Night
06:00 – 11:00 6 AM – 11 AM Morning
12:00 12 PM Midday (High sun, lunch break)
13:00 – 17:00 1 PM – 5 PM Afternoon
18:00 – 21:00 6 PM – 9 PM Evening (Dinner time)
22:00 – 23:59 10 PM – 11:59 PM Late Night

The "Switch" Points

Time Description 12-Hour Time 24-Hour Time
Midnight 12:00 AM 00:00
Early Morning 12:30 AM 00:30
Noon 12:00 PM 12:00
Early Afternoon 12:59 PM 12:59

Mental Shortcut for Midnight

If you see a 12-hour time that starts with 12:-- AM, just replace the "12" with "00" to get the 24-hour time (e.g., 12:15 AM → 00:15).

FLSA time-clock rounding

The "Round Worked Time" option above rounds your start time and end time independently to the nearest selected interval, then recalculates your worked time from those rounded punches. Under the FLSA, rounding practices must average out over time so that employees are fully compensated for the time they actually work.

Rounding must be neutral over time. Rounding is not a way to consistently reduce recorded hours. A practice that consistently rounds employees' time down can violate the FLSA.

15-minute rule (7-minute threshold)

Minutes Worked Rounded Time
0 – 7 minutes0 minutes
8 – 22 minutes15 minutes
23 – 37 minutes30 minutes
38 – 52 minutes45 minutes
53 – 60 minutes60 minutes (1 hour)

6-minute rounding (one-tenth of an hour)

Minutes Worked Rounded Time
0 – 2 minutes0 minutes
3 – 8 minutes6 minutes
9 – 14 minutes12 minutes
15 – 20 minutes18 minutes
21 – 26 minutes24 minutes
27 – 32 minutes30 minutes
33 – 38 minutes36 minutes
39 – 44 minutes42 minutes
45 – 50 minutes48 minutes
51 – 56 minutes54 minutes
57 – 60 minutes60 minutes

5-minute rounding

Minutes Worked Rounded Time
0 – 2 minutes0 minutes
3 – 7 minutes5 minutes
8 – 12 minutes10 minutes
13 – 17 minutes15 minutes
18 – 22 minutes20 minutes
23 – 27 minutes25 minutes
28 – 32 minutes30 minutes
33 – 37 minutes35 minutes
38 – 42 minutes40 minutes
43 – 47 minutes45 minutes
48 – 52 minutes50 minutes
53 – 57 minutes55 minutes
58 – 60 minutes60 minutes

Frequently asked questions

How do I convert hours and minutes to decimal hours?

Divide the total number of remaining minutes by 60 and append the result as a decimal to your full hours. For example, for 8 hours and 15 minutes: 15 ÷ 60 = 0.25, giving a total of 8.25 decimal hours.

How do I calculate hours worked with an unpaid lunch break?

Calculate the total elapsed duration between your start time and end time, then subtract your unpaid break duration. An 8.5-hour span (e.g., 8:00 AM to 4:30 PM) minus a 30-minute break equals 8.0 billable or payable work hours.

How does this handle overnight or third-shift hours?

When the end time occurs numerically earlier than the start time (e.g., starting at 10:00 PM and ending at 6:00 AM) and no dates are entered, the tool assumes the shift crosses midnight into the next day. For an exact result instead of that assumption — especially useful for a full 24-hour shift or anything spanning more than one night — fill in a start date and an end date.

What if my start time and end time are the same, like 9:00 PM to 9:00 PM?

Without dates, identical start and end times are read as 0 hours elapsed, since there's no way to tell whether that's meant as "no time passed" or "exactly 24 hours later" from the clock times alone. If you really do mean a full 24-hour span, enter a start date and an end date one day apart — the calculator will then give you an exact 24-hour result instead of guessing.

Is 12:00 AM considered noon or midnight?

12:00 AM refers specifically to midnight (the very beginning of a new calendar day), whereas 12:00 PM refers to noon (midday). In 24-hour time notation, midnight is written as 00:00 and noon as 12:00.

What is FLSA time-clock rounding?

FLSA time-clock rounding is a payroll practice in which recorded start and stop times are rounded to an interval such as 5 minutes, one-tenth of an hour (6 minutes), or one-quarter of an hour (15 minutes). Under 29 CFR § 785.48(b), the U.S. Department of Labor permits these rounding practices when they average out over time so that employees are fully compensated for all time actually worked.