Time Calculator

Add or subtract hours, minutes and seconds from any time โ€” or find the exact difference between two times. Perfect for calculating work hours, elapsed time, countdowns and scheduling. Fast, free and works on any device.

Add or Subtract Time

Start Time

Operation

Hours

Minutes

Seconds

Result Time

Hours (24h)
Minutes
Seconds

How the Time Calculator Works

This calculator has two modes. Add / Subtract takes a starting time and adds or removes hours, minutes and seconds to give you a resulting clock time. Time Difference computes the exact duration between any two times of day, including overnight periods that cross midnight.

Add / Subtract Formula

Total Seconds = (Start Hours ร— 3600) + (Start Minutes ร— 60) + Start Seconds
Delta Seconds = (Hours ร— 3600) + (Minutes ร— 60) + Seconds
Result Seconds = Total Seconds ยฑ Delta Seconds

Result Hours = โŒŠResult Seconds รท 3600โŒ‹ mod 24
Result Minutes = โŒŠ(Result Seconds mod 3600) รท 60โŒ‹
Result Seconds = Result Seconds mod 60

All arithmetic is performed in total seconds to avoid rounding errors. The result wraps around the 24-hour clock automatically, and the calculator notes if the result falls on the next or previous day.

Time Difference Formula

Start Seconds = (Start Hours ร— 3600) + (Start Minutes ร— 60) + Start Seconds
End Seconds = (End Hours ร— 3600) + (End Minutes ร— 60) + End Seconds
+ (86400 if crossing midnight)

Diff Seconds = End Seconds โˆ’ Start Seconds
Total Hours = โŒŠDiff Seconds รท 3600โŒ‹
Total Minutes = โŒŠDiff Seconds รท 60โŒ‹
Decimal Hours = Diff Seconds รท 3600

Decimal Hours

Decimal hours express a duration as a single number rather than hours and minutes. For example, 1 hour 30 minutes equals 1.5 decimal hours. This format is widely used in payroll, billing and timesheet systems where fractional hours need to be multiplied by an hourly rate.

What Is a Time Calculator Used For?

A time calculator performs arithmetic on hours, minutes and seconds โ€” removing the mental effort of carrying over minutes and seconds manually. Whether you are calculating work hours, travel durations or scheduling events, it delivers an instant and accurate result.

Common Uses

Why Manual Time Arithmetic Is Tricky

Time uses a base-60 system โ€” 60 seconds make a minute, 60 minutes make an hour โ€” rather than the base-10 system used for ordinary arithmetic. This means you cannot simply add or subtract time values as if they were regular numbers. Adding 45 minutes to 10:30 requires carrying 15 minutes into the next hour to get 11:15, not 10:75. A time calculator handles all of this automatically.

Understanding the 12-Hour vs 24-Hour Clock

The calculator works internally in the 24-hour format (00:00 to 23:59) and displays results in both 24-hour and 12-hour (AM/PM) formats. Midnight is 00:00 and noon is 12:00. When a result crosses midnight, the calculator notes whether it falls on the next or previous day.

Frequently Asked Questions

How do I calculate the number of hours between two times? +

Switch to the "Time Difference" tab, enter your start time and end time, then click Calculate Difference. The result shows the total hours, total minutes, total seconds and decimal hours between the two times.

How do I calculate time that crosses midnight? +

In the "Time Difference" tab, tick the checkbox labelled "End time is on the next day". This adds 24 hours to the end time before calculating, so a shift from 22:00 to 06:00 correctly returns 8 hours rather than a negative value.

What are decimal hours and how do I use them? +

Decimal hours express a time duration as a single number. For example, 2 hours 15 minutes = 2.25 decimal hours. To calculate pay, multiply decimal hours by your hourly rate. Most payroll and invoicing systems use decimal hours rather than hours and minutes.

What happens when I add time that goes past midnight? +

In the "Add / Subtract" tab, if the result exceeds 23:59:59, the calculator wraps around to the correct time on the next day and displays a note indicating the result is on the following day. Similarly, subtracting past 00:00:00 wraps back to the previous day.

How many minutes is 1.5 hours? +

1.5 hours equals 90 minutes. To convert decimal hours to minutes, multiply by 60. To convert minutes to decimal hours, divide by 60. For example, 45 minutes รท 60 = 0.75 decimal hours.

Can I calculate hours worked across multiple shifts? +

Yes. Calculate the duration of each shift separately using the Time Difference tab, note the result for each, then use the Add / Subtract tab to add each shift duration together. Start from 00:00:00 and add each shift in turn to accumulate the total hours worked.

Is the time calculator free to use? +

Completely free. There is no sign-up, no account, no tracking and no hidden costs. You can use the calculator as many times as you like on any device.

Related Calculators