Free time duration calculator

Calculate the time difference between two times. Find the duration between two dates. Add and subtract time with break deductions, decimal output, and CSV export.

Enter start and end times to calculate elapsed time and the number of hours worked. Add multiple time blocks to get a running total. Use break deduction to subtract unpaid time.

Time entries

Break duration in minutes (optional, subtracted from total)
Total unpaid break time across all entries

Time format
Net duration
Total elapsed
before breaks
Decimal hours
net duration
Decimal minutes
net duration

Find the exact duration between two dates and times — including spans across multiple days. Results are shown in days, hours, and minutes plus decimal totals for billing.

Start date & time
End date & time
Duration
days, hours, minutes
Total days
Total hours
Total minutes

Add time to or subtract time from a starting date and time — useful for deadlines, shift planning, and working across time spans.

Starting date & time
Operation
Days
Hours
Minutes
Resulting date & time
Shift applied

What is a time duration calculator?

A time duration calculator finds the elapsed time between two points in time — either within a single day or across multiple days. The result can be expressed in hours and minutes, in seconds, or as a decimal number for payroll and billing use.

Time duration calculations appear across most professional contexts. Hourly employees and their employers use them for timesheet completion. Freelancers use them for client billing. Project managers use them to track task durations against estimates. The core arithmetic is simple, but getting it right consistently across midnight, across days, and with break deductions is where an online calculator saves time and prevents errors.

How to calculate time duration manually

  • Step 1: Convert both times to 24-hour format if using 12h AM/PM
  • Step 2: Multiply hours by 60 and add minutes to convert to total minutes
  • Step 3: Subtract start from end. If the result is negative, add 1,440 (overnight shift)
  • Step 4: Subtract any break duration in minutes
  • Step 5: Divide by 60 for whole hours; use the remainder for minutes

Example: 9:00 AM start, 5:45 PM end, 45-minute break. Total span = 525 minutes. Net after break = 480 minutes = 8 hours exactly.

When to use each calculator mode

Time duration (with breaks)

The Time Duration tab handles the most common use case. Enter clock-in and clock-out times for a single shift or multiple sessions, add break deductions, and get net work time in hh:mm and decimal. The break deduction field separates unpaid break time from total elapsed time, making it directly usable for timesheets, client billing, and payroll prep.

Date and time duration

The Date & Time Duration tab handles multi-day spans. It shows the total gap in days, hours, and minutes — and counts workdays (Mon–Fri) separately. It covers project deadlines, contract length calculations, sprint planning, and any scenario that requires a day count between two dates. The calculator accounts for month lengths and leap years automatically.

Add and subtract time

The Add / Subtract tab starts from a fixed time and applies a duration to find the resulting time. For example, a meeting starting at 14:30 that runs 1 hour 45 minutes ends at 16:15. The calculator handles midnight crossover automatically, so 23:00 + 2 hours = 01:00 the next day.

Time formats and context

Time formats, time zones, and decimal conversion

12-hour vs 24-hour (military) time

The 12-hour format uses AM and PM to distinguish morning and afternoon hours, with 12 o'clock cycling twice per day. The 24-hour time format runs from 00:00 to 23:59, eliminating any ambiguity. To convert a PM time to 24-hour, add 12 — so 3:30 PM becomes 15:30. Midnight is 00:00; noon is 12:00. The 24-hour format is standard in healthcare, military, aviation, and most non-US countries.

UTC and time zones

UTC (Coordinated Universal Time) is the global time reference point against which all time zones are offset. If a meeting is at 14:00 UTC and you are in UTC+5, your local time is 19:00. For duration calculations within a single time zone, UTC offset is irrelevant — only the local times matter. Duration calculations across different time zones, or those that involve daylight saving time transitions, require converting both times to UTC first before subtracting.

The time duration calculator on this page operates on local time values as entered. For cross-timezone calculations, convert both timestamps to UTC manually before entering them.

Decimal time converter reference table

Minutes Decimal hours Example: 8h + x min
0 min 0.00 8.00h
5 min 0.08 8.08h
10 min 0.17 8.17h
15 min 0.25 8.25h
20 min 0.33 8.33h
30 min 0.50 8.50h
45 min 0.75 8.75h
50 min 0.83 8.83h
Formula: decimal hours = whole hours + (minutes ÷ 60)

Time duration in timesheets and payroll

Paper and spreadsheet timesheets use time duration in one of two ways. The first is hh:mm format, where hours and minutes are recorded separately — clean to read, but requiring special cell formatting in Excel to prevent it treating 8:30 as a time-of-day rather than a duration. The second is decimal format, which avoids this problem entirely: 8.5 hours in a cell formatted as a number multiplies cleanly against an hourly rate.

The approach most payroll processors expect depends on the software. QuickBooks, Gusto, and most HRIS platforms accept decimal hours in CSV imports. If you export from this calculator and import into a payroll tool, use the decimal hours column.

Time duration in project management

Project managers use duration to track task completion against estimates, calculate sprint velocity, and forecast deadlines. Duration in project management usually refers to elapsed calendar time (including weekends) unless specified as "working days." The Date & Time Duration mode in this calculator offers a workdays toggle to distinguish between the two.

Elapsed time also matters for billing in time-and-materials contracts. Clients are billed for net work time, which is total duration minus breaks and non-billable periods. That is precisely what the break deduction field in the Time Duration mode calculates.

Leap years and month boundaries

Leap years occur every four years, adding a 29th day to February. Any date range spanning late February in a leap year will have one extra day compared to the same range in a non-leap year. The Date & Time Duration calculator accounts for this automatically. The difference between January 1 and March 1, for example, is 59 days in standard years and 60 days in leap years.

Track hours from any device. See exactly where the time went.

Toggl makes time tracking effortless — log hours from your browser, desktop, or mobile, then get detailed reports that show how every hour was spent across projects, clients, and team members.

FAQs

How do I calculate the duration between two times?

Subtract the start time from the end time in minutes. Convert both times first: multiply hours by 60 and add minutes. Subtract start from end. If the result is negative (overnight), add 1,440. Then divide by 60 for hours; use the remainder for minutes. Example: 9:00 AM (540 min) to 5:30 PM (1,050 min) = 510 minutes = 8 hours 30 minutes.

How do I calculate time duration with breaks?

Calculate the total elapsed time between start and end, then subtract the total break duration in minutes. If you work from 9:00 AM to 5:30 PM with a 45-minute break, the span is 8h 30m and net work time is 7h 45m (510 – 45 = 465 minutes). Enter your break duration in the break deduction field in the Time Duration tab above.

How do I convert time to decimal hours?

Divide the minutes by 60 and add to the whole hours. Seven hours and 45 minutes = 7 + (45 ÷ 60) = 7.75 decimal hours. Decimal hours simplify billing and payroll: 7.75 hours at $30/hour = $232.50. The calculator shows decimal hours alongside hh:mm for every calculation.

How do I calculate the number of days between two dates?

Subtract the start date from the end date. The result counts complete days between two points in time — January 1 to January 31 is 30 days, not 31, because you are measuring the gap rather than counting inclusive days. Use the Date & Time Duration tab to calculate days, hours, and minutes between any two dates with automatic leap year handling.

How do I add or subtract time?

Convert your start time to total minutes from midnight, then add or subtract the duration. If the result exceeds 1,440, subtract 1,440 for next-day times. If the result is negative, add 1,440. Example: 23:00 + 2 hours = 1,380 + 120 = 1,500 minutes. Subtract 1,440 = 60 minutes = 01:00 the next day. The Add / Subtract Time tab handles this automatically.

What is the difference between elapsed time and duration?

Elapsed time and duration refer to the same concept: the total amount of time that passed between a start point and an end point. In project management, duration often refers to planned time while elapsed time refers to actual time passed — but for calculation purposes the formula is identical.

How do I calculate time duration across multiple days?

Use the Date & Time Duration tab. Enter start date and time plus end date and time. The calculator shows the total difference in days, hours, and minutes, handling month lengths and leap years automatically. January 30, 2024 to March 1, 2024 is 31 days because 2024 is a leap year (29 days in February rather than 28).