A clock in time and a clock out time are just two points on a clock face. The paid time you earned is the distance between them, minus anything unpaid that happened in between. The arithmetic sounds trivial, and for a clean 9-to-5 day it is. Real punches are rarely clean, though. People clock in at 8:04 and out at 5:23. Lunch punches split the day into pieces. Night staff clock out on a different calendar day from the one they clocked in on. Each of those wrinkles breaks the naive "subtract the small number from the big number" approach.
The method that survives every wrinkle is the same one payroll software uses: convert each punch into minutes since midnight, subtract, then take off any unpaid break. Once both times are plain numbers of minutes, there is nothing left to go wrong - no borrowing across the hour, no AM and PM confusion, no negative answers.
The basic method, step by step
- Convert the clock in time to minutes since midnight. On the 24-hour clock, hours times 60 plus minutes. 8:04 AM is 8 x 60 + 4 = 484 minutes.
- Convert the clock out time the same way. PM times (except 12 PM) add 12 hours first, so 5:23 PM is 17:23, which is 1,043 minutes.
- Subtract the in from the out: 1,043 - 484 = 559 minutes on site.
- Subtract any unpaid break that sits inside the span. A 30-minute lunch leaves 559 - 30 = 529 paid minutes.
- Convert back: 529 divided by 60 is 8 hours with 49 minutes left over, so 8 hours 49 minutes. For a timesheet, divide the 49 minutes by 60 to get the decimal form, 8.82 hours.
That is the whole technique. Every example in this guide, including the four-punch day and the overnight shift, is these five steps with different numbers.
Worked example: a normal day with a lunch break
Say you clocked in at 8:04 AM and out at 5:23 PM, and you stayed clocked in through a 30-minute unpaid lunch. The span from the steps above is 9 hours 19 minutes - that is how long you were on the premises. It is not your paid time. Take the lunch off at the end and you get 8 hours 49 minutes, or 8.82 in decimal. Notice how much the odd minutes matter: someone who lazily records this day as "9 to 5, so 8 hours" has just lost 49 minutes of pay, and someone who forgets the lunch has claimed 30 minutes they did not earn. The odd minutes are exactly where the money hides, which is why punches are recorded to the minute in the first place.
Four punches: when lunch has its own clock out
Many workplaces punch the lunch break itself, giving you four times instead of two: in, out for lunch, back in, out for the day. Do not try to force this into one subtraction. Work out the morning and afternoon as two separate spans and add them. Take a real set of punches: in at 7:58 AM, lunch out at 12:02 PM, lunch in at 12:31 PM, out at 4:47 PM. The morning span is 12:02 minus 7:58, which is 4 hours 4 minutes. The afternoon span is 4:47 PM minus 12:31 PM, which is 4 hours 16 minutes. Added together: 8 hours 20 minutes, or 8.33 decimal. The lunch itself, 29 minutes, never enters the paid total because neither span includes it. This two-span approach is also how you handle a day with an appointment in the middle or any other unpaid gap - each worked piece gets measured on its own.
Rounding: why your paid hours may differ slightly
Your hand total and your pay stub total may disagree by a few minutes even when both are honest, because most employers round punches before paying them. The common rules are the nearest 5, 6, 10 or 15 minutes. Under the popular quarter-hour rule, a punch up to 7 minutes past the quarter rounds down and 8 minutes or more rounds up, so 8:04 becomes 8:00 and 5:23 becomes 5:30. Apply that to the first example and the paid span becomes 9 hours 30 minutes before lunch, a few minutes kinder than the raw punches. Rounding is legal as long as it is neutral over time - sometimes it trims a few minutes, sometimes it adds a few. If your stub is consistently a few minutes short of your own careful total, rounding is the first explanation to check before assuming an error.
Clocking out after midnight
Night shifts add one twist: the clock out time is smaller than the clock in time, because the day rolled over in between. A punch in at 9:47 PM and out at 6:12 AM converts to 1,307 minutes and 372 minutes. Since the out is earlier on the clock, add a full day - 1,440 minutes - to the out time, giving 1,812. Subtract: 1,812 - 1,307 = 505 minutes, which is 8 hours 25 minutes, or 8.42 decimal. Take a 30-minute unpaid break off that and the paid time is 7 hours 55 minutes. The rule is simply this: whenever the out time looks earlier than the in time, the shift crossed midnight and the out time belongs to tomorrow.
Quick reference: common punch pairs
| Clock in | Clock out | Span | After 30 min lunch |
|---|---|---|---|
| 8:00 AM | 5:00 PM | 9 hours | 8.50 |
| 7:30 AM | 4:15 PM | 8 hours 45 minutes | 8.25 |
| 9:12 AM | 6:03 PM | 8 hours 51 minutes | 8.35 |
| 10:00 PM | 6:30 AM | 8 hours 30 minutes | 8.00 |
Keep this table in mind when you sanity-check your own arithmetic. If your answer for a standard day shift lands far from the 8 to 9 hour band, something in the subtraction went wrong - usually a PM time that never got its extra 12 hours.
Try it the fast way
When you are checking a stub at the kitchen table, the hours calculator on this site does all five steps instantly: enter the in and out times, take off a break if there is one, and get the answer in hours and minutes plus decimal hours, with overnight shifts handled automatically. And when your question is not about one shift but about adding lengths of time together across a week, the time calculator on the homepage is the right tool for that job.
Frequently asked questions
Do I get paid from my clock in time or my scheduled start time?
In most workplaces you are paid from the time you actually clock in and start work, not the scheduled time, though your employer may round both punches to the nearest 5, 6, 10 or 15 minutes. If you clock in at 8:04 for an 8:00 start and the rounding rule is the nearest quarter hour, your paid time starts at 8:00. Check your employer's rounding policy, because it decides which figure lands on your pay stub.
What should I do if I forget to clock out?
Tell your supervisor the same day and write down the time you actually left while you still remember it. Most time systems let a manager add the missing punch with a note. If you wait until payday, the day often gets paid short or not at all, and reconstructing the time a week later is far harder for everyone.
How do I work out hours when I clock in and out four times a day?
Treat the day as two separate spans. Work out the morning span from clock in to lunch out, then the afternoon span from lunch in to clock out, and add the two spans together. For example, 7:58 AM to 12:02 PM is 4 hours 4 minutes, and 12:31 PM to 4:47 PM is 4 hours 16 minutes, giving 8 hours 20 minutes for the day.
Should my lunch break come off my hours automatically?
Only if you clock out and back in for it, or your employer's system deducts a standard meal break on its own. If you stay clocked in through lunch and no automatic deduction applies, the lunch stays inside your span and you need to subtract it yourself when you work out your paid hours. A 30-minute unpaid lunch inside a 9 hour 19 minute span leaves 8 hours 49 minutes of paid time.
How do I turn clock in and clock out hours into a decimal for my timesheet?
Work out the paid time in hours and minutes first, then divide the minutes by 60. A paid span of 8 hours 49 minutes becomes 8 plus 49/60, which is 8.82 hours rounded to two decimal places. Never write 8.49 - that is the single most common timesheet mistake, and it underpays you by about 20 minutes on a day like that.
