Loona Automation

Hours Calculator — How Many Hours Did I Work?

The simplest question in payroll, answered exactly: pick your clock-in and clock-out, set your break, and see your hours three ways.

In short: turn one shift's clock-in and clock-out into paid time shown as h:mm, decimal hours and total minutes — with unpaid-break deduction, punch rounding and an optional gross-pay figure for the shift.
Time Card CalculatorHours CalculatorOvertime CalculatorCalifornia Overtime CalculatorTime and a Half CalculatorMinutes to Decimal Hours Converter

Hours Calculator — One Shift, Exact Answer

How It Works — The Rule Behind This Calculator

The maths is subtraction with two real-world wrinkles. First, overnight shifts: if the clock-out is earlier than the clock-in, the shift rolls into the next day (10:00 PM → 6:00 AM is 8 hours, not −16). Second, breaks: unpaid meal breaks come off; paid breaks stay on. Optional rounding then adjusts the punches the way payroll does — the 7-minute rule or the nearest quarter hour.

Payroll systems store time as decimal hours, which is why 8 hours 30 minutes appears on pay documents as 8.50. If you often convert minutes by hand, the Minutes to Decimal Converter has the full 1–60 chart, and the Time Card Calculator adds a whole week up with overtime.

Related Hours Tools

Frequently Asked Questions

How do I calculate hours between two times?

Subtract the clock-in from the clock-out, rolling into the next day if the shift crosses midnight, then subtract any unpaid break. Example: 9:00 AM to 5:30 PM is 8 hours 30 minutes on the clock; minus a 30-minute unpaid lunch leaves 8.00 paid hours.

What are decimal hours?

Hours expressed as a decimal number instead of hours and minutes: 15 minutes = 0.25, 30 minutes = 0.50, 45 minutes = 0.75. Payroll uses decimals because multiplying them by an hourly rate gives pay directly.

Why does my result differ from my pay stub by a few minutes?

Usually rounding: many employers round punches to the nearest quarter hour (the 7-minute rule). Try the rounding options here to reproduce your employer's method.

Does this work for overnight shifts?

Yes. Any clock-out at or before the clock-in time is treated as the next day, which covers standard night shifts up to 24 hours.

How it works — the formula

This calculator works in minutes, not decimals, so nothing is lost to rounding until the very end. Each punch is first rounded (if you choose a rounding mode), the span between the rounded punches is found — adding 24 hours when the clock-out falls at or before the clock-in, which is how overnight shifts are handled — and any unpaid break is subtracted. The result is shown three ways: as h:mm, as decimal hours, and as total minutes.

The formula: Paid minutes = (rounded clock-out − rounded clock-in, +24h if overnight) − unpaid break minutes. Decimal hours = paid minutes ÷ 60, rounded to 2 decimal places. Gross pay = decimal hours × hourly rate. Rounding moves each punch to the nearest quarter hour: minutes 0–7 past a quarter round down, 8–14 round up (the 7-minute rule).

Worked example

You clock in at 8:47 AM and out at 5:12 PM, take a 45-minute unpaid break, earn $18/hour, and your employer rounds punches to the quarter hour. The raw span on the clock is 8:25 (505 minutes). Quarter-hour rounding moves the punches to 8:45 AM and 5:15 PM, a span of 8:30. Subtract the 45-minute break and the calculator shows paid time 7:45, which is 7.75 decimal hours (465 minutes), and a gross of $139.50 for the shift.

Frequently asked questions

What is the 7-minute rule?

It is the rounding convention many payroll systems use: within each quarter hour, minutes 0–7 round down to the quarter and minutes 8–14 round up to the next one. A 9:07 AM punch becomes 9:00 AM; a 9:08 AM punch becomes 9:15 AM. This calculator's two rounding options both apply that convention to each punch.

Does rounding apply to my punches or to my total?

To the punches. This tool rounds the clock-in and clock-out first, then subtracts — the same order most time clocks use. Rounding the finished total instead can give a slightly different answer, which is one reason a pay stub may differ from a hand calculation by a few minutes.

What happens if I enter the same time for clock-in and clock-out?

The calculator reads a clock-out at or before the clock-in as the next day, so identical times are treated as a full 24-hour shift (minus any unpaid break). If you meant a zero-length shift, check the AM/PM settings — a 9:00 AM to 9:00 PM shift needs the second time set to PM.

Is a paid break deducted from my time?

No. Set the break to “Paid” and the break minutes stay inside your paid time; only breaks marked unpaid come off. The break treatment you choose is shown in the result detail line so you can match it to your employer's policy.

Can I leave the hourly rate empty?

Yes. With no rate entered (or 0), the calculator simply hides the gross-pay figure and still shows your paid time as h:mm, decimal hours and total minutes.

Disclaimer: Estimates only — not payroll or legal advice. Your employer's payroll rules and state law control your actual pay. Figures are rounded for display; your pay stub and payroll department are the official record.

Embed this calculator on your website — free

Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.