Hours Calculator
Work out the hours between two times in one step. Enter a start time and an end time, take a lunch break off if you had one, and this hours calculator gives you the hours worked as clock time (like 8:30) and as decimal hours (8.50) for payroll. Overnight shifts are handled automatically.
How to use this hours calculator
- Type or pick the time you started. The clock on your device decides whether you see a 12-hour or 24-hour picker.
- Enter the time you finished.
- If you took an unpaid break, enter its length in minutes (30 for a half-hour lunch, 60 for a full hour).
- Press Calculate Hours. You get the hours worked in hours and minutes, in decimal hours, and in total minutes.
That is the whole process. There is nothing to install and no account to make, and the answer appears on this page without a reload.
A worked example
Say you clocked in at 9:00 AM and out at 5:30 PM, with a 30-minute unpaid lunch. The span from 9:00 to 5:30 is 8 hours and 30 minutes. Take the 30-minute lunch off and your hours worked are exactly 8 hours, which payroll writes as 8.00 decimal hours. At an hourly rate of $18, that day pays 8 x $18 = $144 before tax. If your lunch had been 45 minutes instead, the same shift would be 7 hours 45 minutes worked, or 7.75 decimal hours, paying $139.50. Small break differences move real money, which is why getting the break right matters.
Overnight shifts and spans over a day
Night work breaks most home-made spreadsheets, because an end time of 6:00 AM is "earlier" than a start time of 10:00 PM. This hour calculator assumes that when the end time is earlier than the start time, the shift ran past midnight into the next day, so 10:00 PM to 6:00 AM gives the correct 8 hours. If you need a span longer than 24 hours, for example a project that ran from Monday morning to Wednesday afternoon, tick the dates option and enter the start and end dates as well as the times.
Decimal hours, because payroll cannot multiply 8:30
Your wage is paid as hours multiplied by a rate, and a calculator cannot multiply "8:30" by anything. That is why time cards and pay stubs use decimal hours. The conversion is simple: divide the minutes by 60. Fifteen minutes is 0.25, 30 minutes is 0.50, 45 minutes is 0.75, and 20 minutes is 0.33. This tool shows the decimal figure next to every result, and our guide to converting hours and minutes to decimal has the full chart. If you are adding up a whole week rather than one shift, the work time calculator does the same conversion for all seven days at once, and the time card calculator adds overtime and gross pay on top.
12-hour and 24-hour clocks
The maths is identical either way; only the labels change. On a 24-hour clock, 1:00 PM is 13:00 and 5:30 PM is 17:30. The one mistake to avoid is 12 itself: 12:00 PM is noon and 12:00 AM is midnight. If a shift total ever looks exactly 12 hours wrong, a noon or midnight mix-up is almost always the cause. The guide on how to calculate the hours between two times walks through every one of these cases with examples.
Hours for common shifts
To save you the first calculation, here are the shifts people ask about most, with a standard unpaid break already taken off. If your shift matches one of these rows, you have your answer; if it does not, the tool above takes ten seconds.
| Shift | Break | Hours worked | Decimal |
|---|---|---|---|
| 9:00 AM to 5:00 PM | 30 minutes | 7 hours 30 minutes | 7.50 |
| 8:00 AM to 4:30 PM | 30 minutes | 8 hours | 8.00 |
| 10:00 AM to 6:30 PM | 45 minutes | 7 hours 45 minutes | 7.75 |
| 7:00 AM to 7:00 PM (healthcare 12s) | 30 minutes | 11 hours 30 minutes | 11.50 |
| 10:00 PM to 6:00 AM (night shift) | 30 minutes | 7 hours 30 minutes | 7.50 |
| 6:00 AM to 2:30 PM (early shift) | 30 minutes | 8 hours | 8.00 |
Three mistakes that change the total
The noon and midnight mix-up. On a 12-hour clock, 12:00 PM is the middle of the day and 12:00 AM is the middle of the night. Swapping them moves a result by exactly 12 hours, so if a total looks wildly wrong, check this first. The break in the wrong unit. The break box on this page takes minutes. Typing 0.5 because you mean half an hour gives you a break of half a minute, not thirty. Half an hour is 30, three quarters of an hour is 45, a full hour is 60. Reading decimal hours as clock time. A result of 7.75 hours is 7 hours and 45 minutes, not 7 hours and 75 minutes. The decimal part is a fraction of an hour, so it has to be multiplied by 60 to become minutes - 0.75 x 60 = 45. Each of these mistakes is small on paper and worth real money across a month of shifts, which is why it is worth letting the calculator carry the numbers.
Who checks hours one shift at a time
Freelancers and contractors use a single-shift total to bill a client for the day. Agency and healthcare staff on 12-hour patterns use it to confirm that a week of long shifts matches the rota before it becomes a payslip argument. Part-time workers with changing start times use it to keep their own record next to the official one. And managers use it as a spot check: one employee, one day, one number that either matches the time card or starts a conversation. When the question grows from one shift to a full week or a full card, the related calculators below take over without re-typing anything you have already worked out.
Rounding a single shift
Some employers round each shift before paying it. Under the common 15-minute system, a day that truly lasted 7 hours 53 minutes is paid as 8 hours, while 7 hours 52 minutes is paid as 7 hours 45 minutes - one minute of real time worth fifteen minutes of pay, in either direction. This page always shows the exact figure, because the exact figure is what you need to check a rounded payslip against. If your workplace rounds, set the same rule on the work time calculator and compare week against week; our guide to the 7-minute rule explains where the line falls and why the system has to balance out over time to stay legal.
Split shifts and two-part days
Some jobs work in two pieces: a morning run and an evening run with a long unpaid gap between them, common in school transport, cleaning, hospitality and care work. This calculator measures one span at a time, so run it twice - once for each piece - and add the two results. A morning of 6:00 AM to 9:30 AM with no break is 3.5 hours, and an evening of 3:00 PM to 7:00 PM is 4 hours, which makes a 7.5-hour day even though the clock span from first start to last finish was 13 hours. The gap in the middle is not work time, and counting the whole span is the single most common split-shift mistake. If the two pieces are a daily pattern, the work time calculator keeps the week in one view once you have each day's total.
Frequently asked questions
How do I calculate the hours between two times?
Enter the start time and the end time, take off any break in minutes, and press Calculate. For example, 9:00 AM to 5:30 PM is 8 hours 30 minutes; with a 30-minute lunch break taken off, that is 8 hours worked, or 8.00 in decimal hours.
What if my shift goes past midnight?
Enter the times as normal. If the end time is earlier than the start time, this calculator treats the shift as running overnight into the next day, so 10:00 PM to 6:00 AM correctly gives 8 hours. For spans longer than a day, tick the dates option and enter the start and end dates.
How do I take a lunch break off my hours?
Put the length of your unpaid break in the break box, in minutes. A 30-minute lunch is 30, a 45-minute lunch is 45, and a one-hour lunch is 60. The calculator subtracts it from the total before showing your hours worked.
What are decimal hours and why does payroll use them?
Decimal hours express time as a single number, so 8 hours 30 minutes becomes 8.50. Payroll uses decimal hours because pay is hours multiplied by a rate, and you cannot multiply 8:30 by a wage. To convert, divide the minutes by 60: 45 minutes is 0.75, 20 minutes is 0.33.
Can this hours calculator work out a whole week?
This page is built for one shift or one span at a time. For a full week, use the work time calculator, which adds up seven days with breaks and rounding, or the time card calculator, which also works out overtime and gross pay.
Is the hours calculator free and private?
Yes. It is free with no sign-up, and the calculation happens in your browser. Your times are never sent to a server.
Related calculators
Time Calculator
Add and subtract days, hours, minutes and seconds, add time to a date, or type a full time expression.
Open the time calculatorWork Time Calculator
Add up a week of work time with lunch breaks, your rounding rule, decimal totals and gross pay.
Open the work time calculatorTime Card Calculator
A full weekly or biweekly time card with lunch punches, overtime, gross pay and a printable report.
Open the time card calculator