Home / Other Calculators / Time Calculator

Date & Time

Time Calculator

Add or subtract two durations in hours, minutes, and seconds. The total is also shown in decimal hours, total minutes, and total seconds.

First duration

Second duration

Result

4:16:15

Decimal hours—
Total minutes—
Total seconds—

How it works

Each duration is converted to total seconds, combined, and then converted back to hours, minutes, and seconds. Because there are 60 seconds in a minute and 60 minutes in an hour, any overflow carries up cleanly.

total seconds = h×3600 + m×60 + s
decimal hours = total seconds ÷ 3600

Worked example

2:45:30 plus 1:30:45 is 9,930 + 5,445 = 15,375 seconds, which is 4 hours, 16 minutes, and 15 seconds, or 4.27 decimal hours.

Adding and subtracting time by hand

Doing time math on paper works like ordinary column addition, except each column carries at 60 instead of 10.

Adding with carries

Line up hours, minutes and seconds: 2:45:30 + 1:30:45 gives 3 hours, 75 minutes and 75 seconds. 75 seconds is 1 minute 15 seconds, so carry the minute: 3:76:15. 76 minutes is 1 hour 16 minutes, so carry the hour: 4:16:15.

Subtracting with borrowing

For 5:10:00 − 2:35:20, the seconds column can't take 20 from 0, so borrow one minute (60 seconds): 5:09:60 − 2:35:20. The minutes column can't take 35 from 9, so borrow one hour (60 minutes): 4:69:60 − 2:35:20 = 2:34:40.

Times that cross midnight

For clock times that cross midnight, such as 11:30 PM to 2:15 AM, add 24 hours to the end time first: 26:15 − 23:30 = 2 hours 45 minutes. To total a long list of lap or task times, convert each to seconds, add them, then convert back. That avoids carrying mistakes.

Minutes to decimal hours for payroll

Payroll systems and invoices usually want hours as decimals, not hours and minutes. Divide the minutes by 60. Many employers round to the nearest quarter hour (in the US, the FLSA allows rounding to the nearest 5, 6 or 15 minutes as long as it evens out over time).

MinutesDecimal hoursMinutesDecimal hours
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Example: a weekly timesheet

Shifts of 7:45, 8:20, 6:50, 8:05 and 7:30 add up to 36 hours and 150 minutes, which is 38 hours 30 minutes, or 38.5 decimal hours. At $22.00 an hour that's 38.5 × 22 = $847.00. A common mistake is to type 38.30 into a spreadsheet, which underpays by 12 minutes.

Multiplying and dividing durations

The same seconds-based method works for multiplying and dividing:

For running and cycling paces, the pace calculator does the distance and speed math for you.

12-hour and 24-hour clocks

For times from 1 PM onward, add 12 to the hour to get 24-hour time: 3:20 PM is 15:20. 12:xx AM becomes 00:xx and 12:xx PM stays 12:xx. Doing time math in 24-hour format avoids most AM/PM mistakes, especially with overnight shifts.

Watch for time zones and daylight saving

Durations calculated from clock times can be off by an hour if a daylight-saving change falls in between. A shift from 10 PM to 6 AM on the night the clocks go back is 9 hours long, not 8. For flights, convert both times to the same time zone (or to UTC) before subtracting.

Time unit conversions

UnitSecondsMinutesHours
1 minute6010.0167
1 hour3,600601
1 day86,4001,44024
1 week604,80010,080168
1 year (365 days)31,536,000525,6008,760

Where adding durations comes up

Durations longer than a day

Totals of 24 hours or more stay in hours by default, so 18:30:00 + 9:45:00 = 28:15:00. To express that as days, divide the hours by 24: 28 hours 15 minutes is 1 day, 4 hours and 15 minutes.

Decimal hours to minutes

To turn decimal hours back into minutes, multiply the decimal part by 60: 3.4 hours = 3 hours + 0.4 × 60 = 3 hours 24 minutes. A common payroll mistake is reading 3.4 hours as 3 hours 40 minutes.

Frequently asked questions

How do I add two times?

Enter both durations and add, seconds carry into minutes and minutes into hours automatically.

How do I get decimal hours?

Divide total minutes by 60 and add whole hours. 2h 30m = 2.5 decimal hours; the calculator shows it for you.

How do I add hours and minutes?

Add the hours and minutes separately, then carry every 60 minutes into an hour. 1:45 + 2:30 = 3:75 = 4:15.

How do I calculate time across midnight?

Add 24 hours to the later time before subtracting. 11:30 PM to 2:15 AM is 26:15 − 23:30 = 2:45.

How do I convert decimal hours to hours and minutes?

Keep the whole number as hours and multiply the decimal part by 60 for minutes. 7.75 hours = 7 hours 45 minutes.

How many hours is 9 AM to 5:30 PM?

8 hours 30 minutes (17:30 − 9:00), or 8.5 decimal hours before any unpaid break is taken off.

How many minutes are in a day?

1,440 minutes (24 × 60), or 86,400 seconds.

Related calculators