Work hours calculator

A free time card calculator for one or two weeks. Enter clock-in and clock-out times in 12-hour or 24-hour format, take off lunch and other breaks, and get totals in hours and minutes and in decimal hours.

Pay period
Time format
Lunch
Day Start Finish Back in Clock out Break (min) Hours
Week 1
Monday 0:000.00
Tuesday 0:000.00
Wednesday 0:000.00
Thursday 0:000.00
Friday 0:000.00
Saturday 0:000.00
Sunday 0:000.00
Week 1 total 0:000.00
Week 2
Monday 0:000.00
Tuesday 0:000.00
Wednesday 0:000.00
Thursday 0:000.00
Friday 0:000.00
Saturday 0:000.00
Sunday 0:000.00
Week 2 total 0:000.00

Type times any way you like: 9, 930, 9:30 pm, or 21:30. Add several breaks with a plus sign, like 30+15. A finish earlier than the start is an overnight shift. Press Enter to jump to the next box.

$
Total hours 0:00
Decimal hours 0.00
Overtime (est.) 0.00
Estimated pay $0.00

Overtime and pay are estimates based on the US federal baseline of 1.5 times the regular rate after 40 hours in a workweek. State law or your contract can add daily overtime or other rules: for those, use the overtime calculator. Your entries stay in this browser and are never uploaded.

The formula

How to calculate hours worked

Every time card calculator, including this one, does the same three things: subtract, take off unpaid breaks, and add up the days. Here is the math so you can check any total by hand.

Hours worked=(Finish time − Start time)−Unpaid breaks
Decimal hours=Hours+Minutes ÷ 60
  1. Write both times in 24-hour time. It removes AM and PM mistakes. 5:15 p.m. becomes 17:15. Use the chart below if you need it.
  2. Subtract start from finish. Take hours from hours and minutes from minutes. If the finish minutes are smaller, borrow one hour as 60 minutes: 17:15 − 8:30 becomes 16:75 − 8:30 = 8:45.
  3. Fix overnight shifts. If the finish is earlier than the start, the shift crossed midnight. Add 24 hours to the finish before subtracting.
  4. Take off unpaid breaks. Subtract only unpaid time, such as a 30-minute lunch. Paid rest breaks stay in the total.
  5. Add the days, then convert. Add each day in hours and minutes, carry every 60 minutes into an hour, and only convert the final total to decimal hours for payroll.

Using this time card calculator

  • Weekly or biweekly. Choose 2 weeks for a biweekly time card. Each week gets its own subtotal and its own overtime check.
  • Lunch two ways. Type unpaid break minutes, or pick In/out twice if you clock out for lunch or work a split shift.
  • 12h or 24h. Switch formats at any time. Times already entered are rewritten in the new format.
  • Rounding. Off by default. Turn it on to match a time clock that rounds to 5, 6, or 15 minutes.
  • Saved as you type. Your time card stays in this browser, so you can come back to it later in the week.
Worked examples

Six time cards, worked out

Each example uses the formula above. Type any of them into the calculator and you will get the same answer.

1

A normal day with a lunch break

Start 8:30 a.m., finish 5:15 p.m., with a 45-minute unpaid lunch.

Finish − start
17:15 − 8:30 = 8:45
Minus lunch
8:45 − 0:45 = 8:00
Hours worked
8:00 = 8.00 hours

Clocked out for lunch from 12:00 to 12:45 instead? That is 3:30 + 4:30, the same 8:00.

2

A split shift

7:00 a.m. to 11:00 a.m., then back from 4:00 p.m. to 8:30 p.m.

First block
11:00 − 7:00 = 4:00
Second block
20:30 − 16:00 = 4:30
Hours worked
8:30 = 8.50 hours

In the calculator, choose In/out twice and enter both blocks on one row.

3

An overnight shift

10:00 p.m. to 6:30 a.m. the next morning, with a 30-minute unpaid break.

Add 24 h to finish
6:30 + 24:00 = 30:30
Finish − start
30:30 − 22:00 = 8:30
Minus break
8:00 = 8.00 hours

Enter it on the day the shift started. The calculator spots the overnight finish on its own.

4

A 24-hour (military) time card

06:45 to 15:20, with a 20-minute unpaid break.

Borrow an hour
15:20 = 14:80
Finish − start
14:80 − 06:45 = 8:35
Minus break
8:15 = 8.25 hours

8:15 is 8.25 in decimal because 15 ÷ 60 = 0.25. It is not 8.15.

5

A full week, with overtime

Five days with different finish times and lunches. The weekly total goes past 40 hours.

DayStartFinishUnpaid breakHoursDecimal
Monday8:00 a.m.4:30 p.m.30 min8:008.00
Tuesday8:00 a.m.5:15 p.m.30 min8:458.75
Wednesday7:45 a.m.4:30 p.m.30 min8:158.25
Thursday8:00 a.m.5:45 p.m.45 min9:009.00
Friday8:00 a.m.5:00 p.m.45 min8:158.25
Week total42:1542.25

That is 40 regular hours and 2.25 overtime hours. At $20 an hour, a federal-baseline estimate is 40 × $20 = $800, plus 2.25 × $30 = $67.50, for $867.50. Press Example week above to load this exact week.

6

A biweekly time card

Week 1 is the week above. In week 2 the same person works five 7:30 days.

WeekHoursDecimalRegularOvertimePay at $20/h
Week 142:1542.2540.002.25$867.50
Week 237:3037.5037.500.00$750.00
Two weeks79:4579.7577.502.25$1,617.50

The two-week total is under 80 hours, but week 1 still has overtime. Under the US federal rule each workweek stands alone, and hours cannot be averaged across two weeks (29 CFR 778.104). That is why the calculator checks overtime per week, not per pay period.

Common mistakes

Six ways a time card goes wrong

Most pay disputes over hours come from simple arithmetic slips, not from big disagreements. Check for these before a total goes into payroll.

  • Reading 7:30 as 7.30

    7 hours 30 minutes is 7.50 hours. Typed as 7.30, a $20-an-hour shift pays $146 instead of $150.

  • Subtracting across midnight

    22:00 to 06:00 gives minus 16 hours if you subtract straight. Add 24 hours to the finish: the shift is 8 hours.

  • Mixing up 12 a.m. and 12 p.m.

    12:00 a.m. is midnight (00:00) and 12:00 p.m. is noon (12:00). Writing times in 24-hour form avoids the mix-up.

  • Taking off paid rest breaks

    Under the US federal rules, short rest breaks of about 5 to 20 minutes count as hours worked (29 CFR 785.18). A meal period is unpaid only when you are fully relieved from duty, and it is usually 30 minutes or more (29 CFR 785.19). State rules can add more.

  • Rounding the wrong thing

    Rounding is applied to each clock punch, both up and down. Rounding only the daily total, or always rounding in the employer's favor, does not even out.

  • Averaging overtime over two weeks

    45 hours plus 35 hours is 80, but the first week still has 5 overtime hours under the federal rule. Check each week separately.

Reference

Minutes to decimal hours

Payroll systems want decimal hours, clocks show minutes. Divide the minutes by 60: 45 minutes is 45 ÷ 60 = 0.75. One minute is about 0.0167 hours. For every minute from 1 to 60, use the decimal hours calculator.

Every 5 minutes
MinutesDecimalMinutesDecimal
50.08 350.58
100.17 400.67
150.25 450.75
200.33 500.83
250.42 550.92
300.50 601.00
Every 6 minutes (tenths of an hour)
MinutesDecimalMinutesDecimal
60.1 360.6
120.2 420.7
180.3 480.8
240.4 540.9
300.5 601.0
Rounding

Time card rounding and the 7-minute rule

Many time clocks round each punch to the nearest 5 minutes, 6 minutes (a tenth of an hour), or 15 minutes (a quarter hour). Quarter-hour rounding is often called the 7-minute rule: a punch up to 7 minutes past a quarter hour rounds down, and 8 minutes or more rounds up.

In the US, the federal rule in 29 CFR 785.48(b) accepts these practices only when they average out, so that over time employees are paid for all the time they actually worked. Some states are stricter, so check your local law. This page is general information, not legal advice.

The calculator rounds each clock-in and clock-out, not the daily total, the same way a time clock would. Leave rounding off if you want the exact minutes.

Quarter-hour rounding (nearest 15 minutes)
Punch minutesRounds toExample
:00 to :07:008:07 counts as 8:00
:08 to :22:158:08 counts as 8:15
:23 to :37:308:23 counts as 8:30
:38 to :52:458:52 counts as 8:45
:53 to :59next :008:53 counts as 9:00

With 6-minute rounding, :00 to :02 rounds down to :00 and :03 to :08 rounds to :06. With 5-minute rounding, :01 and :02 round down and :03 and :04 round up.

24-hour time

12-hour to 24-hour time chart

24-hour time, also called military time, is easier to subtract because there is no AM or PM. For p.m. hours from 1 to 11, add 12. Midnight is 00:00 and noon is 12:00.

Night and morning
12-hour24-hour
12:00 a.m. midnight 00:00
1:00 a.m. 01:00
2:00 a.m. 02:00
3:00 a.m. 03:00
4:00 a.m. 04:00
5:00 a.m. 05:00
6:00 a.m. 06:00
7:00 a.m. 07:00
8:00 a.m. 08:00
9:00 a.m. 09:00
10:00 a.m. 10:00
11:00 a.m. 11:00
Afternoon and evening
12-hour24-hour
12:00 p.m. noon 12:00
1:00 p.m. 13:00
2:00 p.m. 14:00
3:00 p.m. 15:00
4:00 p.m. 16:00
5:00 p.m. 17:00
6:00 p.m. 18:00
7:00 p.m. 19:00
8:00 p.m. 20:00
9:00 p.m. 21:00
10:00 p.m. 22:00
11:00 p.m. 23:00
Doing this every week?

Track work hours automatically

A calculator is fine for checking one time card. For a team, typing times from memory every week is where errors start. With TimoDesk, people start a timer in the desktop app when they begin work and stop it when they finish. The hours land in the monthly timesheet, already added up, with each day's clock-in and clock-out times.

  • Desktop timer for Windows, macOS, and Linux
  • Weekly worklogs and monthly timesheets, with PDF export
  • Forgotten time added as manual time, sent for approval
  • Members see their own timesheet and screenshots
  • $1 per user per month, every feature included, 15-day free trial
Start free trial
The TimoDesk monthly timesheet: hours per member per day with clock-in and clock-out times, total time, and average time for the month
Questions

About counting work hours

Lunch breaks, overnight shifts, decimal hours, rounding, and biweekly overtime, in plain words.

How do I calculate hours worked?

Subtract the start time from the finish time, then take off any unpaid break. For example, 9:00 a.m. to 5:30 p.m. is 8 hours 30 minutes, and with a 30-minute unpaid lunch it is 8 hours. Add the days together for a weekly total.

How do I calculate hours worked with a lunch break?

Work out the time from start to finish, then subtract the unpaid lunch. 8:30 a.m. to 5:15 p.m. is 8:45, minus a 45-minute lunch gives 8:00. If you clock out and back in for lunch, add the morning and afternoon blocks instead: the answer is the same.

How do I calculate hours for an overnight shift?

When the finish time is earlier than the start time, the shift crossed midnight. Add 24 hours to the finish time before you subtract. 10:00 p.m. to 6:30 a.m. is 30:30 minus 22:00, which is 8 hours 30 minutes. This calculator does that for you.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add the result to the hours. 7 hours 30 minutes is 7.5 hours, 8 hours 15 minutes is 8.25, and 40 hours 45 minutes is 40.75. Never read the colon as a decimal point: 7:30 is not 7.30.

What is the 7-minute rule?

It is the common name for rounding clock punches to the nearest quarter hour. A punch 1 to 7 minutes past a quarter hour rounds down, and a punch 8 to 14 minutes past rounds up. So 8:07 counts as 8:00 and 8:08 counts as 8:15.

Is time card rounding legal?

In the US, the federal rule in 29 CFR 785.48(b) accepts rounding to the nearest 5 minutes, tenth of an hour, or quarter hour, as long as over time it does not leave employees unpaid for time they worked. Some states are stricter. This is general information, not legal advice.

How many hours are in a biweekly pay period?

Two 40-hour weeks make 80 hours. Under the US federal rule, overtime is still counted week by week, so 45 hours in week 1 and 35 hours in week 2 includes 5 overtime hours, even though the two-week total is 80.

Can I enter 24-hour (military) time?

Yes. Switch the calculator to 24h, or simply type times like 06:45 or 1730. You can also type 9, 930, or 9:30 pm in 12h mode. Every time is shown back in the format you chose, so you can check how it was read.

Does this calculator save my time card?

Your entries are kept in your own browser on this device, so a refresh does not lose them. Nothing is sent to TimoDesk or anywhere else. Press Clear all to remove them.

Can TimoDesk track work hours automatically?

Yes. Your team starts a timer in the TimoDesk desktop app for Windows, macOS, or Linux, and the hours go into weekly worklogs and monthly timesheets with clock-in and clock-out times. You can export the timesheet as a PDF. It costs $1 per user per month, with every feature included.

Still have a question? Book a call. We'll show you TimoDesk with your own setup and answer any question this list doesn't cover. Talk to our team

Start tracking time this week

Create your organization and invite your team today. Tracked time shows on the dashboard the same day, and the first full-day reports are ready the next day. $1 per user per month, with every feature included.

  • $1 per user / month
  • 15-day free trial, no card
  • Stop anytime. No contract.
Need help? Book a one-hour TimoDesk demo Book a meeting