Conversion & Everyday

Time calculator

time calculator clock icon for calculating time duration

Time calculator: work out the duration between two times, add time or subtract time from a starting point, or add multiple time durations together. Handy for work hours, schedules, or travel times. This free time calculator also subtracts a break and shows every result in decimal hours for timesheets. To add up hours for a whole week, use block 4: one line per day gives the total in h:mm and in decimal hours, for example 38:45 = 38.75 hours.

1 Time difference calculator: duration between two times

Enter both times

2 Add time or subtract time

Enter your details

3 Add time durations together (calculate hours)

Enter both time durations

4 Add up hours and minutes (timesheet)

Enter one duration per line as h:mm (for example 7:45) or in decimal hours (7.75). Put a minus sign in front to subtract a line, such as -0:30.

Enter at least one duration

How does the time calculator work out a duration?

To calculate time duration between two times, the time calculator converts both times into minutes since midnight and subtracts the start time from the end time. A break you enter is then taken off, and the result is shown as hours and minutes and as decimal hours (minutes ÷ 60), which is the format most payroll and invoicing tools expect.

If the end time falls on the following day — for example with a night shift — add 24 hours (1,440 minutes) to the end time. This gives you a correct result even across midnight.

Worked examples

Duration example: You start work at 09:00 and finish at 17:30.

  • Calculate time duration: from 09:00 to 17:30 is 8 hours and 30 minutes.
  • That is the classic elapsed-time calculation: subtract the start time from the end time. In decimal that is 8.5 hours.
  • With a 30-minute break entered, the time calculator shows 8 hours (8.0 hours in decimal).

Add time example: You start at 14:00 and need to add 3 hours 45 minutes.

  • 14:00 + 3:45 = 17:45.

Add durations example: Combine 2 hours 30 minutes with 1 hour 45 minutes.

  • 2:30:00 + 1:45:00 = 4:15:00, or 4.25 hours in decimal.
  • Minutes and seconds above 59 are carried over automatically: 0:00:90 is read as 0:01:30.

Enter your own start and end times, or your own durations, above to try the same calculations with your own numbers.

Add time and subtract time

Want to know what time it will be after a certain number of hours and minutes, or what time it was before that? Enter the start time in the second block of the time calculator, choose add or subtract, and type the hours and minutes. You can enter more than 24 hours, for example 50 hours for a long trip.

If this pushes the result past 24:00 or below 00:00, the time rolls over into the next or previous day. The time calculator flags that automatically, using the same 24-hour clock convention defined by the ISO 8601 international time standard, which avoids the AM/PM ambiguity that trips up manual calculations.

Add up hours for a timesheet

Block 4 of the time calculator adds any number of durations. Put each one on its own line, as h:mm (7:45) or in decimal hours (7.75), and use “+ Add line” for as many lines as you need. Totals above 24 hours stay in hours (38:45, not “1 day and 14:45”), which is how a timesheet expects them.

Example: adding up a work week with the time calculator

First work out each day (end time minus start time minus break, which block 1 does), then add the five days together:

DayStartEndBreakWorked
Monday08:3016:4530 min7:45
Tuesday08:0016:4530 min8:15
Wednesday08:3017:0030 min8:00
Thursday09:0017:0030 min7:30
Friday08:0015:4530 min7:15
Total for the week38:45 = 38.75 hours

To check it by hand, add the whole hours first (7 + 8 + 8 + 7 + 7 = 37 hours), then the minutes (45 + 15 + 0 + 30 + 15 = 105 minutes). 105 minutes is 1 hour and 45 minutes, so the total is 38 hours and 45 minutes. In decimal that is 38 + 45 ÷ 60 = 38.75 hours. These five durations are already filled in as the example in block 4 of the time calculator.

Adding time: total minutes = the sum of (hours × 60 + minutes) over all lines. Whole hours = total minutes ÷ 60, rounded down; the remainder is the minutes. Decimal hours = hours + minutes ÷ 60.

Minutes to decimal hours

Most payroll and invoicing tools want decimal hours instead of h:mm, so the time calculator shows them next to every total. This table lists the values people look up most (rounded to two decimals):

MinutesDecimal hoursMinutesDecimal hours
5 min0.08 h35 min0.58 h
6 min0.10 h40 min0.67 h
10 min0.17 h45 min0.75 h
12 min0.20 h50 min0.83 h
15 min0.25 h55 min0.92 h
20 min0.33 h60 min1.00 h
25 min0.42 h90 min1.50 h
30 min0.50 h120 min2.00 h

To go back from decimal hours to minutes, multiply the part after the decimal point by 60: 0.4 hours is 0.4 × 60 = 24 minutes, so 7.4 hours is 7:24. A common timesheet mistake is writing 7:45 as 7.45 hours; the correct value is 7.75.

Subtract hours

Subtracting hours works like adding, except that you sometimes have to borrow an hour. Take 8:15 minus 1:30: 15 minutes minus 30 minutes does not work, so borrow one hour and write 8:15 as 7:75. Then 7:75 minus 1:30 = 6:45, or 6.75 hours. In block 4 of the time calculator, type 8:15 on one line and -1:30 on the next; a leading minus subtracts that line. Block 3 also subtracts two durations, down to the second.

The same method answers a common payroll question: how far above or below your contract hours are you? With a 40-hour contract and a 38:45 week, 40:00 minus 38:45 = 1:15, so you are 1.25 hours short. Anything above 40 hours in a workweek may count as overtime; the overtime pay calculator turns those hours into pay.

What is a time calculator used for?

A time calculator is handy for tracking work hours, planning trips and flights, calculating shift schedules, or simply figuring out when an activity will end if you know its duration and start time. It also works as a simple way to calculate hours for payroll or invoicing — if you need the formal U.S. definition of what counts as compensable working time for payroll purposes, the Department of Labor’s Fact Sheet #22 on hours worked under the FLSA is the authoritative reference.

Who should use this time calculator?

This time calculator is useful any time you need a fast, reliable answer without doing the minutes-since-midnight math by hand.

  • Hourly and shift workers checking how long a shift ran, including overnight shifts that cross midnight.
  • Freelancers and contractors totaling billable hours across several separate time blocks.
  • Travelers working out arrival times after a flight or drive of a known duration.
  • Anyone planning a schedule who needs to know what time an event will end, or how much time is left before it starts.

A couple of caveats: the time calculator works in a single time zone and doesn’t account for daylight saving time transitions, so a duration that spans a DST change will be off by an hour. For clock times in two different cities, use the time zone calculator instead, and for whole calendar days between two dates the date calculator. To turn a race time into a pace per mile or kilometre, try the pace calculator.

Frequently Asked Questions

How do I calculate worked hours with a break?

Enter your start and end time in the first block of the time calculator and type the break in minutes in the Break field. The result is your net worked time, both as hours and minutes and in decimal hours.

What happens if the end time is before the start time?

Check the “End time is on the following day” box in the first block of the time calculator. This tells the tool a day transition occurs, such as with a night shift.

Can I also include seconds in the calculation?

Yes, the third block of the time calculator adds or subtracts durations in hours, minutes and seconds (hh:mm:ss). A negative result, such as 1:00:00 minus 1:30:15, is shown with a minus sign: −00:30:15.

How do I convert minutes to decimal hours?

Divide the minutes by 60: 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours. The time calculator shows this decimal value next to every result.

How do I add up my hours for a timesheet?

Put the worked time of each day on its own line in block 4 of the time calculator. It gives the total in h:mm and in decimal hours: a week of 7:45, 8:15, 8:00, 7:30 and 7:15 adds up to 38:45, which is 38.75 hours.

How many decimal hours is 45 minutes?

45 minutes is 45 ÷ 60 = 0.75 hours. A quarter of an hour is 0.25 hours, half an hour 0.5 hours and 20 minutes about 0.33 hours, so a 7:45 workday goes on a timesheet as 7.75 hours, not 7.45.

How do I subtract hours and minutes?

Subtract the minutes first and borrow an hour when needed: 8:15 minus 1:30 becomes 7:75 minus 1:30 = 6:45. In the time calculator, type a minus before a line in block 4 (-1:30) or choose Subtract in block 3.

Is this the same as a time difference calculator?

Yes. “Time difference calculator” is another common name for the first block of this time calculator, which calculates the duration between a start time and an end time.

This time calculator provides a general, mathematically correct calculation. For important schedules or time tracking, always double-check your result.

For more free calculators, visit the CalcSwiftly homepage.

Reviewed by: CalcSwiftly · Last reviewed: