Add or Subtract Time Calculator (Hours, Minutes)

Add or subtract hours, minutes, and seconds from a starting time of day.
Returns the new time in 24-hour and 12-hour format and flags when it crosses midnight.

Resulting Time

Adding and subtracting clock time is not the same as adding numbers

The catch with time is that it does not run on base 10. There are 60 seconds in a minute, 60 minutes in an hour, and 24 hours in a day. So 50 minutes plus 20 minutes is not 70 minutes on the clock, it is 1 hour and 10 minutes. The reliable way to do time math is to convert everything to one unit, do plain arithmetic, then convert back.

The method this calculator uses

  1. Turn the starting time into total seconds since midnight: hours times 3600, plus minutes times 60, plus seconds.
  2. Do the same for the amount you are adding or subtracting.
  3. Add or subtract the two totals.
  4. Wrap the result into a single day using a remainder by 86,400 (the number of seconds in a day), and track how many whole days you crossed.
  5. Convert the leftover seconds back into hours, minutes, and seconds.

Why the day-crossing matters

If it is 10:00 PM and you add 5 hours, the answer is 3:00 AM the next day, not 27:00. This tool reports the wrapped time and tells you the answer landed on the next day (or a previous day, if you subtracted past midnight). That day offset is the part people most often get wrong when doing it in their head.

Worked example

Start at 14:45:00, add 3 hours and 30 minutes. That is 53,100 seconds plus 12,600 seconds = 65,700 seconds, which is 18 hours, 15 minutes, 0 seconds, so 18:15 (6:15 PM), same day.

Where it is handy

Figuring out an arrival time, an end-of-shift time, when a timer or oven will finish, a layover that crosses midnight, or any “what time will it be in X hours” question.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.