Time Calculator

· How we calculate · Free, no sign-up

Quick answer

Convert each time to seconds, add or subtract, then convert back: hours = total ÷ 3600, minutes = remainder ÷ 60. If an end time is earlier than the start, add 24 hours. Example: 22:00 to 06:30 is 8 hours 30 minutes.

Add and subtract durations in days, hours, minutes and seconds, find the time between two clock times, even across midnight, or work out what time it will be after a given duration.

Decimals are allowed (e.g. 1.5 hours). Rows are saved in this browser.

How to use the time calculator

How time is calculated

All values are converted to seconds, combined, and converted back. Clock times wrap around every 24 hours (86,400 seconds).

Seconds = days × 86,400 + hours × 3,600 + minutes × 60 + seconds Duration = end − start (if negative and no dates: + 86,400, i.e. next day) New time = (start + duration) mod 86,400 Day offset = ⌊(start + duration) ÷ 86,400⌋

Worked examples

CalculationResult
2 h 45 m + 1 h 30 m 30 s − 20 m3h 55m 30s = 3.925 hours = 235.5 minutes = 14,130 seconds
09:00 → 17:308h 30m = 8.5 hours (510 minutes)
22:00 → 06:15 (no dates)8h 15m, ending the next day
22:30 + 3 h 45 m02:15:00 (2:15 AM), +1 day
08:15 − 9 h 30 m22:45:00 (10:45 PM), −1 day

Minutes to decimal hours

Payroll and billing systems often need decimal hours. Divide minutes by 60:

MinutesDecimal hoursMinutesDecimal hours
60.10300.50
100.1667400.6667
150.25450.75
200.3333500.8333

Common uses

Good to know

Embed this calculator on your website — free

Copy this code into your page. The calculator stays up to date automatically and resizes to fit.

Frequently asked questions

How do I add hours and minutes together?

Convert everything to seconds (or minutes), add, then convert back. 2 h 45 m + 1 h 30 m 30 s − 20 m = 9,900 + 5,430 − 1,200 = 14,130 seconds = 3 h 55 m 30 s, or 3.925 hours. The “Add / subtract durations” tab does this for any number of rows.

How do I calculate time between two times that cross midnight?

If the end time is earlier than the start time, the end is taken to be on the next day, so 24 hours are added. For example, 22:00 to 06:15 is 8 hours 15 minutes. To measure spans longer than a day, fill in both optional dates.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 30 minutes = 0.5 h, 15 minutes = 0.25 h and 45 minutes = 0.75 h, so 8 h 45 m is 8.75 hours. The calculator shows every result in decimal hours, total minutes and total seconds.

What time will it be 3 hours 45 minutes after 10:30 PM?

10:30 PM (22:30) + 3 h 45 m = 26:15, which is 02:15 (2:15 AM) on the next day. The “Add to a clock time” tab shows the new time and the day offset, such as “+1 day”.

Does the calculator account for daylight saving time?

No. Durations between clock times are measured in wall-clock time, so on the night the clocks change, the real elapsed time can be one hour more or less than shown.