How many hours is it from 9:00 AM to 5:30 PM? What time will it be in 72 hours from now? How many hours did you actually work this week once lunch breaks come off? These questions all sound simple, yet they are surprisingly easy to get wrong by hand, because clock times are not decimal numbers. An hour holds 60 minutes, a day wraps around at midnight, and a shift that ends after midnight finishes on a different date from the one it started on.
The Hours Calculator on this page answers all three kinds of question. It finds the hours and minutes between two clock times, it adds or subtracts hours from the current time, and it totals a week of work shifts with unpaid lunch breaks removed. Everything runs in your browser, and every answer is given in hours and minutes, in decimal hours, and in total minutes, so you can use whichever format your timesheet, roster or payroll system expects.

This hours calculator works with clock times. Use Mode A to find the hours and minutes between two times of day, or to answer questions like “what time will it be in 72 hours from now?” Use Mode B to add up a week of work shifts with lunch breaks deducted. It is different from our Time Calculator, which adds and subtracts durations (such as 2:30 + 1:45), and from our Overtime Calculator, which works out pay. This page counts hours only.
Hours from now (or hours ago). Enter a number of hours and the calculator adds it to the current time, or takes it away, and tells you the resulting time and date.
How to Use the Hours Calculator
The calculator has two modes, and a short extra tool inside the first one.
Mode A, Hours Between Times, is for a single stretch of time. Enter a start time and an end time. You can type the times, pick them with the time control, or press the Now button next to either box to fill in the current time, which is handy for questions like “how many hours until 6 PM?” Press Calculate Hours and you get the difference in hours and minutes, in decimal hours, and in minutes. If the end time is earlier than the start time, the calculator assumes the period crosses midnight and counts the end time as falling on the next day.
Below that sits the hours from now box. Type any number of hours, choose “hours from now” or “hours ago,” and press the button. The calculator works from the current time and tells you the resulting clock time and date, so questions like “what time will it be in 19 hours?” or “what time was it 10 hours ago?” take a few seconds.
Mode B, Weekly Work Hours, is a light timecard. For each day you worked, enter your clock-in time, your clock-out time, and your unpaid lunch break in minutes. Press Calculate Weekly Hours and you get a total for each day plus a weekly total in hours and minutes and in decimal hours. Days you did not work can simply be left blank.
How Hours Between Two Times Are Calculated
The reliable way to subtract clock times is to stop working in hours and minutes and convert everything to minutes first. Multiply the hour by 60 and add the minutes, which turns a clock time into minutes since midnight. Subtract the start from the end, then divide the result by 60 to get back to hours and minutes.
A worked example makes this concrete. From 9:00 AM to 5:30 PM: 9:00 AM is 9 × 60 = 540 minutes. 5:30 PM is 17:30 in 24-hour time, which is 17 × 60 + 30 = 1,050 minutes. Subtract: 1,050 − 540 = 510 minutes. Divide by 60 and 510 minutes is 8 hours 30 minutes, written 8:30, or 8.50 in decimal hours.
Converting to minutes first avoids the classic mistake of treating times as decimals. Subtracting 9.00 from 17.30 as ordinary numbers gives 8.30, which looks plausible but is wrong: the real gap is eight and a half hours, not eight hours eighteen minutes. The minutes method is also what makes the overnight case easy to handle, as the next section shows.
Overnight Shifts and Times That Cross Midnight
Plenty of shifts, flights, drives and events end after midnight. If a shift runs from 10:00 PM to 6:00 AM, a naive subtraction produces a negative number, because 6:00 AM (360 minutes) is smaller than 10:00 PM (1,320 minutes). The fix is simple: when the end time is earlier than the start time, add 24 hours, or 1,440 minutes, to the end time before subtracting. Here that gives 360 + 1,440 − 1,320 = 480 minutes, which is exactly 8 hours.
This calculator applies that rule automatically in both modes and tells you when it has done so. One honest limitation is worth knowing: a clock time alone cannot say how many midnights a period spans. If you enter the same start and end time, the calculator reports zero hours, because that is what the two times say; a full day would be 24 hours, and the result line reminds you of that. For gaps longer than a day measured between dates rather than clock times, our Date Calculator is the better tool, because it counts whole days between two calendar dates.
Counting Work Hours: Lunch Breaks and the Weekly Total
A timesheet total is only useful if breaks are handled the way your workplace actually treats them. In Mode B, each day’s total is clock-out minus clock-in minus the lunch minutes you enter. A 9:00 AM to 5:30 PM shift with a 30-minute unpaid lunch is therefore 8.00 paid hours, not 8.50.
Under the US Fair Labor Standards Act (FLSA), the usual pattern is that meal breaks of 30 minutes or more, during which the employee is fully relieved of duty, do not have to be paid, while short rest breaks of roughly 5 to 20 minutes are paid and count as working time. That is why the lunch column in Mode B is meant for meal breaks only: do not deduct short coffee or rest breaks. Rules vary by state and by employer, and other countries treat breaks differently, so check your own contract or local rules if the distinction affects your pay.
Mode B also keeps an eye on the shape of your week. If the weekly total passes 40 hours, the result shows how many hours fall above the standard 40-hour week. That is information, not a pay calculation: this page counts hours only. Working out what those hours are worth, including overtime rates, is the job of our Overtime Calculator.
Decimal Hours and Payroll
Decimal hours express a duration as one number instead of hours and minutes: 8 hours 30 minutes becomes 8.50, and 45 minutes becomes 0.75. Payroll runs on decimal hours because wages are hours multiplied by an hourly rate, and that multiplication only works cleanly with a decimal figure. If you are paid $20 an hour and work 8:30, payroll does not multiply by 8.30; it multiplies 8.50 × $20 = $170.
The conversion is just minutes divided by 60. The common fractions are worth memorizing: 6 minutes is 0.10, 15 minutes is 0.25, 30 minutes is 0.50, and 45 minutes is 0.75. Times that do not land neatly, such as 8 hours 20 minutes (8.33), are rounded to two decimal places, which is the standard payroll convention. Every result on this page shows both formats side by side, and if you only need to convert an amount of time you already have, our Decimal Hours Converter does that one job on its own.
What Time Will It Be in X Hours?
A large share of hours questions are really about the future or the past: what time will it be in 24 hours, in 48 hours, 12 hours ago, and so on. The trick is to separate whole days from the leftover hours. Every 24 hours moves the date by one day and brings the clock back to the same time, so 72 hours from now is the same clock time, three days later. The remaining hours after the whole days are taken out then move the clock forward or backward, wrapping past midnight if needed.
The hours from now box in Mode A does this with the real current time, so it also handles the date for you and labels the answer as today, tomorrow, or a number of days away. It accepts decimal hours too, so “in 2.5 hours” works as expected.
Hours Calculator vs Time Calculator vs Overtime Calculator
Three of our tools have similar names, so here is the honest division of labour. This Hours Calculator works with clock times: the gap between two times of day, a time some hours from now, and a week of shifts. The Time Calculator works with durations instead: it adds and subtracts lengths of time such as 2 hours 30 minutes plus 1 hour 45 minutes, with no clock involved. The Overtime Calculator starts where this page stops: it takes hours and an hourly rate and calculates pay, including overtime. If your question names a time of day, you are in the right place here; if it only involves amounts of time, use the Time Calculator; if it involves money, use the Overtime Calculator.
Frequently Asked Questions
How do I calculate the hours between two times?
Convert both times into minutes since midnight, subtract the start time from the end time, then convert the result back into hours and minutes. For example, 5:30 PM is 1,050 minutes and 9:00 AM is 540 minutes, so the difference is 510 minutes, which is 8 hours 30 minutes, or 8.50 hours in decimal. Mode A of the calculator above does this for you, including the overnight case.
What time will it be in 72 hours from now?
Seventy-two hours is exactly three days, so the clock time stays the same and only the date moves forward by three days. If it is 2:00 PM on Monday now, it will be 2:00 PM on Thursday. For any other number of hours, use the ‘hours from now’ box in Mode A and the calculator will show the resulting time and date.
What happens if the end time is earlier than the start time?
The calculator treats the end time as falling on the next day and adds 24 hours before subtracting. This is how overnight shifts are counted: a shift from 10:00 PM to 6:00 AM is 8 hours, not a negative number. The result line tells you when this overnight adjustment has been applied.
Is a lunch break deducted from my work hours?
Only if you enter it. In Mode B, type your unpaid meal break into the lunch column in minutes and it is subtracted from that day’s total. Under US FLSA rules, meal breaks of 30 minutes or more are usually unpaid, while short rest breaks of about 5 to 20 minutes are usually paid and should not be entered as lunch.
What are decimal hours, and why does payroll use them?
Decimal hours express a duration as a single number, so 8 hours 30 minutes becomes 8.50 hours and 45 minutes becomes 0.75 hours. Payroll systems use decimal hours because pay is calculated by multiplying hours by an hourly rate, which only works cleanly with a decimal figure. Every result on this page is shown in both formats.
Does this calculator work out overtime pay?
No. This page counts hours only. If your weekly total passes 40 hours, Mode B shows how many hours fall above the standard 40-hour week, but pay rates, overtime multipliers and deductions are handled by our Overtime Calculator, which is linked from the results.
What is the difference between the Hours Calculator and the Time Calculator?
The Hours Calculator works with clock times: the time between 9:00 AM and 5:30 PM, or the time in 72 hours from now. The Time Calculator works with durations: it adds and subtracts amounts of time such as 2 hours 30 minutes plus 1 hour 45 minutes, without referring to a clock. If your question mentions a time of day, use this page; if it only involves lengths of time, use the Time Calculator.
