Last updated March 2026

Time Duration Calculator

Add or subtract hours and minutes, or find the exact duration between two times.

Result --
Total Minutes --
Duration --
Total Minutes --
Decimal Hours --

Why Time Math Is Tricky

Time arithmetic is one of those tasks that seems simple on the surface but quickly becomes confusing in practice. Unlike the base-10 number system we use for most calculations, time operates on a base-60 system for minutes and seconds and a base-24 system for hours. This means that adding 45 minutes to 30 minutes does not give you 75 minutes in the usual sense — it gives you 1 hour and 15 minutes. And adding 8 hours to 6 PM does not give you 14 PM; it gives you 2 AM the next day.

The source of most errors in time math is the carry operation. In regular arithmetic, you carry when a digit reaches 10. In time arithmetic, you carry when minutes reach 60 and when hours reach 24 (or 12 in the 12-hour clock system). Mixing up these carrying rules leads to incorrect results, especially when people try to do the math in their heads while stressed or tired.

Consider a nurse who finishes a shift at 7:00 AM and needs to return 9 hours and 45 minutes later. Many people would start by adding 9 hours to 7:00 AM to get 4:00 PM, then add 45 minutes to get 4:45 PM. This approach works, but it requires two separate calculations and an understanding of how the 12-hour clock wraps. Now consider that the nurse's shift ends at 11:30 PM and she needs to return 10 hours later. Adding 10 hours to 11:30 PM requires crossing midnight, resulting in 9:30 AM the next day. This is where most people make mistakes, and where a calculator becomes invaluable.

This time duration calculator eliminates these headaches by converting all times to a common unit (total minutes), performing the arithmetic in that unit, and converting back to the familiar hours-and-minutes format. It handles midnight crossings, AM/PM transitions, and multi-hour additions or subtractions without error.

How to Add and Subtract Time

The fundamental principle behind time addition and subtraction is unit conversion. Convert everything to a single unit (usually total minutes), perform the arithmetic, then convert back. Here is the step-by-step process:

Adding Time

  1. Convert the starting time to total minutes: multiply the hours by 60 and add the minutes. For example, 3 hours 20 minutes = (3 × 60) + 20 = 200 minutes.
  2. Convert the duration to total minutes using the same method. For example, 1 hour 50 minutes = (1 × 60) + 50 = 110 minutes.
  3. Add the two totals: 200 + 110 = 310 minutes.
  4. Convert back: 310 ÷ 60 = 5 hours with a remainder of 10 minutes. The result is 5 hours 10 minutes.

Subtracting Time

  1. Convert both values to total minutes.
  2. Subtract the duration from the starting time.
  3. If the result is negative, add 1440 (the number of minutes in 24 hours) to get the correct time on the previous day.
  4. Convert the result back to hours and minutes.

For example, subtracting 2 hours 30 minutes from 1 hour 15 minutes: 75 − 150 = −75 minutes. Since the result is negative, this means the duration exceeds the starting time by 1 hour and 15 minutes. If we are working with clock times, we would add 1440 to get 1365 minutes, which converts to 22 hours 45 minutes (10:45 PM the previous day).

Calculating the Duration Between Two Times

Finding the time between two clock times requires converting both times to minutes past midnight, then subtracting. The steps are:

  1. Convert the start time to 24-hour format. For AM times, the hours stay the same (except 12 AM, which is 0). For PM times, add 12 to the hours (except 12 PM, which stays as 12).
  2. Convert to total minutes: hours × 60 + minutes.
  3. Do the same for the end time.
  4. Subtract start minutes from end minutes. If the result is negative, the time range crosses midnight. Add 1440 to get the correct positive duration.
  5. Convert the result back to hours and minutes.

For example, from 9:30 AM to 2:15 PM: Start = (9 × 60) + 30 = 570 minutes. End = (14 × 60) + 15 = 855 minutes. Difference = 855 − 570 = 285 minutes = 4 hours 45 minutes.

For a cross-midnight example, from 10:00 PM to 6:30 AM: Start = (22 × 60) + 0 = 1320 minutes. End = (6 × 60) + 30 = 390 minutes. Difference = 390 − 1320 = −930. Add 1440: −930 + 1440 = 510 minutes = 8 hours 30 minutes.

Cross-Midnight Calculations

Crossing midnight is the single most common source of error in time calculations. When adding time to an evening hour pushes the result past 12:00 AM, the result wraps into the next day. When subtracting time from an early morning hour pushes the result before 12:00 AM, the result wraps into the previous day.

This calculator handles midnight crossings automatically. When the "Add/Subtract" tab produces a result that crosses midnight, it displays a "next day" or "previous day" indicator so you know the result is not on the same day as the starting time. Similarly, when the "Time Between" tab detects that the end time is earlier in the day than the start time, it assumes the end time is on the following day and calculates accordingly.

Real-world scenarios where midnight crossings occur frequently include overnight shifts (healthcare, manufacturing, hospitality), international travel itineraries, overnight delivery schedules, and astronomical observations. Anyone who works with times spanning the midnight boundary needs a reliable method for performing the calculation, and mental arithmetic is simply not reliable enough when the stakes are high.

Work Hours Tracking

Tracking work hours accurately is essential for payroll, project billing, and labor law compliance. Many workers need to calculate the duration of their shifts, subtract break times, and total hours across a week or pay period. Time duration calculations are at the heart of this process.

A typical hourly employee might clock in at 8:15 AM, take a 30-minute lunch at 12:00 PM, and clock out at 4:45 PM. To calculate the total work hours, find the duration from 8:15 AM to 4:45 PM (8 hours 30 minutes) and subtract the 30-minute lunch break. The result is 8 hours of paid time. If the employee worked overtime past 5:00 PM until 6:30 PM, you would add another 1 hour 30 minutes, for a total of 9 hours 30 minutes.

Salaried employees who bill by the hour (lawyers, consultants, freelancers) must track time in even more granular detail. A consultant might log 2 hours 15 minutes for one client meeting, 45 minutes for email correspondence, and 3 hours 30 minutes for a project deliverable. Adding these durations gives a total of 6 hours 30 minutes for the day. This calculator makes it easy to add multiple durations together or to find the exact time between start and end points for each activity.

Common Time Duration Questions

Certain time calculations come up so frequently that it is worth understanding the patterns:

Time in Decimal Format

Many payroll systems and time-tracking applications require time to be entered in decimal format rather than hours and minutes. In decimal format, partial hours are expressed as a fraction of 60 minutes. To convert, divide the minutes by 60 and append to the hour count.

Common conversions include: 15 minutes = 0.25 hours, 30 minutes = 0.50 hours, 45 minutes = 0.75 hours, and 20 minutes = 0.33 hours. For less common values, use the formula: decimal hours = hours + (minutes ÷ 60). For example, 7 hours 42 minutes = 7 + (42 ÷ 60) = 7.70 hours.

The "Time Between" tab in this calculator displays the result in both standard (hours:minutes) and decimal formats, so you can directly enter the value into timesheets, invoicing systems, or project management tools without performing additional conversions.

Military Time and 24-Hour Clock

The 24-hour clock, sometimes called military time in the United States, eliminates the ambiguity of AM and PM by counting hours from 0 (midnight) to 23 (11 PM). In this system, 1:00 PM is 13:00, 5:30 PM is 17:30, and midnight is 00:00. The 24-hour format is standard in most countries outside the United States and is used universally in aviation, military operations, emergency services, and healthcare.

Time arithmetic is actually easier in the 24-hour format because there is no need to handle AM/PM conversions. When converting from the 12-hour format to 24-hour, leave AM hours as they are (except 12 AM, which becomes 00), and add 12 to PM hours (except 12 PM, which stays as 12). This calculator accepts input in the 12-hour AM/PM format for convenience, but internally performs all calculations using total minutes, which is equivalent to working in 24-hour time.

Frequently Asked Questions

How do you add hours and minutes together?

Convert both times to total minutes by multiplying hours by 60 and adding the minutes. Add the totals together, then divide by 60 to get the hours and use the remainder for minutes. For example, 2:45 + 1:30 = 165 + 90 = 255 minutes = 4 hours 15 minutes. This calculator performs the conversion and arithmetic automatically.

How do you calculate time between two clock times?

Convert both times to minutes past midnight using the 24-hour clock. Subtract the start time from the end time. If the result is negative (meaning the time range crosses midnight), add 1440 minutes (24 hours). Then convert the result back to hours and minutes. For example, from 9:30 AM to 2:15 PM: 855 − 570 = 285 minutes = 4 hours 45 minutes.

What happens when adding time crosses midnight?

When a time addition crosses midnight, the result wraps to the next day. For example, 10:30 PM + 4 hours = 2:30 AM the next day. This calculator detects midnight crossings automatically and labels the result with a "next day" indicator so you always know when the result falls on a different day than the starting time.

How do I convert time to decimal hours?

Divide the minutes by 60 and add to the whole hours. For example, 3 hours 45 minutes = 3 + (45 ÷ 60) = 3.75 decimal hours. Common conversions: 15 min = 0.25, 30 min = 0.50, 45 min = 0.75. The "Time Between" tab in this calculator displays results in both standard and decimal formats for easy entry into timesheets and payroll systems.

Can I subtract a larger duration from a smaller one?

Yes. If you subtract a larger duration from a smaller starting time, the result will be negative. In the context of clock times, a negative result means the time falls on the previous day. For example, 2:00 AM minus 5 hours gives 9:00 PM the previous day. This calculator handles negative results correctly and indicates when the result crosses into a different day.

Related Calculators