yCalculator

Hours Calculator

Last updated: April 2026

Time Inputs

Enter times as 9:15, 0915, or 915.

Breaks and Rounding

Output

Total time8 hours 0 minutes
Decimal hours8.00 hours
Total minutes480 minutes
Break deducted0 minutes
Raw duration8 hours 0 minutes before breaks
Shift typeSame-day

About this calculator

The Hours Calculator converts start and end times into total elapsed hours and minutes. It is useful for timesheets, invoices, rota checks, study logs, shift records, and any situation where a time range needs to become a decimal hour or hour-minute total. Use it when you want to check a single work period, combine multiple periods, or avoid manual mistakes around AM/PM times, breaks, and overnight shifts.

Hours calculation method

The calculator converts each time into minutes from midnight, adjusts overnight end times where needed, subtracts unpaid break minutes, then converts the remaining minutes back into hours.

  • elapsed minutes = end time - start time
  • paid minutes = elapsed minutes - break minutes
  • decimal hours = paid minutes / 60

How to use the hours calculator

  1. Enter the start time for the work period or activity.
  2. Enter the end time, using the correct AM or PM setting where shown.
  3. Enter unpaid break time if any break should be removed from the total.
  4. Review the result in hours and minutes and as decimal hours.
  5. Use decimal hours for payroll, invoicing, or spreadsheet records.

Worked examples

Standard work shift

Input: Start 9:00 AM, end 5:30 PM, break 30 minutes

Calculation: 8 hours 30 minutes elapsed - 30 minutes break

Result: 8 hours, or 8.00 decimal hours

Short task

Input: Start 1:15 PM, end 3:45 PM, no break

Calculation: 150 minutes / 60

Result: 2 hours 30 minutes, or 2.50 decimal hours

Overnight shift

Input: Start 10:00 PM, end 6:00 AM, break 45 minutes

Calculation: 8 hours elapsed - 45 minutes break

Result: 7 hours 15 minutes, or 7.25 decimal hours

What the hours calculator is for

An hours calculator turns clock times into elapsed time. That sounds simple, but manual time arithmetic is easy to get wrong when shifts cross midnight, unpaid breaks are involved, or totals need to be converted into decimal hours for payroll or invoices.

The calculator is useful for employees checking timesheets, freelancers billing clients, managers reviewing rota hours, students tracking study blocks, and anyone who needs a clean total from start and end times.

Hours, minutes, and decimal hours

Many payroll systems use decimal hours rather than hours and minutes. For example, 7 hours 30 minutes is 7.5 hours, not 7.30 hours. This distinction matters because entering 7.30 as a decimal undercounts the actual time worked.

Clock format
Clock format expresses time as hours and minutes, such as 8 hours 45 minutes.
Decimal format
Decimal format expresses minutes as a fraction of an hour. Fifteen minutes is 0.25 hours, thirty minutes is 0.5 hours, and forty-five minutes is 0.75 hours.
Break deductions
If a shift includes unpaid breaks, subtract the break time from the elapsed time before using the result for pay or billing.

Common uses for calculated hours

Calculated hours are used for pay, overtime, client invoices, project costing, productivity tracking, and compliance records. When money or employment records depend on the result, keep the original start time, finish time, and break record alongside the calculated total.

Time card and payroll components

A reliable time record normally has more than one number. It should show the start time, finish time, unpaid break, paid break if relevant, total elapsed time, and final payable hours. This makes it easier to audit the result later if a payslip, invoice, or client record is questioned.

Start and finish time
These are the raw clock times. Keep them in the same format throughout the calculation, especially when converting between 12-hour and 24-hour time.
Elapsed time
Elapsed time is the full time between start and finish before breaks are removed. For overnight shifts, the finish time is treated as occurring on the following day.
Unpaid break
Unpaid breaks should be deducted from elapsed time. Paid breaks are normally left in the total, but workplace policies vary.
Payable hours
Payable hours are the final hours used for pay, invoices, or records. This is usually the figure that should be converted to decimal hours.

Rounding hours for payroll

Some employers round time entries to the nearest 5, 6, 10, or 15 minutes. Others pay exact minutes. Rounding can change pay over a week or month, so it is better to calculate exact time first and apply any official rounding rule at the end.

If you are adding several shifts, avoid rounding each shift too early. Add the exact minutes first, then round the final total only if your payroll or invoice rules require it.

Overnight shifts and split shifts

Overnight shifts are a common source of mistakes because the end time is earlier on the clock than the start time. A shift from 10:00 PM to 6:00 AM is not negative time; it is eight elapsed hours before breaks. Split shifts should normally be entered as separate time blocks and added together.

Common mistakes and edge cases

  • Forgetting to subtract unpaid breaks.
  • Entering 12 AM or 12 PM incorrectly.
  • Treating overnight shifts as negative time instead of carrying into the next day.
  • Rounding decimal hours too early before payroll totals are added.
  • Mixing paid break and unpaid break policies.

Limitations

This calculator provides an arithmetic time total only. It does not decide employment rights, overtime entitlement, holiday pay, or payroll compliance.

  • Check your employer policy for paid and unpaid breaks.
  • Use official payroll records for formal pay disputes.
  • Employment rights questions may need ACAS or legal guidance.

Frequently asked questions

What are decimal hours?

Decimal hours express minutes as a fraction of an hour. For example, 30 minutes is 0.50 hours and 15 minutes is 0.25 hours.

Can this calculate overnight shifts?

Yes, if the end time is earlier than the start time, the calculator can treat the end time as occurring on the next day.

Should breaks be included?

Only include breaks that should be paid. Unpaid breaks should normally be subtracted from the total.

Why does payroll use decimal hours?

Decimal hours make multiplication by an hourly rate easier, especially when totals are exported to payroll software or spreadsheets.

Does this calculate overtime pay?

No. It calculates time worked. Use an overtime calculator or payroll policy to work out overtime pay.

Related calculators

  • Weekly Hours Calculator
  • Hours and Minutes Calculator
  • Overtime Pay Calculator
  • Time Units Converter

What is an hours calculator?

An hours calculator works out the elapsed time between a start time and an end time. It is useful for payroll, timesheets, work shifts, invoices, and general time tracking where you need both hours and minutes and decimal hours.

How to calculate hours worked

Convert the start and end times into minutes after midnight, subtract the start from the end, then convert the result back into hours and minutes. If the end time is earlier than the start time, treat the end time as the next day.

How to subtract lunch or break time

First calculate the full shift length, then subtract the break duration in minutes. For example, 9:00 AM to 5:00 PM is 8 hours. With a 30-minute break, the paid time is 7 hours 30 minutes.

How to convert hours and minutes to decimal hours

Divide the minutes by 60 and add the result to the whole hours. For example, 7 hours 15 minutes = 7.25 hours, 40 hours 24 minutes = 40.40 hours, 30 minutes = 0.50 hours, and 45 minutes = 0.75 hours.

How overnight shifts are calculated

If the end time is earlier than the start time, the calculator assumes the shift continues into the next day. For example, 22:00 to 06:00 is treated as an overnight shift lasting 8 hours.

Time clock rounding explained

Some employers round clock-in and clock-out times to the nearest 5, 6, or 15 minutes. Rounding changes the recorded start and end times before the duration is calculated, so it can slightly increase or decrease decimal hours.

Related Time calculators

time productivity-calculators

Weekly Hours Calculator

Calculate total hours worked across a full week for timesheets, payroll and shift work

Calculate ->

time productivity-calculators

Age Calculator

Calculate exact age from date of birth in years, months, days, weeks and total days

Calculate ->

time productivity-calculators

Hours and Minutes Calculator

Add, subtract, and convert hours and minutes for timesheets, payroll, study time and project tracking

Calculate ->

You might also need

time productivity-calculators

Weekly Hours Calculator

Calculate total hours worked across a full week for timesheets, payroll and shift work

Calculate ->

time productivity-calculators

Hours and Minutes Calculator

Add, subtract, and convert hours and minutes for timesheets, payroll, study time and project tracking

Calculate ->

time productivity-calculators

Business Days Calculator

Calculate business days between two dates, excluding weekends and optional holidays

Calculate ->