Hours and minutes calculator

Enter two time values in hours and minutes, choose add or subtract, and get the result in hours and minutes. This is not a time-of-day clock calculator, does not handle days or seconds, and does not cross midnight.

Time values

Formulas

total_minutes = (hours1 × 60 + minutes1) ± (hours2 × 60 + minutes2)

result_hours = floor(total_minutes / 60)

result_minutes = total_minutes mod 60

Where hours1, minutes1 = first time value; hours2, minutes2 = second time value; operation = 0 for add, 1 for subtract; total_minutes = combined or difference in minutes; result_hours = hours part of result; result_minutes = minutes part of result (0–59).

Minutes inputs are 0–59. Hours can be any non-negative integer.

Subtraction refuses if the first time is less than the second (would give negative result).

Checked examples

2h 30m + 1h 45m = 4h 15m.

5h 20m − 2h 50m = 2h 30m.

3h 45m + 4h 35m = 8h 20m.

Limits

Hours must be non-negative. Minutes must be 0–59. Subtraction is only allowed when the first time is greater than or equal to the second. This does not handle days, seconds, or time-of-day wraparound. Not for: time-of-day or clock arithmetic (e.g., 10:00 PM + 3 hours); days, seconds, or milliseconds; timezone or daylight saving conversions; duration between two clock times.

CalculateHours.com - Time Calculator.