Hour Calculator

Calculate the duration between two times or dates in hours and minutes.

hourglass_bottomHour Calculator
schedule

Calculate Hours Between Two Times

Start Time
End Time
date_range

Calculate Hours Between Two Dates

Start Date & Time
End Date & Time
info

About Hour Calculator

The Hour Calculator finds the exact duration between two time points and expresses it in hours and minutes, plus a decimal hours figure for use in payroll, invoicing, or spreadsheets. It has two dedicated sections: a time-only mode for same-day spans (09:00 to 17:30, for example) and a full date-and-time mode for multi-day gaps such as a shift that spans a calendar rollover or a project that runs across several weeks.

The time-only section is particularly useful for shift workers and freelancers who clock in and out on the same day. If the end time you enter is earlier than the start time, the calculator automatically assumes the shift crosses midnight and adds 24 hours — so entering 22:00 to 06:30 correctly returns 8 hours 30 minutes instead of a confusing negative number. The date-and-time section accepts any two date-and-time pairs, regardless of how far apart they are, and returns the duration in days, hours, minutes, and a combined decimal-hours total.

Every calculation runs entirely in your browser using the built-in JavaScript Date API. No times or dates are sent to any server, stored, or logged. The tool works fully offline once the page loads, and there is no sign-up, no fee, and no limit on how many calculations you run.

star

Key Features

check_circle

Midnight-crossing shift support

In time-only mode, if the end time is earlier than the start time the calculator automatically wraps past midnight, so overnight shifts like 22:00 to 06:00 return the correct 8-hour result without any manual adjustment.

check_circle

Decimal hours output

Each result shows both a human-readable breakdown (e.g. 7 hours 45 minutes) and a decimal figure (7.75 hours) ready to paste into a payroll spreadsheet, invoice, or billing system.

check_circle

Multi-day date-and-time mode

The second section accepts full date-and-time pairs, so you can calculate the exact duration between any two moments — even weeks or months apart — and get the result expressed in days, hours, and minutes.

check_circle

100% client-side calculation

All arithmetic runs locally in your browser using the JavaScript Date API. Nothing is uploaded or sent to a server, so sensitive shift records, payroll data, or project timelines stay on your device.

check_circle

Instant results on click

Hit the Calculate button and the result appears immediately. Each section has its own Clear button so you can reset one calculation without disturbing the other.

check_circle

No sign-up or cost

The tool is completely free with no account required. Run as many calculations as you need — there are no rate limits or paywalls.

help

How to Use

01

Enter Times

Input a start time and end time, or use the date-and-time mode for calculations spanning multiple days.

02

Calculate

Click Calculate to see the duration in hours and minutes.

03

Copy or Reset

Use the result for your needs, or click Clear to start a new calculation.

code_blocks

Example

Enter a start time of 08:45 and an end time of 17:15 in the time-only section. The calculator returns the duration in hours and minutes along with a decimal total ready for a timesheet.

Start time / End time
Start Time: 08:45
End Time:   17:15
Duration result
Duration:  8 hours 30 minutes
Decimal:   8.50 hours
lightbulb

Common Use Cases

  • arrow_circle_right

    Timesheet and payroll entry

    Employees and contractors who track billable time by the hour can enter clock-in and clock-out times to get the decimal figure (e.g. 7.75 hours) that payroll software and invoicing tools expect, avoiding manual fraction arithmetic.

  • arrow_circle_right

    Overnight and rotating shift work

    Nurses, security staff, and logistics workers whose shifts cross midnight benefit from the automatic next-day wrap. Entering a night shift like 22:30 to 06:00 produces the correct 7 hours 30 minutes instead of a negative value.

  • arrow_circle_right

    Freelance project billing

    Designers, developers, and consultants billing hourly can total each work session quickly, then add sessions across a week to confirm the total hours to invoice — without opening a spreadsheet.

  • arrow_circle_right

    Multi-day project duration

    Project managers who need to know the exact elapsed time between a kick-off meeting and a delivery deadline — spanning days or weeks — can use the date-and-time mode to get a precise hours figure rather than a rough day estimate.

  • arrow_circle_right

    Event timing and scheduling

    Organisers calculating how long a conference, workshop, or travel itinerary runs from start to finish can measure the span precisely and confirm it fits within venue or transport constraints.

quiz

Frequently Asked Questions

What is an Hour Calculator? expand_more
An Hour Calculator computes the duration between two time points, showing the result in hours and minutes. It is useful for tracking work hours, scheduling, and time management.
What happens if the end time is before the start time? expand_more
In time-only mode, the calculator assumes the end time is on the next day, so overnight shifts are handled correctly. In date-and-time mode, it calculates the exact difference between the two date-time pairs, which may be negative if the end datetime is earlier than the start.
Can I calculate hours across multiple days? expand_more
Yes. Use the date-and-time section to calculate hours between any two dates and times, even if they are weeks or months apart. The result is expressed in days, hours, and minutes plus a decimal-hours total.
What does the decimal hours figure mean? expand_more
Decimal hours represent the duration as a single number — for example 8 hours 30 minutes becomes 8.50 hours. This format is required by most payroll systems, billing apps, and spreadsheet formulas that expect hours as a decimal rather than an hours-and-minutes pair.
How is this different from the Time Calculator? expand_more
The Time Calculator is a multi-mode utility covering time arithmetic (adding or subtracting time values, finding how much time has passed from a specific moment). The Hour Calculator is focused on a single task: measuring the duration between two clock times or date-times and presenting it in hours, minutes, and decimal hours. If you only need to know "how many hours between X and Y?", this tool gives you that answer directly without extra modes to navigate.
How is this different from the Days Calculator? expand_more
The Days Calculator specialises in counting calendar days and business days between two calendar dates, and breaks the result down into weeks, total hours, minutes, and seconds. The Hour Calculator focuses on the hours-and-minutes output specifically, and adds the decimal-hours figure needed for payroll or invoicing. Use the Days Calculator when you want a day-count with business-day analysis; use the Hour Calculator when your end goal is a billable hours figure.
Is my data private? expand_more
Yes. All calculations are performed locally in your browser using the JavaScript Date API. No data is sent to any server, stored, or logged. The tool works fully offline once the page has loaded.
Is there a limit on how many calculations I can run? expand_more
There is no limit. The tool is free with no account required, and because everything runs in your browser there are no server-side rate limits. Run as many calculations as you need.