Hours Calculator

Find the hours and minutes between two times or two dates, take off unpaid breaks and get decimal hours for timesheets and payroll.

Hours calculator
Calculate hours between
Total time

    With two times, an end time earlier than the start time is treated as the next day, so overnight shifts work. Results don't adjust for daylight saving time changes.

    On this page

    The hours calculator finds the time between a start time and an end time, takes off any unpaid break and gives the answer in hours and minutes and in decimal hours. A shift from 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.50 hours. With a 30-minute unpaid lunch break, it’s 8 hours, or 8.00 hours. Overnight shifts work too: 10:00 PM to 6:30 AM is 8 hours 30 minutes.

    For longer periods, switch to Two dates and times to count the hours between, say, 8:00 AM on Wednesday and 5:15 PM on Friday, which is 57 hours 15 minutes. The decimal figure is the one most payroll systems, invoices and timesheets need.

    How to use the hours calculator

    1. Choose the mode. Use Two times for a single shift or task within a day or overnight. Use Two dates and times when the period spans more than one day.
    2. Enter the start and end times. Your device shows them in 12-hour or 24-hour format depending on its settings; both work.
    3. Enter any unpaid break in minutes, such as 30 for a half-hour lunch. Leave it blank if there’s no break to deduct.
    4. Select Calculate hours. You’ll see the total in hours and minutes, in decimal hours to two places, and in minutes. If you entered a break, you’ll also see the time before the break was taken off.

    How hours are calculated

    The calculator converts both times to minutes after midnight, subtracts the start from the end and then subtracts the break.

    • 9:00 AM is 540 minutes after midnight, and 5:30 PM is 1,050 minutes.
    • 1,050 − 540 = 510 minutes.
    • 510 − 30 minutes of break = 480 minutes.
    • 480 ÷ 60 = 8 hours, or 8.00 in decimal.

    Overnight shifts

    When the end time is earlier than the start time, the shift must finish the next day, so the calculator adds 24 hours to the end time. For 10:00 PM to 6:30 AM: 6:30 AM is 390 minutes after midnight, plus 1,440 minutes for the next day gives 1,830. Subtracting the start of 1,320 minutes leaves 510 minutes, or 8 hours 30 minutes. If the start and end times are the same, the calculator assumes a full 24-hour period.

    Periods over several days

    In the dates and times mode, the calculator measures from the start date and time to the end date and time. From Wednesday 18 November 2026 at 8:00 AM to Friday 20 November 2026 at 5:15 PM is 2 days, 9 hours and 15 minutes, which is 57 hours 15 minutes or 57.25 hours.

    Converting to decimal hours

    Payroll and billing software usually needs hours as a decimal number, not hours and minutes. To convert, divide the minutes by 60 and add the result to the whole hours.

    MinutesDecimalMinutesDecimal
    50.08350.58
    100.17400.67
    150.25450.75
    200.33500.83
    250.42550.92
    300.50601.00

    For example, from 8:15 AM to 12:40 PM is 4 hours 25 minutes. Since 25 ÷ 60 = 0.4167, that’s 4.42 hours to two decimal places. The most common mistake is writing 4 hours 25 minutes as 4.25 hours, which underpays by 10 minutes.

    Working out pay from hours

    Multiply the decimal hours by the hourly rate. At $18.50 an hour, an 8-hour shift pays 8 × 18.50 = $148.00, and 4.42 hours pays about $81.77. Always use the decimal figure, never the hours-and-minutes figure, when you multiply. To total a full week with several shifts, overtime and pay, the time card calculator is quicker.

    Breaks: paid and unpaid

    Only unpaid breaks should be entered in the break box. Many employers pay short rest breaks, such as a 10- or 15-minute coffee break, and don’t pay meal breaks of 30 minutes or more. In the United States, federal law generally treats short breaks of about 5 to 20 minutes as paid working time, while bona fide meal periods of 30 minutes or more, when the employee is fully relieved of duties, don’t need to be paid. Rules differ by state and country, so check your contract or local labour law.

    Common uses

    • Employees: checking the hours on a payslip, recording a shift and making sure overnight shifts are counted correctly.
    • Employers and managers: building rotas, checking timesheets and calculating hours for payroll.
    • Freelancers and contractors: converting time spent on a job into billable decimal hours for an invoice.
    • Students and volunteers: logging study, placement or volunteering hours.
    • Parking, rentals and care: working out how long a car was parked, how many hours equipment was hired, or how long a babysitter or carer was booked.
    • Travel and events: finding the length of a journey or event that runs over several days.

    Tips for accurate results

    • Check AM and PM. A start of 7:00 PM instead of 7:00 AM changes the answer by 12 hours. The summary shows the times in 12-hour format so you can spot mistakes.
    • Use the dates mode for long periods. The two-times mode can’t go beyond 24 hours, because it only knows clock times.
    • Round consistently. Some employers round to the nearest 5, 6 or 15 minutes. Round the start and end times according to your workplace policy before entering them, or round the final total, but don’t mix both.
    • Remember clock changes. On the night daylight saving time starts or ends, an overnight shift is an hour shorter or longer than the clock times suggest. Adjust the result by one hour if your shift crosses the change.

    Weekly, monthly and yearly hours

    Once you know the length of a typical shift, it’s easy to scale up. Five 8-hour shifts make a 40-hour week, and five shifts of 9:00 AM to 5:30 PM with a 30-minute unpaid lunch also come to 40 hours. A 40-hour week over 52 weeks is 2,080 hours a year, which is the figure often used to turn an hourly rate into an annual salary and back again. Divided by 12, that’s about 173.33 hours a month.

    Many full-time jobs in the UK and elsewhere are 37.5 hours a week: five days of 7.5 hours, such as 9:00 AM to 5:00 PM with a 30-minute unpaid break. Over 52 weeks that’s 1,950 hours. Part-time contracts are usually expressed the same way, so a 0.6 role on a 37.5-hour week is 22.5 hours. Holidays and public holidays reduce the hours actually worked, so check whether a contract counts them when comparing jobs.

    Hours calculations in spreadsheets

    In Excel or Google Sheets, subtract the start time cell from the end time cell to get the time worked. For overnight shifts, use MOD(end - start, 1), which adds a day when the end is earlier than the start. Multiply the result by 24 to get decimal hours, and subtract a break by taking off its minutes divided by 1,440. A few checks against this calculator will confirm your formulas give the same totals.

    Why decimal hours matter

    Hours and minutes use base 60, while money uses base 10, so they can’t be multiplied together directly. Converting to decimal hours puts time into the same base as pay rates and prices. That’s why timesheets and invoices almost always show hours such as 7.75 or 37.50 rather than 7:45 or 37:30, and why getting the conversion right matters for both workers and employers.

    Related calculations

    Two other tools work well alongside this one: the time duration calculator, to find the time between two clock times, and the time calculator, to add and subtract days, hours, minutes and seconds.

    Frequently asked questions

    Subtract the start time from the end time, then take off any unpaid break. For example, 9:00 AM to 5:30 PM with a 30-minute break is 8 hours.

    9:00 AM to 5:00 PM is 8 hours. With a 30-minute unpaid lunch break, it's 7.5 hours of paid work.

    Enter the start and end times as normal. When the end time is earlier than the start time, the calculator treats it as the next day, so 10:00 PM to 6:30 AM is 8 hours 30 minutes.

    Divide the minutes by 60 and add the result to the hours. For example, 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours.

    15 minutes is 0.25 hours. 30 minutes is 0.5 hours and 45 minutes is 0.75 hours.

    Enter only unpaid breaks in the break box. Paid breaks count as time worked, so leave them in.

    Choose Two dates and times and enter the start and end dates as well as the times. For example, 8:00 AM Wednesday to 5:15 PM Friday is 57.25 hours.

    Multiply the decimal hours by the hourly rate. For example, 8.5 hours at $20 an hour is $170.

    Because 25 minutes is 25/60 of an hour, which is about 0.42. So 4 hours 25 minutes is about 4.42 hours.

    No. It assumes every hour on the clock is a real hour. If a shift crosses a clock change, add or subtract one hour.

    Yes. In the Two times mode, enter the same start and end time and the calculator counts a full 24 hours. For longer periods, use the dates and times mode.