Hours calculator
Enter a start and end time to see the hours in between, minus any unpaid break, as hours and minutes and as decimal hours. Switch to Timesheet to total a whole week.
What you type stays in your browser
9:00 AM to 5:00 PM = 8 h 0 min, minus 0 min break = 8 h 0 min = 8 hours
- Decimal hours
- 8
- Total minutes
- 480
In short
Hours worked = end time − start time − unpaid break. From 8:45 AM to 5:15 PM is 8 h 30 min; minus a 45-minute lunch leaves 7 h 45 min. In decimal hours divide the minutes by 60: 45 ÷ 60 = 0.75, so 7.75 hours.
How to calculate the hours between two times
- Leave the mode on One shift and enter the Start time and End time. An end time earlier than the start counts as the next day, so 10:00 PM to 6:00 AM is 8 hours.
- Type an Unpaid break in minutes, such as 30 for a lunch break; it is subtracted from the time on the clock.
- Read the result as hours and minutes in the large figure, with Decimal hours and Total minutes underneath and the working shown in full.
- For a whole week choose Timesheet, enter each day's in and out times and break, and add an Hourly rate (optional) to see the pay.
Why 8:20 is not 8.20 hours
Clock time counts minutes in sixties, decimals count in tenths and hundredths. Twenty minutes is 20 ÷ 60 = 0.33 of an hour, so 8 hours 20 minutes is 8.33 hours, not 8.20. Typing 8.20 into a payroll sheet underpays by 13 hundredths of an hour, about 8 minutes, every day.
The calculator shows both forms side by side and works out pay from the exact minutes rather than the rounded decimal, so 8 h 20 min at a rate of 18.50 gives 154.17, not the 154.11 you would get from 8.33 × 18.50.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time and then subtract unpaid breaks. A shift from 7:30 AM to 4:00 PM is 8 h 30 min on the clock; with a 30-minute lunch that is 8 hours worked.
How do I calculate hours for a shift that goes past midnight?
Add 24 hours to the end time before subtracting. From 10:00 PM (22:00) to 6:30 AM is 6:30 + 24:00 − 22:00 = 8 h 30 min. The calculator does this automatically whenever the end time is earlier than the start time and notes that the shift ends the next day.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75 and 10 minutes is about 0.17. So 7 hours 45 minutes is 7.75 decimal hours.
How do I calculate pay from hours and minutes?
Convert the time to decimal hours and multiply by the hourly rate. 7 h 45 min at 20 per hour is 7.75 × 20 = 155. Type your rate into Hourly rate (optional) and the Pay figure appears under the result.
How many hours is 9 to 5?
9:00 AM to 5:00 PM is 8 hours on the clock. With an unpaid 30-minute lunch it is 7 h 30 min, or 7.5 hours, which makes 37.5 hours over a five-day week.
What if the start and end times are the same?
The result is 0 hours. To count a full 24-hour shift, split it into two entries in the Timesheet, for example 08:00 to 20:00 and 20:00 to 08:00, which add up to 24 hours.
Does it show 12-hour or 24-hour times?
The time fields follow your device's settings, so they show AM and PM or a 24-hour clock the same way as the rest of your system. The calculation is identical either way.
Are my times saved or sent anywhere?
No. Everything is calculated in your browser as you type, and nothing is stored or sent. Reloading the page resets the fields.
Minutes to decimal hours
Payroll and invoicing systems usually want decimal hours. Divide the minutes by 60 and round to two places; these are the values most people need.
- 5 min = 0.08 h, 10 min = 0.17 h, 12 min = 0.2 h
- 15 min = 0.25 h, 20 min = 0.33 h, 25 min = 0.42 h
- 30 min = 0.5 h, 35 min = 0.58 h, 40 min = 0.67 h
- 45 min = 0.75 h, 50 min = 0.83 h, 55 min = 0.92 h
Worked examples
Each example follows the same steps: end minus start, minus the unpaid break, then minutes ÷ 60 for the decimal.
- Day shift: 8:00 AM to 4:30 PM with a 30-minute lunch = 8 h 30 min − 30 min = 8 h 0 min = 8.0 hours.
- Short shift: 11:15 AM to 3:05 PM with no break = 3 h 50 min = 3.83 hours.
- Night shift: 11:00 PM to 7:15 AM with a 45-minute break = 8 h 15 min − 45 min = 7 h 30 min = 7.5 hours.
- Week: five days of 7 h 30 min = 37 h 30 min = 37.5 hours; at 22.40 per hour that is 840.00.
Paid and unpaid breaks
Only unpaid breaks should go into the Unpaid break field. In the United States, short rest breaks of about 5 to 20 minutes are generally counted as paid work time under federal rules, while bona fide meal periods of 30 minutes or more, during which you are fully relieved of duty, are usually unpaid. Check your contract or local law, since rules differ between countries and states.
For a timesheet with several days, the time card calculator opens straight in Timesheet mode. To count days rather than hours, use the days between dates calculator, and to compare working hours across cities, the time zone converter.
How your files stay private
This tool runs with JavaScript inside your browser tab. What you type, the settings you choose and the results stay in the page's memory and disappear when you close it. Nothing is sent to a server; a few display settings may be remembered in your own browser.
Presets
Related tools
- Time zone converter Convert a date and time between 70+ world time zones with daylight saving time handled for you.
- Days between dates Days, weeks, years and months, business days and hours between any two dates.
- Date calculator Add or subtract days, weeks, months, years or business days from any date and get the weekday.
- Online timer Countdown timer with a loud alarm, full screen mode and a lap stopwatch. Exact in background tabs.
- Days until Live countdown to any date or holiday, with weeks, weekdays left and the target's day of the week.
- Percentage calculator Percent of a number, percent of a total, the whole from a part, and percentage change in one place.
Last updated Nov 20, 2026