MFAYSAL.DEV

Hours Calculator

Enter start time, end time and any unpaid break. Free, private and runs in your browser.

Your details

Result

How to calculate hours between two times

Convert both clock times to minutes from midnight, subtract start from end, then subtract any unpaid break. Example: 09:00 to 17:30 is 510 minutes. Minus a 30-minute lunch = 480 minutes = 8.0 hours.

Overnight shifts

Tick Overnight shift when the end time is after midnight (for example 22:00–06:00). The calculator adds 24 hours to the end time before subtracting.

Decimal hours for payroll

Many payroll systems want decimal hours: 8 hours 15 minutes = 8.25. Divide total minutes by 60. For adding several durations in hh:mm:ss, use the time calculator. For business days between calendar dates, use the working days calculator.

Frequently asked questions

How many hours is 9am to 5:30pm with a 30-minute lunch?

8.0 hours.

How do I handle a night shift?

Tick Overnight shift, or enter an end time that is earlier than the start – the tool treats it as next day.

What are decimal hours?

Hours as a decimal fraction, for example 7.5 instead of 7:30.

Does this include unpaid breaks automatically?

Only the minutes you enter in the break field are deducted.

Can I calculate weekly hours?

Work out each day, then add the decimal hours (or use the time calculator to sum hh:mm:ss).

✨ New: Remove the background from any image free – private, in your browser, transparent PNG.

Related free tools

Browse all 108 free tools →

Sources

Note: This free tool runs entirely in your browser. No data is sent or stored. Results are for information only.