Hours Calculator

Calculate the total hours and minutes between a start date/time and an end date/time, with an optional unpaid break subtracted and an optional hourly rate for a pay estimate. Results include decimal hours, total minutes, and an estimated pay figure when a rate is entered.

Total hours worked

8h 0m

8.00 decimal hours

Total minutes

480

Decimal hours

8.00

Estimated pay

—

Who should use it: Freelancers, contractors, and hourly workers tracking time worked on a task or shift across one or more calendar days.

How to use this calculator

  1. 1Enter the start date and start time.
  2. 2Enter the end date and end time.
  3. 3Optionally enter an unpaid break in minutes to subtract from the total.
  4. 4Optionally enter an hourly rate to see an estimated pay figure.
  5. 5Review the total hours and minutes, decimal hours, and estimated pay.

Understanding the inputs

Start dateThe calendar date your period begins.
Start timeThe time your period begins, in 24-hour HH:MM format.
End dateThe calendar date your period ends.
End timeThe time your period ends, in 24-hour HH:MM format.
Unpaid breakOptional. Minutes to subtract from the elapsed time, such as a lunch break.
Hourly rateOptional. A dollar amount per hour used to estimate pay from the decimal hours worked.

How the calculation works

The calculator combines each date with its time to form a start instant and an end instant, then subtracts the start from the end to get the elapsed time in milliseconds. It subtracts the unpaid break (converted to milliseconds) and, if the result is negative, clamps it to zero. The remaining milliseconds are converted to total minutes, then split into whole hours and minutes, and also expressed as decimal hours. When an hourly rate is provided, the decimal hours are multiplied by the rate to produce an estimated pay figure.

Elapsed minutes = max(0, (end instant − start instant) − break minutes × 60,000) ÷ 60,000. Hours = floor(minutes ÷ 60); remaining minutes = minutes mod 60; decimal hours = minutes ÷ 60; estimated pay = decimal hours × hourly rate.

Worked example

Scenario: Start June 2, 2025 at 09:00, end June 2, 2025 at 17:30, with a 30-minute unpaid break and a $20 hourly rate.

Result: 480 minutes (8h 0m), 8.00 decimal hours, and an estimated pay of $160.00.

How to interpret your result

The total hours and minutes figure is the net working time after any unpaid break is subtracted. The decimal hours value expresses the same span as a single number (for example, 7h 30m = 7.50 decimal hours), which is what the pay estimate uses. The estimated pay is a simple multiplication of decimal hours by your hourly rate and does not include overtime, taxes, or deductions.

Factors that can affect the result

  • Break subtraction: the unpaid break is subtracted from the elapsed time before any other calculation, reducing both the hours and the pay estimate.
  • Date and time: because full dates are used, the span can cross midnight and span multiple days, unlike the Time Duration calculator.
  • Hourly rate: the pay estimate only appears when a rate greater than zero is entered; without it, no pay is shown.
  • Device time zone: the start and end date/time values are interpreted in your device's local time zone.

Limitations and assumptions

  • Does not calculate overtime, penalty rates, or shift premiums; the pay estimate is a straight hours × rate calculation.
  • Does not deduct taxes, contributions, or other withholdings from the estimated pay.
  • Does not handle multiple shifts or running totals across several days; each calculation covers a single start-to-end span.
  • Does not account for daylight saving time changes that fall within the span, since it uses local clock times.
  • If the end is earlier than the start, the result is clamped to zero rather than reported as negative.

Frequently asked questions

Related calculators

Related guides

Methodology

The calculator forms start and end instants from the date and time inputs, subtracts the start from the end, subtracts any unpaid break, clamps negative results to zero, and converts the remainder to minutes, hours, decimal hours, and an optional pay estimate.

Sources and references

  • Mathematical basis — the calculation is a direct time-span difference with an optional break subtraction and a straight hours × rate pay estimate; no external source is required
Last reviewed: August 2026. Read our editorial policy.

Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.