Time Duration Calculator
Calculate the exact duration between two times or date-times. Find total hours, minutes and seconds, convert the result to decimal hours, calculate overnight periods and optionally subtract breaks.
Start & End Time
Choose whether you want to calculate a simple time difference or a duration across specific dates.
Duration Breakdown
This shows the calculated start, end and net elapsed time.
Duration Visual
The bar compares the net duration with a 24-hour period.
How to Use the Time Duration Calculator
Choose Time Only when you simply want to calculate the difference between two times during the same day or across midnight.
Choose Date and Time when the duration spans specific calendar dates.
You can also subtract an unpaid break or excluded period.
The calculator shows:
- Duration in days, hours, minutes and seconds;
- Total hours;
- Decimal hours;
- Total minutes;
- Total seconds;
- Gross duration;
- Break time deducted; and
- Net duration after breaks.
How Do You Calculate Time Duration?
The basic calculation is:
If the end time is on the following day, the calculation must also account for crossing midnight.
Time Duration Example
Suppose the start time is:
9:00 AM
and the end time is:
5:30 PM
The gross duration is:
8 hours 30 minutes
If a 30-minute unpaid break is deducted:
8 hours 30 minutes − 30 minutes = 8 hours
How to Calculate Hours Between Two Times
Convert both times into a common unit such as minutes or seconds, subtract the starting value from the ending value and convert the result back to hours and minutes.
For example, 9:15 AM to 1:45 PM is:
How to Calculate an Overnight Time Duration
An overnight period occurs when the end time is earlier on the clock than the start time.
For example:
- Start: 10:00 PM;
- End: 6:00 AM.
The end time occurs on the following day, giving a duration of:
Enable the overnight option when using Time Only mode.
How to Calculate Time Across Multiple Days
Use the Date and Time mode.
The calculator combines the selected date with the selected time and calculates the elapsed period between the two complete timestamps.
This can be useful for:
- Travel duration;
- Project elapsed time;
- Shift duration;
- Equipment usage;
- Parking duration;
- Events; and
- general date-time calculations.
What Are Decimal Hours?
Decimal hours express minutes as a fraction of an hour.
Examples:
- 30 minutes = 0.5 hours;
- 15 minutes = 0.25 hours;
- 45 minutes = 0.75 hours;
- 1 hour 30 minutes = 1.5 hours; and
- 7 hours 45 minutes = 7.75 hours.
Why Are Decimal Hours Useful?
Decimal hours are commonly useful for:
- Timesheets;
- Payroll calculations;
- Billing;
- contractor invoices;
- project tracking; and
- productivity reporting.
How to Convert Minutes to Decimal Hours
For example:
90 minutes ÷ 60 = 1.5 hours
How to Convert Hours to Minutes
For example:
8 hours × 60 = 480 minutes
How to Convert Minutes to Seconds
Therefore:
30 minutes = 1,800 seconds
How to Convert Hours to Seconds
One hour therefore contains:
3,600 seconds
Can I Subtract a Lunch Break?
Yes. Enable Subtract a Break and enter the break duration.
The calculator first determines the gross elapsed time and then subtracts the break.
Time Duration Calculator for Work Shifts
The calculator can be used as a general shift-duration tool.
For example:
- Start: 7:30 AM;
- Finish: 4:00 PM;
- Lunch break: 30 minutes.
Gross duration:
8 hours 30 minutes
Net duration:
8 hours
For more detailed timesheet calculations, use the Hours Worked Calculator.
Time Duration Calculator for Overnight Shifts
This calculator can handle shifts that cross midnight.
For example:
- Start: 8:00 PM;
- End: 4:30 AM.
With overnight calculation enabled, the duration is:
8 hours 30 minutes
Time Duration vs Hours Worked
Time duration measures elapsed time between two points. Hours worked may involve additional rules such as:
- Unpaid meal breaks;
- Paid breaks;
- overtime;
- penalty rates;
- shift allowances; and
- rounding rules.
This calculator focuses on elapsed time and optional break deduction rather than payroll entitlements.
Can I Calculate More Than 24 Hours?
Yes. Choose Date and Time mode and enter dates that span multiple days.
The result will include the number of complete days plus any remaining hours, minutes and seconds.
Can I Calculate Seconds Between Two Times?
Yes. The total seconds result shows the complete calculated duration in seconds.
The time inputs also support seconds where your browser provides second-level time entry.
Can I Calculate a Duration Without Dates?
Yes. Use Time Only mode.
If the end time is earlier than the start time and the overnight option is enabled, the calculator assumes that the end time occurs on the following day.
Does the Calculator Use 12-Hour or 24-Hour Time?
The displayed time-entry interface depends on your browser and device. Internally, the calculator works with standard time values and can calculate either format correctly.
What Happens If My Break Is Longer Than the Duration?
The calculator will not return a negative net duration. If the break entered is longer than the gross duration, the net duration is limited to zero.
Time Duration Calculator Assumptions
This calculator assumes:
- Entered start and end values are accurate;
- Time-only overnight calculations span no more than one additional day;
- Date-and-time mode uses the local browser calendar;
- Break time is fully deducted when enabled;
- No daylight-saving timezone conversion is performed between locations;
- No payroll rounding rules are applied;
- No penalty rates or overtime are calculated; and
- Results are general time calculations only.
Related Date & Work Calculators
Time Duration Calculator FAQs
How do I calculate the duration between two times?
Enter the start time and end time. The calculator subtracts the start from the end and displays the elapsed hours, minutes and seconds.
Can I calculate a time period that crosses midnight?
Yes. In Time Only mode, enable the overnight option so an earlier end time is treated as occurring on the following day.
Can I subtract a lunch break?
Yes. Enable the break option and enter the break hours and minutes. The break is deducted from the gross duration.
What are decimal hours?
Decimal hours express minutes as part of an hour. For example, 7 hours 30 minutes equals 7.5 decimal hours.
Can I calculate a duration longer than one day?
Yes. Select Date and Time mode and choose the relevant start and end dates.
Can the calculator show total minutes and seconds?
Yes. It displays total hours, decimal hours, total minutes and total seconds.