Hours Between Two Times Calculator
Finding the hours between two times gets complicated when a shift crosses midnight, a lunch break is unpaid, or a timesheet needs a whole week of rows. This calculator handles those cases and shows the answer in hours and minutes, in decimal hours, and as a pay estimate.
What this calculator measures
The calculator measures the gap between a start time and an end time on the same day, then subtracts any unpaid break you enter. The result appears as hours and minutes, for example 7:45, and as decimal hours, for example 7.75. Both describe the same length of time. The first is the form most people read, and the second is the form many payroll systems and job applications ask for.
It also handles the case that trips people up: a shift that starts late in the evening and ends in the early morning. If your end time is earlier than your start time, the tool counts the shift as running past midnight into the next day. A start of 22:00 and an end of 06:00 is eight hours, not minus sixteen.
Add a row for each day you want to count and the tool totals them into one figure, so a single shift and a full week take the same path. The copy button puts a plain text summary on your clipboard.
How to use it, step by step
Step one: pick your time format. The 24-hour option shows times as 09:00 and 17:00, the 12-hour option shows 9:00 AM and 5:00 PM. This only changes how times are displayed back to you. Either style works in the boxes, so 9:00 AM, 9am, 09:00 and 9 are all accepted.
Step two: type your start and end times into the first row. The shift length appears next to the row as soon as both boxes hold a valid time. Step three: if you took an unpaid break, type the number of minutes in the break box, so a 30-minute lunch takes 30 minutes off the shift.
Step four: add days with the Add day button, which labels them Mon, Tue, Wed and so on. Rename a row if your week is unusual, and remove rows you do not need.
Step five: type an hourly rate if you want a pay estimate. Everything updates as you type, and the Copy summary button gives you the breakdown to paste into a timesheet or a message.
Worked example: a nine to five day with an unpaid lunch
You start at 09:00 and finish at 17:00. The raw gap is 8:00, and the tool shows 8:00 next to the row. Your lunch is unpaid and lasts 30 minutes, so type 30 in the break box. The row now reads 7:30 with 7.50 decimal hours beside it.
Here is the arithmetic behind that number. The shift runs from 09:00 to 17:00, which is 8 hours and 480 minutes. Removing 30 minutes leaves 450 minutes. Divide by 60 and you get 7.5 hours, written as 7:30 in hours and minutes form.
Add the same row for Tuesday, Wednesday, Thursday and Friday and the week total comes to 37:30, or 37.50 decimal hours. Five days of 7 hours 30 minutes is the number most employers expect on a weekly timesheet.
Worked example: an overnight shift
You work from 22:00 to 06:00. The end time reads earlier than the start time, so the calculator adds 24 hours to the end before subtracting anything. From 22:00 to midnight is 2 hours and from midnight to 06:00 is 6 hours, giving 8:00 in total. A badge on the row marks it as an overnight shift so you can see what the tool did.
Add a 45-minute unpaid break to the same row and the worked time becomes 7:15, or 7.25 decimal hours. The overnight rule still applies, because the break comes off after the 24-hour wrap is worked out.
One case needs a decision from you. If a shift starts and ends at the same clock time, the calculator reports 0:00, because a wall clock cannot tell 09:00 to 09:00 apart from no shift at all. Tick the option that treats an identical start and end time as a full 24-hour shift when that is what happened, and leave it off for a zero-hour entry.
How decimal hours work
Decimal hours is the same length of time written as a number instead of as hours and minutes. Every hour counts as 1, and each minute is a fraction of an hour, because there are 60 minutes in one hour. That fraction is where people get stuck, so a few examples help.
45 minutes is 45 divided by 60, which is 0.75, so 7 hours 45 minutes is 7.75 decimal hours. A 30-minute break makes 7.5. A 20-minute remainder turns 8 hours into 8.3333..., shown as 8.33. A 10-minute remainder turns one hour into 1.1666..., shown as 1.17.
The rule the tool follows is simple: the hours and minutes value is exact to the minute, and the decimal value is rounded to two decimal places. That rounding is why 8:20 appears as 8.33 rather than 8.3333. If a system expects an exact fraction, enter the hours and minutes instead, because 8:20 carries no rounding at all. For pay, the tool multiplies the exact worked time by the rate and rounds the money at the end, so rounding never happens twice.
Adding up a full week
Rows do more than repeat the same shift. Each row can hold different times, so a week with two late starts and one shortened day still totals correctly. Type a name in the first box of the row, for example Mon or Night shift, and the copied summary keeps those labels.
The total time card shows hours and minutes across every row, and the decimal hours card shows the same total as a single number. The break card shows how many unpaid minutes were removed, which is a quick way to spot a typo. If one row looks wrong, check its break box first, since a stray digit there changes the whole week.
Working out pay at an hourly rate
Type an hourly rate and the tool multiplies it by the worked hours. At $18.50 an hour, 37.50 hours comes to $693.75, and 38.50 hours comes to $712.25.
That figure is a gross estimate from two numbers: your hours and your rate. It does not know about tax, overtime rules, unpaid meal rules, minimum wage rules, holiday pay, or how your employer counts a break. Agreements, payroll policy and local law all vary, and they change. Use this as a rough check and confirm the real figure with your employer or payroll system.
Tips that avoid common mistakes
Check every row before you copy the summary. Most wrong totals come from a typo in a time box rather than from the arithmetic, and a row showing an unexpected 0:00 usually means the start and end were typed in the wrong order or match each other.
Decide whether a break is paid before you enter it. The tool treats every break as unpaid, which matches how most contracts treat an unpaid lunch. If your break is paid, leave the break box empty and put the full span in the start and end boxes.
Limits and things this tool does not know
Everything is calculated in your browser from the times you type. No shift is uploaded, and nothing is stored between visits. Closing the tab throws the rows away, so copy anything you want to keep first.
The calculator works on wall clock times, which is what a timesheet normally uses. It cannot see daylight saving changes, so a shift across a clock change is counted by the times on the clock rather than by the hours that actually passed. It also cannot see two shifts in one day with a gap between them, so enter those as two rows. Minutes are the smallest unit, and seconds in a time box are rounded to the nearest minute.
Troubleshooting
If a row refuses to calculate, the time box does not hold something the tool can read. Accepted formats are 9, 09:00, 9:00 AM, 9am, 21:30 and 24:00 for midnight. Anything else, such as a time with words in it, leaves that row empty until it is fixed.
If the total looks too small, check the break boxes. A break of 480 in a row removes eight hours, and a break longer than the shift sets the worked time to zero rather than going negative.
If an overnight shift is read as a negative number, the end time is not earlier than the start time in the box. A shift from 22:00 to 02:00 has an end time of 02:00, which is earlier, so it counts as the next day. A shift from 06:00 to 14:00 is the same day.
Explore more calculator tools on Tolz.me.