Free Online Time Calculator

Add, subtract, and calculate duration between times.

OC
OmniCalculator Pro Editorial TeamReviewed for accuracy by our editorial team
โœ… Fact-checked๐Ÿ”„ Updated 2026โญ Trusted tool

Time Duration

Calculate time between two points.

Duration

Add/Subtract Time

Result
What is a Time Calculator?

A time calculator works out the gap between two clock times, or adds and subtracts hours and minutes from a starting point. It handles the awkward part of time math automatically: the fact that time runs in base 60, not base 10, and that a shift can cross midnight into the next day. It is the tool of choice for filling in timesheets, planning schedules, and pricing work by the hour.

How to Use This Time Calculator

  1. Pick the mode you need.Use the elapsed-time section to measure the gap between a start and end time. Use the add/subtract section to shift a time forward or backward by a set duration.
  2. Enter your times in 24-hour format.Type them as HH:MM. Two in the afternoon is 14:00, and eleven at night is 23:00. This avoids any AM/PM confusion.
  3. Read the result in both formats.You get the answer in hours and minutes, plus the same figure in total minutes and decimal hours, which is the format payroll systems expect.

How Time Math Actually Works

Time is one of the few things we still count in base 60, a habit inherited from ancient Babylonian astronomers. That single fact is why time arithmetic trips people up. In everyday decimal math, carrying happens at 10. With time, it happens at 60 for minutes and again at 24 for hours.

Elapsed time = (end hour x 60 + end minute) - (start hour x 60 + start minute)
If the result is negative, add 1,440 minutes (the shift crossed midnight)
Convert back: hours = total minutes / 60, remainder = total minutes % 60

Converting everything to minutes first, doing plain subtraction, then converting back is the reliable method. It removes the borrowing step that causes most manual errors.

Worked Example: A Shift That Crosses Midnight

Night shift from 10:30 PM to 6:15 AM

Step 1: Convert both times to minutes since midnight

Start 22:30 = (22 x 60) + 30 = 1,350 minutes End 06:15 = (6 x 60) + 15 = 375 minutes

Step 2: Subtract

375 - 1,350 = -975 minutes (negative, so the shift crossed midnight)

Step 3: Add a full day

-975 + 1,440 = 465 minutes

Step 4: Convert back to hours and minutes

465 / 60 = 7 hours, remainder 45 minutes Decimal form: 465 / 60 = 7.75 hours

The shift ran 7 hours 45 minutes, which is 7.75 decimal hours for payroll

Minutes to Decimal Hours Conversion

This is the single most useful table for anyone filling in a timesheet. Payroll multiplies decimal hours by your rate, so entering clock minutes by mistake quietly changes your pay.

MinutesDecimal HoursCommon Mistake
5 min0.08Writing 0.05
10 min0.17Writing 0.10
15 min0.25Writing 0.15
20 min0.33Writing 0.20
30 min0.50Writing 0.30
40 min0.67Writing 0.40
45 min0.75Writing 0.45
50 min0.83Writing 0.50
The costliest rounding habit

Writing 7:30 as 7.30 rather than 7.50 understates the shift by 12 minutes. Over 20 shifts a month that is four hours of unpaid work. Always divide the minutes by 60 before entering a decimal figure.

Where Time Calculations Matter Most

Payroll and freelance invoicing

Hourly workers and freelancers convert logged time into billable decimal hours. A quarter-hour rounding policy is common, but the underlying arithmetic still has to be right before any rounding is applied.

Shift planning and rest periods

Scheduling software has to know whether a rest gap between shifts meets legal minimums. That means subtracting one clock time from another across a date boundary, which is exactly the midnight-crossing case above.

Cooking, travel and project timing

Working backwards from a deadline is a subtraction problem. If a roast needs 3 hours 20 minutes and must be served at 7:00 PM, it goes in at 3:40 PM. The add/subtract mode handles this directly.

Quick mental shortcut

To estimate elapsed time fast, count whole hours first, then handle the minutes. From 9:40 AM to 2:15 PM: 9:40 to 1:40 is four hours, and 1:40 to 2:15 is 35 minutes, giving 4 hours 35 minutes. Splitting the problem avoids borrowing entirely.

The 12-Hour and 24-Hour Clock

Most of the world uses the 24-hour clock for anything official, while the United States, Canada and a few other countries keep the 12-hour AM/PM system in daily life. Converting between them is where scheduling errors creep in, particularly around noon and midnight.

12-Hour24-HourNote
12:00 AM00:00Midnight, start of the day
1:00 AM01:00Same number
11:59 AM11:59Last minute before noon
12:00 PM12:00Noon, not midnight
1:00 PM13:00Add 12
11:00 PM23:00Add 12

The genuine trap is 12:00 AM versus 12:00 PM. Midnight is 00:00 and noon is 12:00. Because so many people get this backwards, transport timetables and hospitals often write 23:59 or 00:01 to remove all doubt.

People Also Ask

Convert both times to minutes since midnight, subtract the start from the end, then divide by 60. For example, 9:15 AM is 555 minutes and 5:45 PM is 1,065 minutes, so the difference is 510 minutes, which is 8 hours and 30 minutes. If the end time falls on the next day, add 24 hours (1,440 minutes) before subtracting.
Divide the minutes by 60. So 30 minutes becomes 0.5 hours, 15 minutes becomes 0.25, and 45 minutes becomes 0.75. Payroll systems use decimal hours because they multiply cleanly by an hourly rate. Working 7 hours 20 minutes equals 7.33 decimal hours, not 7.20.
The most common cause is mixing clock notation with decimal notation. Writing 7:30 as 7.30 instead of 7.50 loses 12 minutes per shift, which compounds to over an hour across a month. The second most common cause is forgetting to subtract an unpaid break.
Add the hours and minutes separately, then carry any minutes above 60 into the hours column. If the result passes 24, subtract 24 and move to the next day. For instance, 8:45 PM plus 6 hours 30 minutes gives 27:15, which becomes 3:15 AM the following day.
Elapsed time measures the gap between two specific clock times, such as from 2:00 PM to 4:30 PM. Duration is a standalone length of time, such as 2 hours 30 minutes, with no fixed start or end. This calculator handles both: the first mode finds elapsed time, the second adds or subtracts a duration.

📚 Sources & References

  1. U.S. Department of Labor, Wage and Hour Division — Rules on recording hours worked and rounding practices under the FLSA.
  2. National Institute of Standards and Technology (NIST) — Official U.S. timekeeping and time standards.
  3. International Bureau of Weights and Measures (BIPM) — Definition of the second and international time standards.

This calculator is provided for general informational purposes. For payroll, overtime or legal compliance questions, check your employer's policy and applicable labour law in your jurisdiction.

Related Calculators