Hours Calculator - Hours Between Two Times With Break
Use this hours calculator to find decimal hours, clock-style h/m/s, days, and gross pay between any two times, with lunch break and overnight shift handling.
Hours Calculator
Results
What Is an Hours Calculator?
An hours calculator is a focused time-arithmetic tool that turns a start time and an end time into a clean hours figure you can read in decimal form, clock-style h/m/s, total minutes, total seconds, and the day equivalent, with an optional unpaid break and an optional hourly rate for an estimated gross pay.
- • Same-Day Shift Length: Compute the net hours between a clock-in and clock-out on the same day and subtract a lunch break, the daily entry on a time card.
- • Overnight Shift Length: Find the net hours for a shift that crosses midnight (for example 22:00 to 06:00) without a negative result.
- • Project Time Logging: Translate a start and end time on a freelance or consulting task into a decimal hours figure for an invoice or weekly timesheet.
- • Pay Estimate Before Payroll Closes: Combine the hours between two times with an hourly rate to produce a quick pre-payroll gross pay estimate.
Hours are the everyday language of work, study, cooking, and travel, but converting two clock times into a single hours figure by hand is fiddly: you have to remember the 60 minutes per hour rule, handle shifts that cross midnight, and decide whether a 30-minute break should be counted. The hours calculator does the arithmetic, including the overnight and break adjustments, and presents the result in the formats people actually use on a time card.
If you would rather enter two full date-times instead of clock times on the same day, the Time Duration Calculator handles that span with the same breakdown.
How the Hours Calculator Works
The hours calculator converts both clock times to minutes since midnight, adds 1,440 minutes when the end is earlier than the start to represent an overnight shift, subtracts the unpaid break, and then splits the remaining minutes into decimal hours, a clock-style h:m/s breakdown, total seconds, and the day equivalent.
- start_h, start_m: Start hour and start minute in 24-hour clock (for example 9 and 0 for 09:00).
- end_h, end_m: End hour and end minute in 24-hour clock (for example 17 and 30 for 17:30).
- break_min: Unpaid break in minutes, subtracted from the gross shift duration (use 0 for no break).
- hourly_rate: Optional hourly rate used to convert net minutes into an estimated gross pay.
The overnight handling is the part most manual calculations get wrong. A 22:00 to 06:00 shift is 8 hours gross, not negative 16 hours, so the calculator adds 1,440 minutes (one full day) to the end time whenever the end is earlier than the start.
9:00 to 17:00 with a 60-minute lunch
Start 09:00, End 17:00, Break 60 min.
Minutes: 540 and 1020. Gross = 480. Net = 420. Hours = 7.00. Days = 0.29.
7.00 hours, 7 h 0 m 0 s, 0.29 days.
The classic eight-hour daytime shift minus a one-hour unpaid lunch, leaving 7.00 paid hours for a single shift on a typical time card.
22:00 to 06:00 overnight with a 30-minute break and a $20 hourly rate
Start 22:00, End 06:00, Break 30 min, Rate $20.
Minutes: 1320 and 360. End is earlier, so add 1440: 1800. Gross = 480. Net = 450. Hours = 7.50. Pay = $150.00.
7.50 hours, 7 h 30 m 0 s, 0.31 days, $150.00 gross pay.
The end is earlier than the start, so the calculator adds a full 24-hour day before subtracting, which gives the overnight shift a positive result.
According to International Bureau of Weights and Measures (BIPM), the SI base unit of time is the second, and a day is defined as 86,400 seconds, which equals 1,440 minutes and 24 hours.
When the same calculation needs full date-time entries with time zones or day boundaries, the Time Difference Calculator takes the same arithmetic and applies it to a date-time pair.
Key Concepts Explained
Four small ideas make the result panel easier to read, especially when the shift crosses midnight or the break is longer than expected.
Minutes Since Midnight
The calculator converts each clock time into minutes since 00:00 so that 09:00 becomes 540 and 17:30 becomes 1,050. Subtracting the two minute counts gives a clean duration figure that carries through every other step.
Overnight Shift Adjustment
When the end time is earlier than the start time, the calculator adds 1,440 minutes (a full day) to the end so the gross shift is positive. This makes 22:00 to 06:00 read as 8 hours instead of minus 16.
Decimal Hours vs Clock Hours
Decimal hours use base 10, so 7 hours 30 minutes is 7.50. Clock-style hours use 60 minutes per hour, so the same shift reads as 7 h 30 m. The result panel prints both so the value fits either format without extra conversion.
Unpaid Break Deduction
Unpaid break minutes are subtracted from the gross shift after the overnight adjustment. A 60-minute break on a 9:00 to 17:00 shift leaves 7.00 hours of paid time, the value that flows into a payroll or invoicing step.
These four ideas explain why two seemingly similar calculators give different answers. A duration tool that ignores the overnight rule prints a negative number for an overnight shift, while a tool that treats the break as paid overstates the hours. The hours calculator keeps the rules visible in the result panel.
If the rest of your workflow is built on decimal hours and you want a clean conversion from h:m:s to a single decimal number, the Decimal Time Conversion Calculator sits next to this tool.
How to Use This Calculator
Six short steps turn any pair of clock times into decimal hours, a clock-style breakdown, and an optional gross pay figure.
- 1 Enter the Start Time: Type the start hour in 24-hour format (0-23) and the start minute (0-59). The defaults of 09:00 cover a typical daytime shift.
- 2 Enter the End Time: Type the end hour and end minute. An end time earlier than the start time is interpreted as an overnight shift on the next day.
- 3 Set the Unpaid Break: Enter the unpaid break in minutes. Use 0 for a no-break shift, and 30 or 60 for a typical lunch break.
- 4 Add the Hourly Rate (Optional): Type the hourly rate to estimate gross pay, or leave it at 0 to skip the pay result.
- 5 Read the Shift Note: The shift note row reports whether the calculation crossed midnight.
- 6 Apply the Result: Drop the decimal hours into a time card, or copy the clock breakdown into a written log.
A line cook clocks in at 14:00 and out at 23:15 with a 30-minute unpaid dinner break and an $18 hourly rate. The hours calculator reports 8.75 paid hours, 8 h 45 m 0 s, 0.36 decimal days, and an estimated gross pay of $157.50, the value to copy into the kitchen's timekeeping system.
For a longer planning window that starts on a specific date instead of just a clock time, the Hour Countdown takes the same hour arithmetic and applies it to two date-times.
Benefits of Using This Calculator
The hours calculator is a small tool, but the same arithmetic shows up on time cards, invoices, study logs, and travel plans, which is why putting the math in one place saves real time.
- • Decimal Hours Ready for Payroll: The primary readout is decimal hours rounded to two places, the format most digital time cards and payroll systems expect, so the result drops into a spreadsheet without a manual conversion.
- • Clock-Style Breakdown: The clock-style h:m/s row shows the same shift in the format people write on paper logs.
- • Overnight Shift Handling: Shifts that cross midnight report a positive duration and a 'Crossed midnight' indicator, which removes the negative-number error that catches most manual calculations.
- • Unpaid Break Deduction: An unpaid break is deducted from the gross shift before the result is displayed, so the paid hours figure flows straight into payroll or a study log.
- • Optional Gross Pay Estimate: Setting the hourly rate converts the paid hours into an estimated gross pay, useful for a pre-payroll sanity check or a freelance invoice.
- • Live Recalculation: Inputs recompute the result as you type, so editing the start minute updates the panel without waiting for a separate submit step.
The same benefit applies when the shift is not a paid one. A student logging study hours, a runner recording a long training block, and a parent timing a long drive can all use the same decimal hours and the same clock-style breakdown.
If the day involves several short tasks that need to be added together, the Add Time Calculator totals multiple durations and reports the same decimal hours and clock breakdown.
Factors That Affect Your Results
Three inputs and two calendar realities shape the result, and the result panel makes the inputs visible so the output never feels like a black box.
24-Hour Clock Input
Hours and minutes must be entered in 24-hour format, so 1:00 PM is 13:00 and 12:00 AM is 00:00. A wrong AM/PM reading is the most common reason for a result that looks twice as long as the shift really was.
Overnight Shift Direction
When the end time is earlier than the start time, the calculator adds a full 24 hours to the end before subtracting. Identical start and end times report 0 hours.
Unpaid Break Length
A long unpaid break can reduce the paid hours to 0. The calculator clamps the net to 0 in that case and still reports the original gross minutes.
Hourly Rate Application
The gross pay is the paid hours multiplied by the hourly rate. A rate of 0 disables the pay result so the page stays focused on duration when the shift is unpaid.
- • Hours are a continuous calendar unit, so the result does not exclude nights, weekends, or holidays. A Friday 22:00 to Saturday 06:00 shift still reports 8 hours even if the workplace closes for the weekend.
- • The unpaid break is treated as a single deduction, not as a series of smaller breaks. Add the unpaid time into one number (for example 30 + 15 = 45 minutes) before entering it if the shift has more than one break.
According to U.S. Department of Labor - Wage and Hour Division, all time an employee is required to be on duty is counted as hours worked, and short breaks of 20 minutes or less generally must be counted as paid time.
If the day involves subtracting a fixed block of time from a larger span, the Subtract Time Calculator handles that direction with the same clock-style and decimal outputs.
Frequently Asked Questions
Q: How do you calculate hours between two times?
A: Convert the start time and the end time to minutes since midnight, subtract the start from the end, and add 1,440 minutes if the end is earlier than the start to handle an overnight shift. Subtract the unpaid break, then divide the remaining minutes by 60 to get decimal hours. The hours calculator does all of that in a single form.
Q: What is the difference between hours and decimal hours?
A: Hours use 60 minutes per hour, so 7 hours 30 minutes is written as 7:30. Decimal hours use base 10, so the same shift is 7.50 hours. The result panel prints both formats so the same value fits a written log and a digital time card.
Q: How do you convert minutes to decimal hours?
A: Divide the minutes by 60. For example, 15 minutes is 15 / 60 = 0.25 decimal hours, and 45 minutes is 45 / 60 = 0.75 decimal hours. The hours calculator performs that conversion automatically and rounds the result to two decimal places.
Q: Does the hours calculator handle a lunch break?
A: Yes. Enter the unpaid break in minutes in the Unpaid Break field and the calculator subtracts it from the gross shift before printing the paid hours, the clock-style breakdown, and the optional gross pay. A break longer than the gross shift is clamped to 0 paid hours.
Q: How many work hours are there in a year?
A: A standard work year of 52 weeks at 40 hours per week is 2,080 hours, which is the figure most U.S. salary discussions use as a baseline. The hours calculator reports 7.00 paid hours for a 9:00 to 17:00 shift with a 60-minute unpaid lunch, or 35.00 paid hours across a five-day workweek, which is the standard paid-time figure on a typical time card.
Q: What is a standard 8-hour work day in hours?
A: A standard 8-hour work day is 8.00 paid hours after the unpaid break, and 8 hours 0 minutes 0 seconds in the clock-style breakdown. The hours calculator prints both values from the same calculation so the shift log and the digital time card stay in sync.