Time Calculator

Add or subtract hours, minutes, and seconds. Calculate duration between two times. Enter values in any combination — the calculator handles overflow and conversion automatically. 100% browser-based.

Ad Space

A time calculator is a free, browser-based tool that adds or subtracts durations in hours, minutes, and seconds, and measures the elapsed time between two clock times. It converts each entry to total seconds, does the arithmetic, and returns the answer in h:m:s, digital HH:MM:SS, total seconds, total minutes, and decimal hours for timesheets. Updated 2026-08-11.

How the Time Calculator Works

This time calculator lets you add or subtract time durations expressed in hours, minutes, and seconds. It converts everything to total seconds internally, performs the arithmetic, then converts back to a readable hours:minutes:seconds format. The calculator handles overflow automatically — for example, 75 minutes becomes 1 hour and 15 minutes.

You can use this for calculating total work hours, adding up exercise durations, figuring out cooking times, computing travel durations, or any situation where you need to add or subtract time values. Enter the first time, choose add or subtract, enter the second time, and get your result instantly.

Time Calculation Method

Total Seconds = (Hours × 3600) + (Minutes × 60) + Seconds

Result = Time 1 Total Seconds ± Time 2 Total Seconds

Hours = floor(Result / 3600), Minutes = floor(Remainder / 60), Seconds = Remainder

Where:

  • 3600 = seconds in one hour
  • 60 = seconds in one minute
  • Negative results are shown with a minus sign

Example Calculations

Example 1: Add Two Work Shifts

Morning shift: 4 hours 30 minutes + Afternoon shift: 3 hours 45 minutes

  • Time 1: 4h 30m 0s = 16,200 seconds
  • Time 2: 3h 45m 0s = 13,500 seconds
  • Total: 29,700 seconds = 8 hours 15 minutes 0 seconds

Example 2: Subtract Break Time

Total shift: 8 hours 0 minutes − Lunch break: 0 hours 45 minutes

  • Time 1: 8h 0m 0s = 28,800 seconds
  • Time 2: 0h 45m 0s = 2,700 seconds
  • Result: 26,100 seconds = 7 hours 15 minutes 0 seconds

Example 3: Add Race Lap Times

Lap 1: 1 minute 32 seconds + Lap 2: 1 minute 28 seconds

  • Time 1: 0h 1m 32s = 92 seconds
  • Time 2: 0h 1m 28s = 88 seconds
  • Total: 180 seconds = 0 hours 3 minutes 0 seconds

Duration Between Two Clock Times (Including Overnight Shifts)

Set the Operation dropdown to Duration between two clock times and the two entries stop being durations and become points on a 24-hour clock. Enter 22 h 30 m as Time 1 and 6 h 15 m as Time 2 and the answer is 7 hours 45 minutes, not a negative number — an end time earlier than the start is read as the next day, which is what an overnight shift actually is. Enter clock times in 24-hour form: 9:15 AM is 9 h 15 m, and 5:30 PM is 17 h 30 m. The result also reports decimal hours (7.75), which is the format US payroll systems expect; the US Department of Labor recordkeeping rules (Fact Sheet 21) require employers to keep the hours worked each day and each workweek, so this is the number that belongs on the timesheet.

Common Uses for Time Calculation

Time calculators are used daily by employees tracking work hours, runners adding lap times, cooks combining recipe preparation and cooking durations, project managers estimating task completion, students calculating study time, and travelers adding flight durations with layovers. Any scenario where you need to combine or compare time durations benefits from a simple time calculator.

Entering PM and Military Time in the Time Calculator

The Time 1 and Time 2 boxes use the 24-hour clock, so an afternoon time has to be entered as its 24-hour value or the answer comes out wrong. The rule is simple: for any PM time except noon, add 12 to the hour. 1 PM is 13, 5 PM is 17, 9:15 PM is 21 h 15 m, and 11:45 PM is 23 h 45 m. Going the other way, 12 AM (midnight) is 0, and 12 PM (noon) stays 12 — those two are the pair people reverse most often. Military and 24-hour notation drop the colon, so "1730" means 17 h 30 m, and "0045" means 0 h 45 m. The United States civil day officially starts at 00:00:00 and runs to 23:59:59, as defined by the NIST Time and Frequency Division. If your shift crosses midnight, enter both times as 24-hour values and switch the Operation dropdown to "Duration between two clock times" — the calculator rolls over to the next day instead of returning a negative. Updated 2026-08-18.

Converting Time to Decimal Hours for Payroll

Payroll systems do not accept 7 hours 45 minutes — they want 7.75. The conversion is one division: take the minutes, divide by 60, and add the result to the hours. So 7h 45m becomes 7 + (45 ÷ 60) = 7.75, 6h 20m becomes 6 + (20 ÷ 60) = 6.33, and 8h 10m becomes 8.17. The mistake that costs real money is writing 7.45 for 7h 45m — that is 7 hours 27 minutes, and repeated across a fortnightly timesheet it quietly removes close to an hour of paid work.

The quick reference for common minute values: 5m = 0.08, 10m = 0.17, 15m = 0.25, 20m = 0.33, 30m = 0.50, 40m = 0.67, 45m = 0.75, 50m = 0.83. Add the duration in this calculator first, then convert the total once at the end rather than converting each shift — converting early and rounding each line is where cumulative error creeps in.

On rounding: US employers may record time in quarter-hour increments, but under 29 CFR § 785.48 the practice is only lawful if it averages out neutrally over time — rounding that consistently favours the employer is not permitted. The common compliant pattern is the 7-minute rule: minutes 1-7 past a quarter round down, minutes 8-14 round up. Keep the exact clock times as well as the rounded figure, since the exact record is what settles a dispute. Updated 2026-08-26.

Hours, Minutes and Seconds Calculator

Used as an hours, minutes and seconds calculator, this tool takes three separate boxes per entry instead of one clock field, so you never have to normalise your numbers first. Type 2 h 90 m 200 s and it returns 3 h 33 m 20 s — the overflow is carried automatically because every entry is converted to total seconds before the arithmetic runs. That total-seconds figure is reported back to you as its own line, which is what you want when a query is really "calculate seconds": 1 h 45 m 30 s is 6,330 seconds. The second is the SI base unit of time and is defined by the caesium-133 hyperfine transition frequency of 9,192,631,770 Hz, per the BIPM SI definition of the second; every conversion on this page is an exact integer multiple of it, so nothing here is a rounded approximation. Minutes and seconds on their own work the same way — leave the hours boxes at 0 and the calculator behaves as a minutes-and-seconds calculator for lap times, podcast segments or race splits. Updated 2026-09-09.

Why Your Timesheet Total Differs From This Calculation

People often reach this calculator because a payroll total did not match the hours they worked, and rounding is usually the reason rather than an error. Many US employers record clock-in and clock-out to the nearest quarter hour instead of the exact minute. Under the federal rule that practice is permitted only where it is neutral over time — rounding that consistently favours the employer, so that workers are never fully paid for the time they actually worked, is not allowed. The practical effect is that a shift from 8:58 to 17:04 may be paid as 9:00 to 17:00, and a handful of those across a fortnight is enough to explain a missing quarter of an hour on the payslip. The calculator above gives you the exact figure to the minute, and the decimal-hours conversion gives you the number payroll systems actually work in, so you can put a precise total next to the rounded one before raising it. Keep your own record of real clock times; a dispute is settled on what was worked, not on what the terminal rounded it to. Source: U.S. Department of Labor — Wage and Hour Division, FLSA. Updated 2026-09-18.

Time Conversion Reference

For quick reference: 1 hour = 60 minutes = 3,600 seconds. 1 day = 24 hours = 1,440 minutes = 86,400 seconds. 1 week = 168 hours. When a result runs past 24 hours the calculator keeps showing the running total in hours (e.g., 26 hours 15 minutes), which is what timesheets need, and adds a separate Days · Hours · Minutes line so a long total like 390 hours is also readable as 16 d 6 h 0 m without a second calculation.

Frequently Asked Questions

Why does my timesheet show fewer hours than I worked?

Usually rounding. Many employers record clock times to the nearest quarter hour rather than the exact minute, so 8:58 to 17:04 can be paid as 9:00 to 17:00. Federal rules allow rounding only where it is neutral over time and does not systematically underpay. Work out the exact total to the minute with the calculator above, convert it to decimal hours, and compare it with the paid figure before raising it.

How do I convert minutes to decimal hours for payroll?

Divide the minutes by 60. Fifteen minutes is 0.25, twenty is 0.33, thirty is 0.5, forty-five is 0.75. Payroll systems multiply the hourly rate by decimal hours, not by hours and minutes, which is why 7 hours 20 minutes is entered as 7.33 rather than 7.20 — entering 7.20 quietly shortchanges eight minutes on every shift.

Can I add more than two time values?

This calculator handles two time values at once. To add three or more times, calculate the first two, then use the result as Time 1 and enter the third value as Time 2. Repeat as needed.

What happens if I subtract a larger time from a smaller one?

The result will be negative, shown with a minus sign. For example, 2 hours minus 3 hours gives −1 hour. This is useful for calculating time deficits or overruns.

Can I enter more than 60 minutes or 60 seconds?

Yes. The calculator converts everything to total seconds internally, so entering 90 minutes is the same as entering 1 hour and 30 minutes. It handles all overflow automatically.

What is decimal hours?

Decimal hours express time as a single number with decimals instead of hours:minutes:seconds. For example, 1 hour 30 minutes = 1.5 decimal hours. This format is commonly used in timesheets and payroll systems.

Is this accurate for payroll time tracking?

Yes. The calculator is precise to the second. For payroll, use the decimal hours output which is the standard format for timesheet calculations. Always verify with your company's payroll rounding rules.

How do I calculate the duration between two times?

Set the Operation dropdown to "Duration between two clock times", then enter your start time as Time 1 and your end time as Time 2 using the 24-hour clock — 9:15 AM is 9 hours 15 minutes, and 5:30 PM is 17 hours 30 minutes. The calculator returns the elapsed time in h:m:s, digital HH:MM:SS, and decimal hours.

How do I enter a PM time in the time calculator?

Add 12 to the hour for any PM time except noon. 1 PM is 13, 5:30 PM is 17 h 30 m, and 9:15 PM is 21 h 15 m. Midnight (12 AM) is 0 and noon (12 PM) stays 12 — those two are the ones most often reversed. The Time 1 and Time 2 boxes use the 24-hour clock, so entering 5 for 5 PM gives the wrong answer.

Can I use military time like 1730 in this calculator?

Yes, just split it. Military time drops the colon, so 1730 means 17 hours 30 minutes: type 17 in the hours box and 30 in the minutes box. 0045 is 0 hours 45 minutes. The result is shown in both h:m:s and HH:MM:SS digital format, so you can read it back in the same notation.

Does the time calculator handle overnight shifts past midnight?

Yes. In "Duration between two clock times" mode, an end time earlier than the start time is treated as the next day rather than a negative result. A shift from 22:30 to 06:15 returns 7 hours 45 minutes and the result is labelled "next day" so you can confirm it read your shift correctly.

How do I convert 7 hours 45 minutes to decimal hours?

Divide the minutes by 60 and add them to the hours: 7 + (45 / 60) = 7.75. Common values are 15m = 0.25, 20m = 0.33, 30m = 0.50, 40m = 0.67 and 45m = 0.75. Do not write 7.45 for 7h 45m — that means 7 hours 27 minutes, and across a fortnightly timesheet the difference removes close to an hour of paid work.

How do I use this as an hours, minutes and seconds calculator?

Each entry has its own hours, minutes and seconds box, so you type the three parts separately and never have to normalise them first. Values over 60 are fine: 2 h 90 m 200 s is accepted and returns 3 h 33 m 20 s, because every entry is converted to total seconds before the arithmetic runs. Leave the hours boxes at 0 and it works as a plain minutes-and-seconds calculator for lap times or race splits.

How do I calculate total seconds from hours and minutes?

Multiply the hours by 3,600, the minutes by 60, and add the seconds. So 1 h 45 m 30 s = 3,600 + 2,700 + 30 = 6,330 seconds. The calculator reports this as its own "Total Seconds" line on every result, so you do not have to do the multiplication yourself.

Does the result show days as well as hours?

Yes, once the total passes 24 hours. The main result stays in running hours because that is what timesheets need — 390 hours stays 390 hours — and a separate "Days · Hours · Minutes" line appears alongside it reading 16 d 6 h 0 m, so you can check a long total at a glance without a second calculation.

Is it legal for my employer to round my hours to the quarter hour?

In the United States, yes, provided the rounding is neutral over time. Under 29 CFR 785.48 an employer may record time in quarter-hour increments, but a scheme that consistently rounds in the employer's favour is not permitted. The usual compliant pattern is the 7-minute rule: minutes 1-7 past a quarter round down and 8-14 round up. Keep your exact clock times, because the exact record is what settles a dispute.