Hours Calculator
Calculate total working hours between two times with optional break deduction. The parser accepts both 12-hour and 24-hour formats. The format toggle controls output display only.
← All time calculatorsInput
Accepts 12h or 24h format, e.g., 09:00 or 9:00 AM
Accepts 12h or 24h format, e.g., 17:00 or 5:00 PM
Unpaid break time to deduct
Controls output format only
Show seconds in results
End time is on the following day
Result
Net Working Hours
8h
Gross Time
8h
Break
0m
Decimal Hours
8.00hrs
Total Minutes
480min
Day %
33.3%
Breakdown
- Gross time
- 8h
- Break
- 0m
- Net time
- 8h
- Decimal hours
- 8.00
- Total minutes
- 480
- Total seconds
- 28,800
- Day percentage
- 33.3%
- Start
- 09:00
- End
- 17:00
Formula: Time format: 24-hour · Cross midnight: Enabled
Timeline
Formula
End Time − Start Time − Break = Net Hours
Calculate gross time between start and end, then subtract break time. If end time is earlier than start time and 'Crosses midnight' is enabled, 24 hours are added to the end time.
Example: Standard Work Day with Lunch Break
Tips
- The parser accepts both 12-hour and 24-hour formats regardless of the output setting.
- Enable 'Crosses midnight' for overnight shifts or events.
- Enter break time in minutes (e.g., 30 for half hour, 60 for one hour).
- Enable 'Include seconds' for precise timing.
- Results update automatically as you type.
Frequently Asked Questions
How do I calculate hours with a lunch break?
Enter your start and end times, then enter your break duration in minutes (e.g., 30 for a 30-minute lunch break). The calculator will automatically deduct the break from your total hours.
What if I work overnight?
Enable the 'Crosses midnight' option. This tells the calculator that the end time is on the following day, so it adds 24 hours to the end time before calculating the difference.
Can I use AM/PM format?
Yes. The parser accepts both 12-hour (AM/PM) and 24-hour formats regardless of the output format setting. The format toggle only controls how results are displayed.
How do I enter a 1-hour break?
Enter 60 in the break field. The calculator accepts break time in minutes, so 60 minutes equals 1 hour.
How accurate is the calculation?
The calculation is exact to the second. Enable 'Include seconds' to see seconds in the result. The internal calculation uses integer seconds to avoid floating-point errors.
Can I share my calculation?
Yes. Click 'Share Link' to copy a URL that includes your inputs. Anyone with the link will see the same calculation.
Related Tools
Last reviewed: July 17, 2026