Time Duration Calculator
Calculate elapsed hours and minutes between two times, including overnight.
How many hours are there between two times?
The duration between two times is the end time minus the start time, carrying over midnight when the end time is earlier.
Formula: Duration = end time − start time. Midnight crossing adds 24 hours when the end time is earlier.
What this calculator does
Enter start and end times to calculate duration in hours, minutes, and decimal hours.
Use it to turn Start time, End time, When the end is earlier, Time format into a checked result you can compare, copy, or rerun with different assumptions.
The page shows the formula, a numeric worked example, and the assumptions that affect this everyday calculation.
Inputs and what they mean
- Start time
- — time value.
- End time
- — time value.
- When the end is earlier
- — choice value.
- Time format
- — 12 or 24 hour value.
How to use it
- Choose start and end times.
- Choose whether an earlier end is negative or crosses midnight.
- Read hours, minutes, and decimal hours.
Formula
Duration = end time − start time. Midnight crossing adds 24 hours when the end time is earlier.
Inputs used: Start time, End time, When the end is earlier, Time format.
Edge handling: Start time is required.; Start time must use a valid clock time.; End time is required.; End time must use a valid clock time..
Worked example
Overnight shift
- Start with Start time: 22:30, End time: 06:15, When the end is earlier: overnight.
- Apply the method: Duration = end time − start time. Midnight crossing adds 24 hours when the end time is earlier.
- 10:30 PM to 6:15 AM lasts 7 hours 45 minutes.
Reading the result
The headline figure is the main answer. Any breakdown underneath shows the parts that make it up, so you can check the working and see what changes when you adjust an input.
Limitations and assumptions
- Inputs outside the supported range are rejected rather than forced into a result.
- The result depends on the values you enter for this time duration calculator; it does not supply missing rates, rules, prices, dates, or assumptions for you.
Common questions
How many hours are there between two times?
The duration between two times is the end time minus the start time, carrying over midnight when the end time is earlier. Check the formula, example, and limitations on this page before using the result for a real everyday decision.
Can the duration be negative?
Yes. Choose Show negative when an earlier end should remain signed.
How are overnight times handled?
Choose Cross midnight to add one day when the end is earlier. Check the formula, example, and limitations on this page before using the result for a real everyday decision.
How do I use the Time Duration Calculator?
Enter the required values for Start time, End time, When the end is earlier, Time format. The calculator applies the formula on this page and shows the main result with any supporting breakdown so you can check the arithmetic.
What formula does the Time Duration Calculator use?
Duration = end time − start time. Midnight crossing adds 24 hours when the end time is earlier. The visible formula section above lists the calculation path and the edge cases the page handles, so the result can be checked without relying on the form alone.
Can the Time Duration Calculator be used for exact decisions?
Use it as a calculation aid, not as a substitute for checking the underlying rule, contract, policy, or professional advice that applies to your situation. When a result depends on local rules, personal details, prices, or dates, enter those values yourself and confirm them before acting.
Cite this page
Free Calculator. (n.d.). Time Duration Calculator. https://freecalculator.tech/tools/time-duration-calculator
"Time Duration Calculator." Free Calculator, https://freecalculator.tech/tools/time-duration-calculator.
Time Duration Calculator — Free Calculator, https://freecalculator.tech/tools/time-duration-calculator