Time Duration Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free time duration calculator. Find the hours and minutes between two times, including overnight shifts, minus breaks, in hours:minutes and decimal hours.

Decimal hours
0
Total minutes
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the time duration calculator

  1. Enter the start time, such as 09:00.
  2. Enter the end time, such as 17:30.
  3. Enter the break in minutes, if any, to subtract it.

The time duration calculator shows the time between the two times in hours and minutes, in decimal hours (for timesheets and payroll), and in total minutes. If the end time is earlier than the start, it's treated as the next day, so overnight shifts work automatically. Everything runs in your browser.

How the duration is calculated

The calculator converts both times to minutes after midnight and subtracts:

  • 09:00 is 540 minutes; 17:30 is 1,050 minutes.
  • 1,050 − 540 = 510 minutes = 8 hours 30 minutes.
  • Minus a 30-minute break: 8 hours 0 minutes, or 8.00 decimal hours.

For an overnight shift from 22:00 to 06:00, the end is earlier than the start, so the calculator adds 24 hours: from 22:00 to 06:00 the next day is 8 hours; minus a 30-minute break, 7 hours 30 minutes, or 7.50 decimal hours.

Hours and minutes or decimal hours?

Timesheets and payroll systems often need decimal hours, because you multiply them by an hourly rate. But clocks show hours and minutes, and the two are easy to confuse:

  • 7 hours 30 minutes = 7.5 hours, not 7.30.
  • 7 hours 45 minutes = 7.75 hours.
  • 7 hours 20 minutes = 7.33 hours.

Paying someone for "7.30 hours" when they worked 7 hours 30 minutes would underpay them by 12 minutes. The time duration calculator shows both forms side by side. For converting any value, the decimal hours converter goes both ways.

24-hour and 12-hour times

The time fields use your device's time picker, which may show a 12-hour clock with AM and PM or a 24-hour clock, depending on your settings. Both work. Remember that 12:00 PM is noon and 12:00 AM is midnight, a common source of mistakes in timesheets. Using the 24-hour clock (13:00, 22:00) avoids the confusion.

Common uses

Timesheets. Work out each day's hours from start and finish times, minus breaks. For a whole week, the time card calculator adds up several days at once.

Payroll and overtime. Multiply decimal hours by the hourly rate. If a week goes over the overtime threshold, the overtime calculator works out the extra pay.

Shift planning. Check that shifts are the right length and that staff get the breaks required by law.

Billing clients. Freelancers and consultants often bill in decimal hours or in 6- or 15-minute increments.

Events and travel. How long is a flight that leaves at 21:15 and lands at 06:40? (9 hours 25 minutes, if both times are in the same time zone. For different zones, convert first with the time zone converter.)

Cooking and baking. How long has the dough been proving?

Breaks and the law

Many countries set minimum breaks. In the UK, workers are generally entitled to a 20-minute break if they work more than 6 hours a day; in many US states, meal break rules vary, and federal law doesn't require them. Unpaid breaks are usually subtracted from paid time, while short paid rest breaks aren't. Check the rules where you work, and what your contract says.

Rounding time

Some employers round clock-in and clock-out times to the nearest 5, 10 or 15 minutes. In the US, rounding is allowed only if it's neutral over time, so it doesn't consistently favour the employer. The time duration calculator gives the exact time; apply your own rounding rules afterwards if you use them.

Durations over several days

This calculator handles durations up to 24 hours, which covers almost all shifts and appointments. For longer spans, such as the time between two dates and times several days apart, use the date calculator for the days and this tool for the hours on the first and last day. For working days only, the working days calculator skips weekends and holidays.

Checking your own timesheet

If you're paid by the hour, it's worth checking your hours yourself each week. Note your start and finish times and breaks each day, run them through the time duration calculator, and add up the decimal hours. Compare the total with your payslip. Small differences, such as a few minutes rounded away each day, add up over a year, and most payroll errors are easier to fix when they're spotted quickly.

Checking breaks and rest periods

Many workplaces have rules about breaks and rest between shifts. Common examples include a minimum break after a certain number of hours, and a minimum rest period between the end of one shift and the start of the next (often 11 hours in the UK and EU). Use the time duration calculator to check both: the length of each shift, and the time from one shift's end to the next shift's start. A late finish at 23:00 followed by a 07:00 start leaves only 8 hours, which may break the rules and is hard on staff.

Converting durations to pay

Once you know the decimal hours, pay is simple: hours × hourly rate. For a 7 hour 45 minute shift at 18.50 an hour: 7.75 × 18.50 = 143.38. If the shift includes hours paid at a different rate, such as night work or overtime, split the shift into parts, work out each part's duration with the time duration calculator, and apply each rate separately.

Timezones and daylight saving

The time duration calculator assumes both times are in the same time zone and doesn't adjust for daylight saving changes. On the nights the clocks change, an overnight shift is one hour shorter or longer than the clock times suggest. If someone works through a clock change, add or subtract an hour from the result. For times in different zones, convert one of them first with the time zone converter.

A time duration calculator for freelancers

Freelancers who bill by the hour can use a time duration calculator for each work session, then add up the decimal hours for the invoice. Keeping a simple log of start and end times per task, converted at the end of each day, makes billing accurate and easy to explain if a client asks.

Quick tips

  • Use the 24-hour clock to avoid AM and PM mistakes.
  • Subtract unpaid breaks but not short paid rest breaks.
  • Check rest periods between shifts, not just shift length.
  • Adjust for clock changes on daylight saving nights.

Privacy and accuracy

Everything you enter here, your shift times, stays in your browser. Nothing is uploaded, saved on a server or shared, and it's all gone when you close the page, so the tool is safe to use with real figures and private details. The results come from fixed formulas and exact conversion factors, with no AI guessing involved, so the same inputs always give the same answer. It's used every day by employers, employees and freelancers, on phones, tablets and computers, with no sign-up and no limits.

A worked example

A bakery's early shift starts at 04:30, when the bakers arrive to start the ovens, and ends at 12:45. Bakers take a 45-minute unpaid break.

The owner enters 04:30, 12:45 and 45 minutes in the time duration calculator. The shift is 7 hours 30 minutes of paid time: 7.50 decimal hours, or 450 minutes. At 18.00 an hour, that's 135.00 a shift.

The night baker who starts at 22:00 and finishes at 06:15, also with a 45-minute break, works 7 hours 30 minutes too. Previously, the night baker's timesheet had been entered as 7.30 hours, underpaying 12 minutes a shift. The owner corrects the payroll and pays the difference back.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Frequently asked questions

How do I calculate the hours between two times?

Subtract the start time from the end time, then subtract any break. This time duration calculator does it, including overnight shifts.

How do I calculate hours worked overnight?

Enter the start and end times as normal. If the end is earlier than the start, the calculator counts it as the next day.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add to the hours: 7 hours 45 minutes is 7.75. The calculator shows both.

Is 7.30 hours the same as 7 hours 30 minutes?

No. 7 hours 30 minutes is 7.5 decimal hours. 7.30 decimal hours is 7 hours 18 minutes.

Can I subtract a lunch break?

Yes. Enter the break in minutes, and it's taken off the total.

Is this time duration calculator free?

Yes. It's free, needs no sign-up and runs in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep