Hours Calculator

When you need to check hours, the Hours Calculator keeps the date and time arithmetic in one place. Review the input format before accepting the answer.

Total time
8h 0m
Decimal hours8.00
Total minutes480

If the end time is earlier than the start time, it is treated as the next day (an overnight shift).

✉ Email me this result
</> Embed this calculator

Paste this into any website or blog post. It is free — the small "powered by" link must stay visible.

How it works

The start and end times are converted to minutes. If the end is earlier than the start, the calculator assumes the shift runs past midnight and adds a day. It then subtracts any break to give the worked time, shown in hours and minutes and as a decimal number of hours.

How to use the Hours Calculator

Enter the values requested by the tool and start with one realistic example. Read the result together with its unit or label, then change one input at a time if you want to compare options. Keeping a note of the original figures makes the calculation easier to check later.

Dates, daylight saving and time zones can affect a result. Check the displayed inputs if the period crosses a calendar or location boundary.

Frequently Asked Questions

Does it handle overnight shifts?
Yes. If the end time is earlier than the start time, it is treated as the next day so the total is correct.
How is a lunch break handled?
Enter the break in minutes and it is subtracted from the total worked time.
What is decimal hours used for?
Payroll often uses decimal hours, where 30 minutes is 0.5 hours, to multiply by an hourly rate.