Time Calculator
Add two stretches of time or subtract a break from a longer session. Enter hours and minutes, with seconds if you need them, and get both a clock-style duration and decimal hours.
Loading the calculator. It runs in your browser, so JavaScript needs to be on.
How to use the Time Calculator
- Choose Add durations or Subtract durations. Subtraction takes the second duration away from the first.
- Enter First duration and Second duration as H:MM or H:MM:SS. For example, type 2:05 for two hours and five minutes.
- Read Total duration, then use Decimal hours if a timesheet wants a number such as 2.5 instead of 2:30.
- Copy result to keep the total and its breakdown, or use Reset to restore the example.
The formula
Convert each duration into seconds: S = 3,600 × hours + 60 × minutes + seconds. Add or subtract the two S values. Divide the result by 3,600 for decimal hours or by 60 for total minutes. The clock-style answer groups the absolute total into hours, minutes, and seconds and preserves a negative sign.
Worked example
Adding 2:45 and 1:30 gives 4:15:00. That is 255 minutes, 15,300 seconds, or 4.25 decimal hours. Subtracting 1:30 from 1:00 gives -0:30:00, because the second duration is thirty minutes longer.
Why 1:30 is not 1.30 hours
Minutes use a base of 60. Thirty minutes is 30/60 of an hour, so 1:30 means 1.5 hours. In contrast, 1.30 decimal hours is one hour and eighteen minutes. Copy the Decimal hours row into a spreadsheet that expects numeric hours; use the main result when you need a readable duration.
Long sessions keep their full hour count
This calculator measures elapsed durations, not times on a daily clock. Adding 23:59:59 and 0:00:01 produces 24:00:00. It does not roll over to midnight or guess which calendar day you mean. Hours may have up to nine digits, while minutes and seconds must each stay between 00 and 59.
Subtracting breaks from a shift
For an eight-hour span with a forty-five-minute unpaid break, enter 8:00 and 0:45 in Subtract durations. The result is 7:15:00, or 7.25 hours. This arithmetic does not apply an employer's rounding, overtime, or payroll rules. For dates or clock changes, use a calendar or time-zone calculator instead.
Time Calculator questions
How do I add hours and minutes?
Enter both durations as H:MM and select Add durations. For example, 1:40 plus 0:35 equals 2:15:00.
Can I subtract a longer time from a shorter time?
Yes, the answer will have a minus sign. One hour minus ninety minutes is -0:30:00, or -0.5 decimal hours.
Can I enter seconds without hours?
Use the full format with zero hours and minutes. Forty-five seconds is 0:00:45; entering 0:45 means forty-five minutes.
Does this calculate time between 9 AM and 5 PM?
It adds and subtracts durations rather than interpreting AM and PM. An ordinary 9 AM to 5 PM interval is eight hours before breaks, but a dated interval crossing a clock change needs time-zone information.
Related calculators
- Days Between DatesEnter a start and end date to count calendar days and full weeks. Include both dates when...
- Working Days CalculatorEnter two dates and your holiday list to count Monday-to-Friday working days. See...
- Time Zone ConverterEnter a local date and time, then choose two time zones. See the matching destination...
- Countdown TimerSet a duration in minutes or choose a target date and time. Start, pause, and reset a...
- Pace CalculatorEnter distance and elapsed time to find running pace, or solve for finish time or...