NNumvella
Time & Date

Hours Calculator

Find the hours and minutes between times — including overnight shifts.

Enter a start and end time to get the total time worked, shown as hours and minutes and as decimal hours for payroll. Add more rows to total a full timesheet of shifts.

Overnight shifts are handled automatically — if the end time is earlier than the start, the calculator assumes it crosses midnight.

Loading…

100% freeNo sign-up No data leaves your browserPrivacy

Formula

Hours between two times

(end − start) in minutes ÷ 60

Convert both times to minutes since midnight, subtract, then divide by 60. Example: 09:00 to 17:30 = 510 minutes = 8.5 hours.

Decimal hours

total minutes ÷ 60

Payroll uses decimal hours: 7h 30m is 7.5 hours (30 ÷ 60 = 0.5).

How to use the hours calculator

  1. 1Enter the start time and end time for a shift (24-hour or your device's time picker).
  2. 2Use “Add row” to include more shifts — the totals add up across all of them.
  3. 3Read the total as “h m” and as decimal hours; copy the result.

Examples

ExampleInputResult
Standard day09:00 → 17:008h 0m · 8.00
With a half hour09:00 → 17:308h 30m · 8.50
Overnight22:00 → 06:008h 0m · 8.00

How to calculate hours worked

Subtract the start time from the end time. The easiest way by hand is to convert each time to minutes since midnight, subtract, then divide by 60. From 9:00 (540 minutes) to 17:30 (1050 minutes) is 510 minutes, which is 8 hours and 30 minutes, or 8.5 decimal hours.

Decimal hours vs. hours and minutes

Payroll systems usually expect decimal hours rather than hours and minutes, because you can't multiply “8h 30m” by an hourly wage directly. To convert, divide the minutes by 60: 15 minutes is 0.25, 30 is 0.5, and 45 is 0.75. This calculator shows both so you can use whichever your timesheet needs.

Overnight shifts

When a shift ends the next day — say 10:00 PM to 6:00 AM — the end time (06:00) is earlier than the start (22:00). The calculator detects this and adds 24 hours so the result is a correct 8 hours rather than a negative number.

Frequently asked questions

How do I calculate hours worked?

Subtract your start time from your end time. Convert to minutes first if it helps, then divide by 60 for decimal hours. 9:00 to 17:30 is 8.5 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes = 0.25, 30 minutes = 0.5, 45 minutes = 0.75.

Does this handle overnight shifts?

Yes. If the end time is earlier than the start time, it's treated as crossing midnight and 24 hours are added so the total is correct.

How do I total hours for a week?

Use “Add row” to enter each day's start and end times. The calculator sums every row into one weekly total.

Embed this calculator

Add the Hours Calculator to your own website — free. Copy and paste this snippet:

<iframe src="https://numvella.com/embed/hours-calculator" width="100%" height="460" style="border:1px solid #e2e8f0;border-radius:12px" title="Hours Calculator — Numvella" loading="lazy"></iframe>