Free tool
Time Calculator
Add and subtract hours, minutes and seconds, find the time between two clock times, or add a duration to a time of day, in clock and decimal hours.
Add or subtract times
- Result (days, hours:minutes:seconds)
- –
- In words
- –
- Decimal hours
- –
- Total minutes
- –
Working: –
Time between two clock times
- Time between
- –
- In words
- –
- Decimal hours
- –
- Total minutes
- –
Working: –
Add or subtract time from a time of day
- Resulting time (24-hour)
- –
- 12-hour clock and day
- –
Working: –
Assumptions and limits
Every figure comes from the numbers you enter. Where a rule of thumb is used, it is labeled as one.
- Every entry is a whole number of 0 or more; blank fields count as 0. One day is exactly 24 hours, one hour is 60 minutes and one minute is 60 seconds.
- Clock times use a 24-hour dial. If the end time is earlier than the start time, the end is on the next day. Equal times give a span of 0.
- Decimal hours = total seconds ÷ 3600. Time zones and daylight saving changes are not applied.
- A subtraction that goes below zero is shown with a minus sign. A time of day that moves past midnight is shown with a next-day or previous-day marker.
- No outside data is used. Every result is arithmetic on the numbers you enter.
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
How the time calculation works
Every time you enter is converted to a whole number of seconds: days × 86,400, hours × 3,600, minutes × 60, plus seconds. The tool adds or subtracts those integers and converts the answer back into days, hours, minutes and seconds with whole-number division and remainders. Working in seconds avoids carrying by hand and avoids decimal rounding, because every figure stays an exact integer until the final step, where decimal hours are shown.
Worked example 1: adding two durations
A task took 2 hours 45 minutes 30 seconds, and a second task took 1 hour 30 minutes 45 seconds.
- First time: 2 × 3,600 + 45 × 60 + 30 = 7,200 + 2,700 + 30 = 9,930 seconds.
- Second time: 1 × 3,600 + 30 × 60 + 45 = 3,600 + 1,800 + 45 = 5,445 seconds.
- Total: 9,930 + 5,445 = 15,375 seconds. 15,375 ÷ 3,600 = 4 remainder 975, and 975 ÷ 60 = 16 remainder 15, so the answer is 4 hours 16 minutes 15 seconds.
- Decimal hours: 15,375 ÷ 3,600 = 4.2708 hours.
The first calculator opens with these numbers so you can check it.
Worked example 2: an overnight span and a time of day
A job starts at 22:15 and ends at 06:40 the next morning.
- 22:15 is 22 × 3,600 + 15 × 60 = 80,100 seconds after midnight. 06:40 is 6 × 3,600 + 40 × 60 = 24,000 seconds after midnight.
- The end is earlier than the start, so it is on the next day: 24,000 + 86,400 = 110,400 seconds.
- Span: 110,400 − 80,100 = 30,300 seconds = 8 hours 25 minutes = 505 minutes = 8.4167 decimal hours.
Now add 8 hours 45 minutes to a 09:30 start: 09:30 is 34,200 seconds, 8:45 is 31,500 seconds, and 34,200 + 31,500 = 65,700 seconds, which is 18:15 the same day. Subtract 2 hours from 01:30 instead: 5,400 − 7,200 = −1,800 seconds, which wraps to 23:30 on the previous day.
Which calculator do you need?
- Add or subtract times for totals of tasks, laps, recordings or work logged in pieces.
- Time between two clock times for a shift, a flight block or a meeting, including those that cross midnight.
- Add or subtract from a time of day for "what time will it be in 3 hours 20 minutes?" and "what time should I start to finish by 17:00?"
Related tools
Adding up a full week with unpaid breaks and overtime? Use the Time Card Calculator. Need whole days between two calendar dates? Use Days Between Dates, and for someone's exact age see the Age Calculator. To run a timer for the span you just worked out, open the Countdown Timer.
Frequently asked questions
How do I add hours and minutes together?
Add the minutes first, then the hours, and carry every 60 minutes into one hour. For 2 hours 45 minutes plus 1 hour 30 minutes, the minutes total 75, which is 1 hour 15 minutes, so the answer is 2 + 1 + 1 = 4 hours 15 minutes. The first calculator above does this for hours, minutes, seconds and days, so you never carry by hand.
How do I subtract one time from another?
Choose "Subtract" in the first calculator and enter the larger time first. Subtracting 1 hour 45 minutes from 3 hours 10 minutes gives 1 hour 25 minutes. If the second time is larger, the answer is negative and is shown with a minus sign, for example -00:30:00, so you can see by how much you fell short.
How do I find the time between two clock times?
Use the second calculator. Enter a start and an end time on a 24-hour clock. If the end is earlier than the start, the tool treats it as the next day, so 22:15 to 06:40 is 8 hours 25 minutes. If both times are equal, the answer is 0, not 24 hours. For a span of 24 hours or more, use the days field in the first calculator.
How do I add hours to a time of day?
Use the third calculator. Enter the starting time and the duration to add or subtract. The result is a clock time plus a day marker. Adding 8 hours 45 minutes to 09:30 gives 18:15 on the same day, while subtracting 2 hours from 01:30 gives 23:30 on the day before, shown as "previous day".
How do I convert minutes to decimal hours?
Divide the minutes by 60. Thirty minutes is 30 ÷ 60 = 0.5 hours, and 25 minutes is 25 ÷ 60 = 0.4167 hours. The results panel shows total hours as a decimal, which is the form most spreadsheets and pay calculations use. Do not read 7:50 as 7.50 hours: 50 minutes is 0.8333 of an hour, so 7:50 is 7.8333 hours.
Does it handle days, daylight saving time or time zones?
It handles days as blocks of exactly 24 hours, and it does not know about time zones or clock changes. A duration of 1 day is always 24 hours here. If you need to cross a daylight saving change or compare cities, work out the clock times for each place first, then use this tool for the arithmetic.
Is there a limit on how large the times can be?
Each entry must be a whole number of 0 or more, and a single duration cannot exceed about 31 years, which is far more than most tasks need. Fractions are not accepted, so enter 90 minutes rather than 1.5 hours, or enter 1 hour and 30 minutes. Blank fields count as 0.
Is anything I enter stored or sent anywhere?
No. Every calculation runs in your browser, and the numbers you type are not stored or sent to our servers. The page records only that the tool was used, without any of the values you entered.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all everyday calculators or the full list of free tools.
- Age CalculatorFind exact age in years, months and days, total days lived, and the date and countdown to the next birthday, with leap days and month ends handled.
- Countdown TimerSet a timer in hours, minutes and seconds, or count down to a date and time. It reads the clock rather than counting ticks, with an optional sound.
- Random Number GeneratorGenerate random integers or decimals between any minimum and maximum, with unique draws and sorting. Uses crypto.getRandomValues with no modulo bias.
- Wheel SpinnerType your own names or options, spin the wheel and get a fair random pick, with an optional remove-the-winner mode and a history of spins.
- Square Footage CalculatorFind the area of a room, L-shape, triangle, circle or trapezoid in square feet, yards and meters, with a waste allowance and a package count.
- Concrete CalculatorEstimate concrete for slabs, footings, columns and steps in cubic yards and meters, with a waste allowance and bag counts from the yield you enter.