Time Addition Formulas — Every Time Calculation Formula in One Place

Verified formulas ISO 8601 compliant Updated Feb 2026

The formula for adding time is: add hours, minutes, and seconds in separate columns, then carry over any value of 60 or more to the next unit. For example, 2:45 + 1:30 becomes 3:75, and since 75 minutes ≥ 60, the result is 4:15. This base-60 carry-over rule applies to all time addition, subtraction, multiplication, and conversion calculations.

This page is a complete reference for every time math formula you need — from basic addition and subtraction to decimal conversions, ISO 8601 durations, and Excel-ready formulas. Whether you're building a timesheet calculator, processing payroll, or working through a homework problem, every formula below has been verified for correctness.

OperationFormulaExample
Add timeAdd columns, carry ≥ 602:45 + 1:30 = 4:15
Subtract timeSubtract columns, borrow when negative5:10 − 1:20 = 3:50
To decimal hoursH + (M ÷ 60) + (S ÷ 3600)3:45:00 = 3.75 hrs
Decimal to HH:MMH = whole part; M = decimal × 602.5 hrs = 2:30
To total seconds(H × 3600) + (M × 60) + S1:15:22 = 4522 s
Multiply timeConvert to seconds × N, convert back2:15 × 5 = 11:15
ISO 8601 durationPT[H]H[M]M[S]SPT2H30M = 2 h 30 min
Excel time sum=SUM() with [h]:mm:ss format=SUM(A1:A10)

What Is the Universal Formula for Adding Time?

Definition: Time addition is the process of combining two or more durations expressed in hours, minutes, and seconds into a single total duration, using modular (base-60) arithmetic to handle carry-overs between units.

Because minutes and seconds use a base-60 (sexagesimal) number system — a system first developed by the ancient Sumerians in the 3rd millennium BCE and later refined by the Babylonians — you cannot simply add time values the same way you add decimal numbers. Instead, time addition follows a convert → add → carry algorithm.

Key Takeaway: Add each column (seconds, minutes, hours) independently, then carry over any value of 60 or more to the next larger unit. This is the single most important rule in time arithmetic.

How Does the Convert-Add-Carry Algorithm Work?

To add two time values A (H₁:M₁:S₁) and B (H₂:M₂:S₂), follow these steps:

// Step 1: Add each column independently raw_seconds = S₁ + S₂ raw_minutes = M₁ + M₂ raw_hours = H₁ + H₂ // Step 2: Carry over seconds → minutes final_seconds = raw_seconds mod 60 carry_minutes = floor(raw_seconds / 60) // Step 3: Carry over minutes → hours final_minutes = (raw_minutes + carry_minutes) mod 60 carry_hours = floor((raw_minutes + carry_minutes) / 60) // Step 4: Final result final_hours = raw_hours + carry_hours Result = final_hours : final_minutes : final_seconds
Example: Add 2:45:50 and 1:30:25.

Seconds: 50 + 25 = 75 → 75 mod 60 = 15 seconds, carry 1
Minutes: 45 + 30 + 1 = 76 → 76 mod 60 = 16 minutes, carry 1
Hours: 2 + 1 + 1 = 4 hours

Result: 4:16:15

This same algorithm extends to adding three or more time values — simply sum each column across all entries before applying the carry-over logic. Try it instantly with our Time Addition Calculator.

What Is the Formula for Subtracting Time?

Time subtraction reverses the addition process. Instead of carrying over, you borrow from the next larger unit when a smaller unit goes negative. This is especially useful when calculating elapsed time between a start and end time.

// Subtract A − B where A = H₁:M₁:S₁ and B = H₂:M₂:S₂ // Step 1: Subtract seconds diff_seconds = S₁ − S₂ If diff_seconds < 0: diff_seconds = diff_seconds + 60 borrow_minutes = 1 Else: borrow_minutes = 0 // Step 2: Subtract minutes (including any borrow) diff_minutes = M₁ − M₂ − borrow_minutes If diff_minutes < 0: diff_minutes = diff_minutes + 60 borrow_hours = 1 Else: borrow_hours = 0 // Step 3: Subtract hours diff_hours = H₁ − H₂ − borrow_hours Result = diff_hours : diff_minutes : diff_seconds
Example: Subtract 1:20:45 from 5:10:30 (that is, 5:10:30 − 1:20:45).

Seconds: 30 − 45 = −15 → −15 + 60 = 45 seconds, borrow 1
Minutes: 10 − 20 − 1 = −11 → −11 + 60 = 49 minutes, borrow 1
Hours: 5 − 1 − 1 = 3 hours

Result: 3:49:45

Need to calculate time differences quickly? Use the Time Subtraction Calculator to verify your results.

How Do You Multiply and Divide Time by a Number?

Multiplying or dividing time durations by a scalar (a regular number) is common in payroll — for example, calculating weekly pay from a daily shift length, or splitting a total duration among team members. The trick is to convert the time to a single unit first, perform the operation, then convert back.

How Do You Multiply Time by a Number?

// Multiply time H:M:S by factor N // Step 1: Convert to total seconds total_seconds = (H × 3600) + (M × 60) + S // Step 2: Multiply result_seconds = total_seconds × N // Step 3: Convert back hours = floor(result_seconds / 3600) minutes = floor((result_seconds mod 3600) / 60) seconds = result_seconds mod 60 Result = hours : minutes : seconds
Example: A shift is 2:15:00 long. What is the total for a 5-day week?

Total seconds = (2 × 3600) + (15 × 60) + 0 = 7200 + 900 = 8100
8100 × 5 = 40500 seconds
40500 ÷ 3600 = 11 remainder 900 → 900 ÷ 60 = 15 remainder 0

Result: 11:15:00 (11 hours and 15 minutes per week)

How Do You Divide Time by a Number?

// Divide time H:M:S by divisor N // Step 1: Convert to total seconds total_seconds = (H × 3600) + (M × 60) + S // Step 2: Divide result_seconds = total_seconds / N // Step 3: Convert back (may produce fractional seconds) hours = floor(result_seconds / 3600) minutes = floor((result_seconds mod 3600) / 60) seconds = result_seconds mod 60 Result = hours : minutes : seconds
Example: Split 8:00:00 evenly among 3 people.

Total seconds = 8 × 3600 = 28800
28800 ÷ 3 = 9600 seconds
9600 ÷ 3600 = 2 remainder 2400 → 2400 ÷ 60 = 40 remainder 0

Result: 2:40:00 per person

How Do You Convert Between Time Formats?

Payroll systems, project management tools, and spreadsheets all use different time formats. Converting between them accurately is essential for calculating work hours. Below are the formulas for every common conversion.

How Do You Convert HH:MM:SS to Decimal Hours?

Decimal hours express time as a single number where the fractional part represents minutes and seconds as a fraction of an hour. This is the standard format for payroll calculations.

Decimal Hours = Hours + (Minutes / 60) + (Seconds / 3600)
Example: Convert 3:45:30 to decimal hours.

3 + (45 ÷ 60) + (30 ÷ 3600) = 3 + 0.75 + 0.00833 = 3.7583 hours

How Do You Convert Decimal Hours to HH:MM:SS?

// Convert D decimal hours to HH:MM:SS Hours = floor(D) Minutes = floor((D − Hours) × 60) Seconds = round(((D − Hours) × 60 − Minutes) × 60)
Example: Convert 5.3417 decimal hours to HH:MM:SS.

Hours = floor(5.3417) = 5
Minutes = floor(0.3417 × 60) = floor(20.502) = 20
Seconds = round(0.502 × 60) = round(30.12) = 30

Result: 5:20:30

How Do You Convert HH:MM:SS to Total Minutes?

Total Minutes = (Hours × 60) + Minutes + (Seconds / 60)
Example: Convert 2:30:45 to total minutes.
(2 × 60) + 30 + (45 ÷ 60) = 120 + 30 + 0.75 = 150.75 minutes

How Do You Convert HH:MM:SS to Total Seconds?

Total Seconds = (Hours × 3600) + (Minutes × 60) + Seconds
Example: Convert 1:15:22 to total seconds.
(1 × 3600) + (15 × 60) + 22 = 3600 + 900 + 22 = 4522 seconds

How Do You Convert Minutes to Hours and Minutes?

// Convert M total minutes to H hours and R minutes Hours = floor(M / 60) Minutes = M mod 60
Example: Convert 197 minutes to hours and minutes.
floor(197 ÷ 60) = 3 hours, 197 mod 60 = 17 minutes3:17

What Is the Complete Decimal Hours to Minutes Conversion Table?

This reference table shows every minute value from 1 to 59 with its decimal hours equivalent. This is essential for payroll processing where decimal hours are required for wage calculations. Use our Work Hours Calculator to convert automatically.

MinutesDecimalHH:MM
10.01670:01
20.03330:02
30.05000:03
40.06670:04
50.08330:05
60.10000:06
70.11670:07
80.13330:08
90.15000:09
100.16670:10
110.18330:11
120.20000:12
130.21670:13
140.23330:14
150.25000:15
160.26670:16
170.28330:17
180.30000:18
190.31670:19
200.33330:20
210.35000:21
220.36670:22
230.38330:23
240.40000:24
250.41670:25
260.43330:26
270.45000:27
280.46670:28
290.48330:29
300.50000:30
MinutesDecimalHH:MM
310.51670:31
320.53330:32
330.55000:33
340.56670:34
350.58330:35
360.60000:36
370.61670:37
380.63330:38
390.65000:39
400.66670:40
410.68330:41
420.70000:42
430.71670:43
440.73330:44
450.75000:45
460.76670:46
470.78330:47
480.80000:48
490.81670:49
500.83330:50
510.85000:51
520.86670:52
530.88330:53
540.90000:54
550.91670:55
560.93330:56
570.95000:57
580.96670:58
590.98330:59

Quick Reference: Common payroll values — 15 min = 0.25, 30 min = 0.50, 45 min = 0.75. For any minute value, divide by 60 and round to four decimal places.

What Is the ISO 8601 Duration Format?

ISO 8601 is the international standard for representing dates, times, and durations. Published by the International Organization for Standardization, it defines a machine-readable and unambiguous duration format used in APIs, databases, scheduling systems, and programming languages worldwide.

The duration format follows this pattern:

P[n]Y[n]M[n]DT[n]H[n]M[n]S Where: P = Period designator (always required at the start) Y = Years M = Months (before the T) D = Days T = Time designator (separates date from time components) H = Hours M = Minutes (after the T) S = Seconds

The P prefix is always required. The T separator is required when any time component (hours, minutes, seconds) is present. Zero-value components can be omitted.

What Are Common ISO 8601 Duration Examples?

DurationISO 8601Explanation
1 hour 30 minutesPT1H30MTime only — no date component
2 hoursPT2HMinutes and seconds omitted when zero
45 minutesPT45MHours omitted when zero
90 secondsPT90SNo need to convert to minutes
1 day 6 hoursP1DT6HT separates day from hours
2 years 3 monthsP2Y3MDate-only duration — no T needed
1 year 2 months 10 days 5 hours 30 minutesP1Y2M10DT5H30MFull date and time duration
8 hours 15 minutes 30 secondsPT8H15M30STypical workday representation

Developer Tip: Most programming languages parse ISO 8601 durations natively. In JavaScript, Luxon supports Duration.fromISO("PT2H30M"). In Python, use isodate.parse_duration("PT2H30M"). Check the NIST Time and Frequency Division for authoritative time measurement standards.

What Are the Excel Formulas for Time Calculations?

Microsoft Excel stores time as a fraction of a 24-hour day (e.g., 6 hours = 0.25). This decimal system makes arithmetic straightforward but introduces formatting quirks. Here are the most important formulas and techniques for working with time in Excel.

How Do You Create Time Values with TIME()?

=TIME(hours, minutes, seconds) Examples: =TIME(2, 30, 0) → returns 2:30:00 AM =TIME(0, 90, 0) → returns 1:30:00 AM (auto-converts) =TIME(14, 15, 45) → returns 2:15:45 PM

How Do You Add Time Values with SUM()?

The =SUM() function adds time values directly. However, Excel's default time format wraps around at 24 hours, which means 25 hours would display as 1:00:00 instead of 25:00:00.

// Standard addition =SUM(A1:A10) // CRITICAL: Format the result cell as [h]:mm:ss // The square brackets around h prevent the 24-hour wrap Format → Cells → Custom → [h]:mm:ss

Common Pitfall: Without the [h]:mm:ss format (square brackets around the h), Excel wraps hours at 24. If your employees' weekly totals exceed 24 hours — which they usually do — the result will be wrong. Always use [h]:mm:ss for summing work hours.

How Do You Format Time with TEXT()?

=TEXT(A1, "[h]:mm:ss") → "37:15:30" =TEXT(A1, "h:mm AM/PM") → "1:15 PM" =TEXT(A1, "[h]") → "37" (total hours only)

How Do You Convert Time to Decimal Hours in Excel?

// Multiply by 24 to get decimal hours =A1 * 24 // Example: cell A1 contains 2:30:00 =A1 * 24 → 2.5

How Do You Calculate Time Differences in Excel?

// Simple subtraction (end − start) =B1 - A1 // Handle overnight shifts (crossing midnight) =IF(B1 < A1, B1 + 1 - A1, B1 - A1) // Example: A1 = 10:00 PM, B1 = 6:00 AM =IF(B1 < A1, B1 + 1 - A1, B1 - A1) → 8:00:00

What Are Common Excel Time Pitfalls?

Watch out for these issues:

Excel cannot display negative time values by default. If a subtraction returns a negative result, the cell will show ########. Enable the "1904 date system" under File → Options → Advanced, or restructure your formula to always subtract the smaller value from the larger.

When importing CSV data, Excel may interpret time strings as text rather than time values. Use =TIMEVALUE("2:30:00") to convert text to a proper time value.

The TIME() function only accepts values up to 32767 for each argument. For very large time totals, build the value mathematically: =(hours/24) + (minutes/1440) + (seconds/86400).

Frequently Asked Questions

Add hours to hours and minutes to minutes separately. If the minutes total 60 or more, subtract 60 from the minutes and add 1 to the hours. For example, 2:45 + 1:30: hours = 2 + 1 = 3, minutes = 45 + 30 = 75. Since 75 ≥ 60, the result is 3 + 1 = 4 hours and 75 − 60 = 15 minutes, giving you 4:15.

Take the decimal portion (everything after the decimal point) and multiply it by 60. For example, 2.75 hours: the whole number is 2 hours, and 0.75 × 60 = 45 minutes. So 2.75 hours = 2 hours and 45 minutes. For payroll, you can refer to the full conversion table above.

0.75 hours equals 45 minutes. Multiply 0.75 by 60 to get 45. This is the same as three-quarters of an hour, and it's one of the most commonly used decimal values in payroll — representing a 45-minute work period.

Enter time values into cells formatted as time (e.g., 2:30:00), then use =SUM(A1:A10). The critical step is formatting the result cell as [h]:mm:ss with square brackets around the h. Without the brackets, Excel wraps totals at 24 hours, which means 30 hours would incorrectly display as 6:00:00. See the full Excel formulas section for more details.

ISO 8601 represents durations using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S. The P marks the start, and T separates date parts from time parts. For example, PT2H30M means 2 hours and 30 minutes. P1DT6H means 1 day and 6 hours. Zero-value components are simply omitted. Learn more in the ISO 8601 section above.

Multiply hours by 3600, multiply minutes by 60, then add both results to the seconds. The formula is: Total Seconds = (Hours × 3600) + (Minutes × 60) + Seconds. For example, 1:30:15 converts to (1 × 3600) + (30 × 60) + 15 = 3600 + 1800 + 15 = 5415 total seconds.

Under the Fair Labor Standards Act (FLSA), overtime pay is calculated as: Overtime Pay = Hours Over 40 × Hourly Rate × 1.5. For example, if an employee works 47 hours at $22/hour, their overtime pay is 7 × $22 × 1.5 = $231. Note that some states (such as California) also require daily overtime for hours exceeding 8 per day. Use our Overtime Calculator for quick calculations.

When seconds total 60 or more, subtract 60 and carry 1 to the minutes column. When minutes total 60 or more, subtract 60 and carry 1 to the hours column. For example, adding 1:50:45 + 0:15:30: seconds = 45 + 30 = 75, carry 1 to get 15 seconds; minutes = 50 + 15 + 1 = 66, carry 1 to get 6 minutes; hours = 1 + 0 + 1 = 2. Final result: 2:06:15.

Divide the minutes by 60 to get decimal hours. For example, 45 minutes ÷ 60 = 0.75 hours. For payroll, round to two decimal places. A full 8-hour-and-45-minute day is 8 + (45 ÷ 60) = 8.75 decimal hours. This is the format most payroll systems expect for calculating gross wages.

Clock time refers to a specific point in time (e.g., 3:00 PM), while elapsed time is the duration between two points (e.g., 2 hours 15 minutes). The time addition formulas on this page work with elapsed time durations — they represent "how long" something took, not "when" it happened. Use our Elapsed Time Calculator to find the duration between two clock times.

Write the times in columns, aligning hours, minutes, and seconds. Add each column from right to left. If seconds total 60 or more, write the remainder and carry 1 to minutes. Repeat for minutes. For example, 1:45 + 2:30: minutes = 45 + 30 = 75, write 15 and carry 1; hours = 1 + 2 + 1 = 4. Answer: 4:15.

The base-60 system was first developed by the ancient Sumerians in the 3rd millennium BCE, then refined by the Babylonians. It was adopted for timekeeping because 60 is highly divisible — it divides evenly by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, and 30 — making it practical for splitting hours into halves, thirds, quarters, and fifths without fractions.

2 hours and 45 minutes equals 2.75 decimal hours. Divide the minutes by 60: 45 ÷ 60 = 0.75, then add to the hours: 2 + 0.75 = 2.75. This is the value you would enter into payroll software or a timesheet. See the complete conversion table for every minute value from 1 to 59.

Subtract the clock-in time from the clock-out time using the time subtraction formula, then deduct any unpaid break time. For example, clock in at 8:30 AM, clock out at 5:15 PM: 17:15 − 8:30 = 8:45, minus a 0:30 lunch break = 8:15 of work, or 8.25 decimal hours. Use our Work Hours Calculator for instant results.

Other Free Time Calculators

Disclaimer: The formulas and information on this page are provided for educational and reference purposes. While all calculations have been verified for accuracy, they should not be used as a substitute for professional payroll, accounting, or legal advice. Overtime rules vary by state and employment classification under the FLSA (29 CFR § 785.48). Consult a qualified professional for your specific situation.

Last updated: February 8, 2026