Hours Calculator

Enter your start time and end time to calculate total hours worked. Optionally add a break duration to deduct unpaid time. Get results in both hh:mm format and decimal hours — perfect for timesheets, payroll, and time cards.

Unpaid break time to deduct

Unpaid break minutes to deduct

Results

Total Time (hh:mm)

--

Total Hours (Decimal)

--

Total Minutes

--

Break Deducted

--

Work Time vs Break Time

Frequently Asked Questions

How do I calculate hours between two times?

Enter your start time and end time using the hour and minute fields, select AM or PM for each, then the calculator subtracts the start from the end to give you the total duration. If your shift crosses midnight, the calculator handles this automatically by adding 24 hours.

How do I deduct a lunch break or unpaid break?

Enter the break duration in the Break Hours and Break Minutes fields under the Break Deduction section. This amount is subtracted from the total time between your start and end times, giving you the net hours worked.

What is the difference between hh:mm time and decimal hours?

hh:mm format shows time as hours and minutes — for example, 7 hours and 30 minutes appears as 7:30. Decimal hours convert the minutes to a fraction of an hour, so 7:30 becomes 7.50 hours. Decimal format is commonly used in payroll systems for easier multiplication by an hourly wage.

How do I convert hh:mm to decimal hours?

Divide the minutes by 60 and add to the hours. For example, 8 hours 45 minutes = 8 + (45 ÷ 60) = 8.75 decimal hours. The calculator does this conversion automatically in the results.

Can this calculator handle overnight shifts that cross midnight?

Yes. If your end time is earlier than your start time (for example, starting at 10:00 PM and ending at 6:00 AM), the calculator detects this and adds 24 hours to the end time, correctly computing the overnight duration.

How do I use this calculator for payroll or a time sheet?

Enter the start and end times for each work session, deduct any unpaid breaks, and use the decimal hours result to multiply by your hourly rate. For a full weekly timesheet with multiple days, you can run the calculator separately for each day and sum the decimal hours.

What does 12:00 AM and 12:00 PM mean?

12:00 AM is midnight (the start of a new day), and 12:00 PM is noon (midday). This follows the standard convention where AM means before midday and PM means after midday. The calculator follows this convention precisely.

Can I use a 24-hour (military) clock format?

Yes. Switch the Clock Format setting to '24-Hour Clock'. In this mode, hours run from 0 to 23, so 1:00 PM becomes 13:00, and midnight is 0:00. The AM/PM selector is ignored when 24-hour mode is active.

More Math Tools