Skip to content
  1. Free templates
  2. Calculators
  3. Work hours calculator

Calculators

Work hours calculator

A work hours calculator finds the hours between an in time and an out time for one day, minus any break. Enter the time you started and finished to see the hours worked in hours and minutes and in decimal, ready for a timesheet. Free, with no sign-up.

Updated

Clock
Breaks
min

Your day

Hours worked8:308.50 decimal hours
In to out9:159.25 h
Break0:4545 min

Worked out with the free work hours calculator by Staffic: staffic.io/resources/hours-calculator

Add this calculator to your site

Free to embed. Paste the code where the calculator should appear.

Free to use with the link back to Staffic.

How to use it

Fill it in, step by step

  1. Set the clock and the break type

    Pick 12 h or 24 h, choose whether you will enter the break as Minutes or as Start and end, and leave Rounding on No rounding unless your employer rounds clock times.

  2. Type the in time and out time

    Enter when the day started and ended, like 9:30 am and 6:45 pm, or 09:30 and 18:45. An out time earlier than the in time counts as the next day.

  3. Add another in/out if you left and came back

    Use Add another in/out for up to four pairs in one day, such as a morning and an afternoon. Each pair shows its own hours, and Remove drops one you don't need.

  4. Enter the unpaid break

    Type the break in minutes, like 45, or as h:mm, like 0:45, or enter its start and end times. It comes off the day once, after the pairs are added up.

  5. Read and keep the result

    Hours worked shows in hours and minutes and in decimal hours, with In to out and Break beside it. Print it, download a CSV or copy a link that brings back the same times.

How to calculate hours between two times

To find the hours between two times, subtract the in time from the out time, then take off any unpaid break. 9:00 AM to 6:15 PM is 9 hours 15 minutes; minus a 45 minute lunch, that is 8 hours 30 minutes worked, or 8.50 decimal hours. That is the example the calculator opens with, and the formula never changes:

Hours worked = out time minus in time, minus unpaid breaks.

  • Use a 24 hour clock for the math. 6:15 PM is 18:15, and 18:15 minus 9:00 is 9:15.
  • Borrow an hour when the minutes don't fit. For 8:45 AM to 5:10 PM, write 17:10 as 16:70. 16:70 minus 8:45 is 8:25.
  • Divide the minutes by 60 for decimal hours. 8:25 is 8 plus 25 divided by 60, or 8.42 hours.

Some common workdays, worked out:

In timeOut timeUnpaid breakHours worked
9:00 AM5:00 PM30 min7:30 (7.50)
8:00 AM5:00 PM1 hour8:00 (8.00)
9:00 AM6:00 PM1 hour8:00 (8.00)
9:30 AM6:30 PM1 hour8:00 (8.00)
7:00 AM3:30 PM30 min8:00 (8.00)
10:00 PM6:00 AM30 min7:30 (7.50), next day

The calculator reads times the way people type them: 9, 930, 9:30, 9.30, 9:30 pm, 21:30, noon or midnight. A plain 6 reads as 6:00 AM, so add pm or type 18:00 for an evening time. The 12 h and 24 h switch only changes how times are shown, and the page remembers your choice in this browser.

In time out time calculator for an office day

Many offices note each person's in time and out time on an attendance register, and the working hours are what lies between the two, less lunch. Priya Nair, an accounts executive in Kochi, came in at 9:30 AM, went out for lunch from 1:00 PM to 2:00 PM and left at 6:45 PM. Enter her day as two in and out pairs:

EntryIn timeOut timeHours
In/out 19:30 AM1:00 PM3:30
In/out 22:00 PM6:45 PM4:45
Total8:15 (8.25 hours)

Her office in and out times span 9 hours 15 minutes, and 8 hours 15 minutes of that is work. One pair gives the same answer: 9:30 AM to 6:45 PM with a 60 minute break, or with Breaks set to Start and end, 1:00 PM to 2:00 PM. Pairs are handy when someone steps out more than once, say for a bank visit as well as lunch, and the calculator takes up to four.

Work hours past midnight

When the out time is earlier than the in time, the work ended the next day. The calculator handles this on its own and marks the hours "next day". By hand, add 24 hours to the out time before you subtract.

Kenji Sato, a night receptionist at a hotel in Osaka, starts at 10:00 PM and leaves at 7:00 AM, with a one hour break. On a 24 hour clock, 7:00 AM the next day is 31:00, and 31:00 minus 22:00 is 9 hours. Take off the break and he worked 8 hours, or 8.00 decimal hours.

If his break is a set gap, say 2:00 AM to 3:00 AM, two pairs work just as well: 10:00 PM to 2:00 AM is 4:00 and 3:00 AM to 7:00 AM is 4:00. The day timeline lays the night out across midnight, so you can see which hours fell before and after it. One more detail: an in time equal to the out time counts as zero, not 24 hours.

Breaks and rounding

Only unpaid breaks come off. In the US, the Department of Labor counts short breaks of about 5 to 20 minutes as hours worked, while meal periods, typically 30 minutes or more, are not work time. In the UK, workers who work more than 6 hours a day get one uninterrupted 20 minute rest break, and whether it is paid depends on their contract. Elsewhere, your contract and local law decide.

  • Break as minutes or as times. Type 45 or 0:45, or switch Breaks to Start and end and type 1:00 PM and 1:45 PM. The break comes off the day once, however many pairs you enter.
  • Rounding, only if your employer rounds. The Rounding menu rounds each clock time to the nearest 5, 6, 10 or 15 minutes before the math. At 15 minutes, 9:07 becomes 9:00 and 9:08 becomes 9:15.
  • Two formats. Every result shows hours and minutes and decimal hours side by side, so a timesheet that wants 8.25 gets it without a separate conversion.

When you need more than one day

This calculator answers one day. For a week or two of days with pay, the time card calculator takes up to 14 days of in and out times with breaks and works out gross pay at an hourly rate. To mark a whole team present, absent or on leave for every day of a month, the attendance sheet template gives you a printable and spreadsheet register built for it. To keep today's result, use Print, Download CSV, which opens in Excel or Google Sheets, or Copy link, which saves your times in a link you can send or reopen.

When daily hours outgrow the calculator

Working out one day by hand is quick. Working out every day for a whole team means collecting everyone's times first, and that is where gaps and typos creep in. In Staffic, Clock In/Out takes each member's first and last tracked session of the day, from the timer in the desktop app, as their in and out times, so nobody types them. Timesheets count a session that runs past midnight on the day it started, in the time zone you pick, and attendance tracking shows who worked each day and who was on leave.

Sources: Breaks and Meal Periods (U.S. Department of Labor); Rest breaks at work (GOV.UK)

Clock In/Out

Track time without the spreadsheet

Staffic tracks time in a desktop app for Windows, macOS and Linux and fills timesheets, attendance and reports for you. Free for up to 3 members, no card needed.

Free for up to 3 members

Staffic Daily timesheet for today: 8 members on an hourly timeline, 32h 2m tracked in all

1/4Open Attendance

FAQ

Questions, answered

How many hours is 9 to 5?

9:00 AM to 5:00 PM is 8 hours. With an unpaid 30 minute lunch it is 7 hours 30 minutes, or 7.5 decimal hours, and with an unpaid one hour lunch it is 7 hours. Paid breaks stay in the total.

How do I calculate in time and out time?

Subtract the in time from the out time on a 24 hour clock, then take off the unpaid break. An in time of 9:45 and an out time of 18:30 give 8 hours 45 minutes; minus a 45 minute lunch, that is 8 hours worked.

How do I calculate hours worked past midnight?

Add 24 hours to the out time before you subtract. 10:00 PM to 6:30 AM becomes 22:00 to 30:30, which is 8 hours 30 minutes. The calculator does this on its own whenever the out time is earlier than the in time, and marks the result "next day".

Is a lunch break counted in hours worked?

Not when it is unpaid. In the US, the Department of Labor doesn't count meal periods, typically 30 minutes or more, as work time, while short breaks of about 5 to 20 minutes count as hours worked. In other countries, your contract and local law decide.

Can I enter more than one in and out time?

Yes. Add up to four in and out pairs for one day, for example when you leave for lunch and come back, or step out twice. The calculator adds the pairs, shows the hours for each, and takes any break off the total once.

Does the calculator work with 24 hour times?

Yes. Type 18:30 or 6:30 pm, whichever you use, in either mode. The 12 h and 24 h switch only changes how times are shown, and the page remembers your choice in this browser. It also reads shortcuts like 930 for 9:30 AM.

How is this different from the time card calculator?

This calculator works out one day: in time, out time and breaks. The time card calculator takes a week or two of days, adds them into weekly totals and works out gross pay from an hourly rate. Use this one for a single day or a quick check.

Free for up to 3 members

See the work, not just the hours.

Create your workspace, invite your team, and the first timesheet builds itself.

  • No card for Free
  • 14-day trial on paid plans
  • Windows, macOS, Linux