AutoTimecardAbout AutoTimecard

How to calculate hours worked (free calculator)

Hours worked in a day = end time minus start time minus unpaid breaks. 09:00 to 17:30 with a 30-minute break is 8 hours. If a shift ends after midnight, add 24 hours to the end time first: 22:00 to 06:00 is 8 hours. Add the days together for the week or the month, and multiply the total in decimal hours by your hourly rate for a rough figure of the pay. The calculator below does all of this in your browser.

Last checked: 2026-11-28

Hours calculator

Type the start, the end and the break for each day. Each row shows that day's hours, and the total adds them up. Add an hourly rate if you want a rough pay figure.

1
2
3
Total
0:00
in decimal hours
0.00
Days
0

Everything is calculated on this page. Nothing you type is sent anywhere or saved, and it is gone when you close the page.

The formula, step by step

  1. Write the start and end in 24-hour time
    5:30 pm is 17:30. It avoids mixing up morning and evening.
  2. Subtract the start from the end
    17:30 minus 09:00 is 8 hours 30 minutes.
  3. Take off unpaid breaks
    8 hours 30 minutes minus a 30-minute break is 8 hours.
  4. Turn the minutes into decimal hours
    Divide the minutes by 60: 7 hours 45 minutes is 7.75 hours. Pay and most payroll systems use decimal hours.
  5. Add the days
    The sum of the days is the total for the week or the pay period.
ShiftStartEndBreakHours workedDecimal hours
Day shift09:0017:3030 min8 h 00 min8.00
Afternoon13:0018:15none5 h 15 min5.25
Night shift22:0006:0045 min7 h 15 min7.25
Long day07:3019:0060 min10 h 30 min10.50

Minutes to decimal hours

The most common mistake is to treat 7 hours 45 minutes as 7.45 hours. It is 7.75, because 45 minutes is three quarters of an hour. At 20 an hour, that is 155, not 149.

MinutesDecimal hours
50.08
100.17
150.25
200.33
300.50
400.67
450.75
500.83

Night shifts that cross midnight

When the end time is earlier than the start time, the shift ended the next day. Add 24 hours to the end before you subtract: 22:00 to 06:00 is 30:00 minus 22:00, which is 8 hours. The calculator above does this for you and says that the shift ends the next day.

Count a night shift on the day it started, as one row. Splitting it at midnight makes two short days and doubles the chance of a mistake. AutoTimecard does the same: a night shift stays one record on the day it started.

Or let your phone record the times

Calculating is the easy part. Remembering the exact start and end of every day is what goes wrong. AutoTimecard records them for you: add your workplace once, and the clock-in is saved when your phone arrives and the clock-out when it leaves.

  • The hours for each day and the total for the month are calculated, with the cutoff day your employer counts by.
  • Time away from the workplace in the middle of the day is shown and not counted, or you can set one fixed break to take off each day.
  • Times are kept as recorded. The app does not round them.
  • With an hourly rate, and night or weekend rates if you have them, the report shows an estimate of the pay. It is your estimate, not payroll.
  • The month exports as PDF, Excel (XLSX), CSV or plain text.

The first five days with an automatic clock-in and clock-out are free. Viewing, correcting and exporting your records never needs a subscription.

Formulas for your own spreadsheet

Put the start in column B, the end in column C and the break in minutes in column D, with the start and end cells formatted as time. In E2, this formula gives the hours for row 2 as a decimal number, night shifts included:

CellWhat it holdsExample or formula
B2Start (time)22:00
C2End (time)06:00
D2Break in minutes45
E2Hours (format as a number)=(C2-B2+(C2<B2))*24-D2/60
TotalHours for the monthSelect column E and use AutoSum (Σ)

(C2<B2) is 1 when the end is earlier than the start, which adds the day that a night shift crosses. Multiplying by 24 turns a fraction of a day into hours. The formula works in Excel and Google Sheets. Our free Excel timesheet template already has these calculations for 31 days, if you would rather not build it yourself.

Rounding to 5, 10 or 15 minutes

Some employers round clock times, for example to the nearest 15 minutes. Whether times are rounded, and how, is your employer's rule, and in some places the law limits it. This calculator does not round, and neither does AutoTimecard. If your payslip seems a few minutes off every day, rounding is a likely reason: ask how your employer rounds, and compare with your exact times.

From hours to pay: a rough figure only

Total decimal hours × hourly rate gives a rough figure of the pay before anything else is applied. 152.5 hours at 15 an hour is 2,287.50.

  • Night, weekend or holiday rates are paid on top for some jobs. Work out those hours separately at their own rate.
  • Overtime rules, tax, social contributions and other deductions are not included.
  • Unpaid breaks come off the hours. Paid breaks do not.
  • What you are paid depends on your contract and on the law where you work. This page is not legal or payroll advice.

Get AutoTimecard

Free for the first five days with an automatic clock-in and clock-out. No account needed.

Questions

How do I calculate the hours I worked in a day?

Subtract the start time from the end time, then subtract unpaid breaks. 08:30 to 17:00 with a 30-minute break is 8 hours. For pay, write the minutes as decimal hours: 30 minutes is 0.5.

How do I calculate hours for a night shift?

If the end time is earlier than the start, add 24 hours to the end time before you subtract. 22:00 to 06:00 is 30:00 minus 22:00 = 8 hours, minus any unpaid break. Count it on the day the shift started.

How many hours is 9 to 5?

8 hours. With an unpaid 30-minute break it is 7.5 hours, and with a 60-minute break it is 7 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25, 30 minutes is 0.5, 45 minutes is 0.75, and 20 minutes is about 0.33.

Does this calculator save or send what I type?

No. The calculation runs on the page in your browser. Nothing is sent to a server or stored, and closing the page clears it.

Does AutoTimecard round my times to 15 minutes?

No. It keeps the times your phone recorded and has no rounding setting. If your employer rounds, their figure can differ from yours by a few minutes.

Read next

Guides and comparisons