How to Subtract Break Time in Excel
In this article
To subtract break time in Excel, store the start time, end time, and break duration in separate cells, then use a formula like =(B2-A2)-C2 where B2 is the end time, A2 is the start time, and C2 is the break length. Format the result cell as [h]:mm so totals over 24 hours display correctly. This method works for any shift, whether the break is a fixed 30 minutes or a variable lunch period.
What You'll Need
- Excel (any recent version, desktop or web) or a compatible spreadsheet app.
- Start time, end time, and break duration for each shift, entered as time values (e.g.,
9:00 AM,5:30 PM,0:30). - Basic familiarity with cell references and formatting.
Step-by-Step
- Set up your columns. In a new sheet, label A1 Start, B1 End, C1 Break (hh:mm), and D1 Hours Worked. Enter your data starting in row 2. For example, A2 =
9:00 AM, B2 =5:30 PM, C2 =0:30(30 minutes). - Enter times correctly. Type times with a space before AM/PM (e.g.,
9:00 AM) or use 24-hour format (e.g.,17:30). Excel recognises these as time values. For break duration, enter0:30for 30 minutes or1:00for one hour. Do not type30alone—that becomes the number 30, not 30 minutes. - Write the subtraction formula. In D2, enter
=(B2-A2)-C2. This subtracts the start time from the end time to get total elapsed time, then subtracts the break duration. Press Enter. The result may appear as a decimal or a strange time; that is normal until you format it. - Format the result as hours and minutes. Select D2, right-click, choose Format Cells, go to the Number tab, select Custom, and type
[h]:mmin the Type box. Click OK. The brackets aroundhallow totals to exceed 24 hours (useful for weekly sums). Without brackets, a 25-hour total would show as 1:00. - Copy the formula down. Drag the fill handle from D2 down to cover all rows. Each row now calculates net hours after break.
- Handle breaks longer than the shift (optional). If a break could exceed the worked time, wrap the formula in
MAX(0, ...):=MAX(0,(B2-A2)-C2). This prevents negative results. - Sum the net hours. In a cell below your data, use
=SUM(D2:D10)and format that cell as[h]:mmas well. You now have total paid hours for the period.
Menu labels and formatting options can differ slightly by Excel version, device, or region. The steps above apply to Excel for Microsoft 365 and Excel 2019/2021 on Windows and Mac; the web version follows the same logic but may place Format Cells under a different right-click menu.
Common Mistakes
- Entering break as a plain number. Typing
30in the break column gives 30 days, not 30 minutes. Always use0:30or30:00? No—30:00means 30 hours. Use0:30for 30 minutes. - Forgetting to format the result. A raw subtraction may show as
0.333333or a time like8:00that looks right but is actually a fraction of a day. Apply[h]:mmto see true hours and minutes. - Using
h:mminstead of[h]:mm. Without brackets, totals over 24 hours wrap around and show incorrect values. - Mixing AM/PM incorrectly. If you type
5:30without AM/PM, Excel may assume AM. Be explicit or use 24-hour time. - Subtracting break from the wrong side. The formula must be
(End - Start) - Break. Reversing start and end gives a negative time, which displays as#####.
Tips
- Use a separate cell for break minutes and convert with
C2/1440if you prefer to enter break as a number of minutes (e.g., 30).1440is the number of minutes in a day. - Apply the same
[h]:mmformat to any cell that sums time, including weekly totals. - If you need decimal hours for payroll, multiply the result by 24 and format as a number:
=((B2-A2)-C2)*24. - Use
IFto flag missing breaks:=IF(C2="","Missing break",(B2-A2)-C2). - Keep a consistent time format across all rows to avoid confusion.
Troubleshooting
- Result shows
#####: The column is too narrow or the result is negative. Widen the column; if negative, check that End is later than Start and break is not larger than the shift. - Result is a decimal like 0.35: The cell is formatted as General or Number. Reapply
[h]:mm. - Times won't subtract: The cells may be stored as text. Select them, use Data > Text to Columns and finish, or retype with a leading apostrophe removed. Ensure no extra spaces.
- Break time not subtracting: Confirm the break cell is a time value, not text. Test with
=ISNUMBER(C2)—it should return TRUE. - Totals wrong after midnight: For shifts crossing midnight, use
=(B2-A2+(B2to add a day when end is earlier than start.
Frequently Asked Questions
How do I subtract a 30-minute break in Excel?
Enter 0:30 in a cell and subtract it from the end-minus-start difference: =(B2-A2)-C2. Format the result as [h]:mm.
Why does my formula show a negative time?
Excel displays negative time as ##### by default. Check that end time is after start time and that the break is not longer than the shift. Use MAX(0, ...) to avoid negatives.
Can I subtract break time from a total that includes multiple days?
Yes. Sum the net hours for each day first, then format the total cell as [h]:mm. If you subtract breaks after summing, ensure each break is also in time format.
What if my break is given in minutes, not time?
Divide the minutes by 1440 (minutes per day). For example, 45 minutes = 45/1440. Use =(B2-A2)-C2/1440 if C2 holds 45.
Does this work in Excel for the web?
Yes, the same formulas and custom number format [h]:mm work in Excel for the web, though the Format Cells dialog may be accessed differently.
How do I handle unpaid breaks vs paid breaks?
Subtract only unpaid breaks. Keep a separate column for paid break time if needed, and sum only the unpaid break column in your net hours formula.