Two clock readings, one answer. Enter a start time and an end time, and the calculator returns the gap in HH:MM:SS, decimal hours, and total minutes. Handles overnight shifts that cross midnight.
Time Difference Calculator - Subtract Time, Find the Gap
Two clock readings, one answer. Enter a start time and an end time, and the calculator returns the gap in HH:MM:SS, decimal hours, and total minutes. Handles overnight shifts that cross midnight.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Subtraction works for clock times too
You clocked in at 08:30 and clocked out at 17:15. How long did you work? This calculator takes two time readings and gives you the gap - in HH:MM:SS, decimal hours (for payroll), and total minutes. If the shift crosses midnight, one checkbox fixes it.
How to find the time difference - step by step
- Start time - enter the earlier time in 24-hour format (e.g. 08:30 for half past eight in the morning).
- End time - enter the later time (e.g. 17:15 for quarter past five in the afternoon).
- Crosses midnight? - if the end time is the next day (e.g. night shift from 22:00 to 06:00), tick the checkbox.
- Read the result - the difference appears in three formats: HH:MM:SS, decimal hours, and total minutes.
The midnight problem - and how the calculator solves it
Result: error - end time appears earlier than start time. The calculator cannot guess that you mean the next day.
Result: 08:00:00 (8.00 h, 480 min). Correct - the calculator adds 24 hours to the end time internally.
Practical examples
| Scenario | Start | End | Midnight? | Result |
|---|---|---|---|---|
| Office shift | 08:30 | 17:15 | No | 08:45:00 (8.75 h) |
| Night shift | 22:00 | 06:00 | Yes | 08:00:00 (8.00 h) |
| Lunch break | 12:00 | 12:30 | No | 00:30:00 (0.50 h) |
| Full day | 00:00 | 23:59 | No | 23:59:00 (23.98 h) |
| Short meeting | 14:00 | 14:45 | No | 00:45:00 (0.75 h) |
| Late night coding | 21:30 | 02:15 | Yes | 04:45:00 (4.75 h) |
| Same time | 10:00 | 10:00 | No | 00:00:00 (0.00 h) |
Output formats explained
| Format | Example | Best for |
|---|---|---|
| HH:MM:SS | 08:45:00 | Human-readable display, timesheets |
| Decimal hours | 8.75 h | Payroll, billing, spreadsheets (multiply by rate directly) |
| Total minutes | 525 min | Scheduling software, cooking timers, project tracking |
FAQ
Related tools
Time Sum Calculator
Add up to five time durations and get the total in multiple formats - Open calculator
Day Counter
Count days remaining to a future date or elapsed since a past event - Open calculator
Age Calculator
Calculate your exact age in years, months, and days from date of birth - Open calculator
Date Difference Calculator
Find the exact gap between any two dates in days, weeks, and months - Open calculator