Time Calculator
Hours between times ยท Add or subtract ยท Decimal hours
Duration
8h 0m
Decimal Hrs
8.00
Minutes
480
Related Tools
Time Calculator โ Calculate Hours, Duration and Time Arithmetic
Whether you are calculating hours worked for a timesheet, figuring out when a meeting ends, planning a schedule across midnight, or just trying to answer "how many hours is 8:30 AM to 5:00 PM?", a time calculator eliminates the mental arithmetic and the off-by-one mistakes that come with counting hours manually.
This tool does two things: it calculates the duration between a start time and an end time (in hours and minutes, decimal hours, and total minutes), and it adds or subtracts a duration from any base time to give you the resulting clock time. Both operations handle midnight crossings automatically. All calculations happen in your browser โ nothing is sent to a server.
The most common use cases are timesheets and payroll (where decimal hours are required), shift scheduling, project time tracking, travel planning, and cooking or exercise timing. The decimal hours output is the format used by every payroll system โ understanding it and being able to calculate it accurately is a practical skill for anyone paid by the hour.
How to Calculate Hours Worked
Calculating hours worked sounds trivial until you do it manually for a shift like 8:45 AM to 5:20 PM. The arithmetic involves borrowing from hours, which most people find error-prone when done quickly. The correct method:
Duration = end time โ start time
8:45 AM to 5:20 PM โ 17:20 โ 08:45
= (17h โ 8h) hours + (20m โ 45m) minutes
= 9h โ 25m = 8h 35m (borrow 1 hour โ 60 min โ 25m = 35m)
Decimal: 8 + (35 รท 60) = 8 + 0.583 = 8.58 hours
The "borrow from hours" step is where errors creep in, especially when calculating quickly across multiple shifts. The Time Calculator handles this automatically and also converts the result to decimal hours, which is what employers and payroll software actually require.
For a shift with an unpaid break, calculate the total shift duration then subtract the break. An 8:00 AM to 5:00 PM shift with a 30-minute unpaid lunch is 9 hours gross minus 0.5 hours break = 8.50 hours net. Many employers track gross hours and deduct standard breaks automatically โ confirm whether your employer requires gross or net hours on timesheets.
Decimal Hours vs Hours and Minutes
There are two ways to express time duration: hours-and-minutes format (8h 30m) and decimal hours (8.50). They represent the same duration but are used in different contexts. Decimal hours dominate in payroll, project billing, and any calculation that multiplies time by a rate.
The reason is arithmetic: you cannot multiply 8:30 by $20/hour and get a dollar amount directly. But 8.50 ร $20 = $170.00 works perfectly. This is why every professional timesheet, payroll system, and project management tool stores time in decimal format.
The conversion is simple: divide the minutes by 60 and add to the whole hours.
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 0 min | .00 | 30 min | .50 |
| 5 min | .08 | 35 min | .58 |
| 10 min | .17 | 40 min | .67 |
| 15 min | .25 | 45 min | .75 |
| 20 min | .33 | 50 min | .83 |
| 25 min | .42 | 55 min | .92 |
Memorize the four "quarter-hour" values: 15 minutes = .25, 30 minutes = .50, 45 minutes = .75, 60 minutes = 1.00. These cover the most common timesheet entries. For any other minute value, the calculator provides the exact decimal.
Common Work Hours Reference
The table below covers the most-searched work schedule combinations. All durations are for the shift as listed โ subtract any unpaid break time for net payable hours.
| Start | End | Duration | Decimal Hours |
|---|---|---|---|
| 8:00 AM | 4:00 PM | 8h 0m | 8.00 |
| 8:00 AM | 4:30 PM | 8h 30m | 8.50 |
| 8:00 AM | 5:00 PM | 9h 0m | 9.00 |
| 8:30 AM | 5:00 PM | 8h 30m | 8.50 |
| 9:00 AM | 5:00 PM | 8h 0m | 8.00 |
| 9:00 AM | 5:30 PM | 8h 30m | 8.50 |
| 9:00 AM | 6:00 PM | 9h 0m | 9.00 |
| 7:00 AM | 3:00 PM | 8h 0m | 8.00 |
| 7:30 AM | 4:30 PM | 9h 0m | 9.00 |
| 6:00 AM | 2:00 PM | 8h 0m | 8.00 |
| 10:00 PM | 6:00 AM | 8h 0m | 8.00 (overnight) |
| 11:00 PM | 7:00 AM | 8h 0m | 8.00 (overnight) |
Overnight Shifts and Midnight Crossings
Overnight shifts โ where work starts in the evening and ends the following morning โ cause confusion in manual time calculations because subtracting a larger end time from a smaller start time produces a negative number.
The correct approach is to add 24 hours (1,440 minutes) when the end time is earlier than the start time. A shift from 10:00 PM (22:00) to 6:00 AM (06:00):
06:00 โ 22:00 = โ16 hours (wrong)
Add 24 hours: โ16 + 24 = 8 hours (correct)
Or: hours from 10 PM to midnight (2h) + midnight to 6 AM (6h) = 8h
The Time Between tab detects this automatically โ when the end time is before the start time, it adds 24 hours and shows an orange "crosses midnight" notice. This handles healthcare shifts, hospitality workers, overnight logistics, security shifts, and any other schedule that spans midnight.
For multi-day shifts spanning more than 24 hours (rare in timesheets but possible in some roles), calculate each calendar day separately and sum the durations.
Adding and Subtracting Time Durations
The second mode โ Add / Subtract โ answers questions of the form "if my meeting starts at 2:45 PM and runs for 1 hour 30 minutes, when does it end?" or "my flight lands at 11:20 PM and I have a 2-hour layover โ what time is my connection?"
Enter the base time (14:45 for 2:45 PM), select "+ Add Time", enter 1 hour and 30 minutes, and the result is 4:15 PM / 16:15. For subtracting: "My deadline is 5:00 PM and the task takes 3 hours 45 minutes โ when do I need to start?" Enter 17:00, select "โ Subtract Time", enter 3 hours 45 minutes, and the result is 1:15 PM / 13:15.
The Add/Subtract tab handles midnight rollovers automatically in both directions. Adding 3 hours to 11:00 PM correctly gives 2:00 AM. Subtracting 4 hours from 1:30 AM correctly gives 9:30 PM the previous evening.
Time Calculations in Different Contexts
Payroll and timesheets. The decimal hours output from Time Between is the direct input for payroll calculations. For a pay rate of $22.50/hour and a shift of 7h 45m (7.75 decimal hours): $22.50 ร 7.75 = $174.38 gross pay. Many time-tracking apps display both formats โ confirm which one your employer requires on submitted timesheets. Most formal payroll processors (ADP, Gusto, QuickBooks Payroll) require decimal hours.
Project management and billing. Consultants and freelancers billing by the hour track time worked per task. Adding up daily durations across a week gives total billable hours. For a freelancer billing $85/hour who worked 4h 30m, 3h 45m, 5h 15m, and 6h 00m on a project: 4.50 + 3.75 + 5.25 + 6.00 = 19.50 hours ร $85 = $1,657.50. The decimal format makes weekly aggregation straightforward.
Travel and scheduling. Flight duration calculators, travel itinerary planning, and meeting scheduling across time zones all involve adding or subtracting time from a base time. A flight departing at 6:45 PM for 11 hours 20 minutes lands at 6:05 AM the next day (6:45 PM + 11h 20m = 6:05 AM + 1 day). This is why flight booking systems always list arrival times with "+1" day indicators.
Cooking and intervals. Recipes with multiple timed stages โ "marinate for 2 hours, preheat 45 minutes before serving, rest 20 minutes after cooking" โ require working backward from a target meal time. If dinner is at 7:30 PM: cooking ends at 7:10 PM, cooking starts at 6:15 PM (55-minute cook time), marinating starts at 4:15 PM. The Add/Subtract tab makes this reverse planning straightforward.
Exercise and sports. HIIT interval training protocols (work period + rest period, repeated), race finish time calculations, and gym session scheduling all benefit from precise time addition. A protocol of 20 seconds on / 10 seconds off for 8 rounds takes exactly 4 minutes. A marathon runner at 4h 30m pace who started at 8:00 AM finishes at 12:30 PM.
Timesheet Rounding and Legal Requirements
Many employers round time entries to the nearest 6-minute increment (0.1 hour) or the nearest 15 minutes (0.25 hour). The US Department of Labor permits "rounding" practices as long as they average out in employees' favor over time. A rule that always rounds to the nearest 15 minutes must round both up and down โ consistently rounding down is a wage violation.
Common rounding rules: 7-minute rule (round to nearest quarter-hour โ 0โ7 minutes rounds down, 8โ14 minutes rounds up), 5-minute rule (round to nearest 0.1 hour), and exact-time systems (some jurisdictions, particularly California, require recording exact start and stop times). Verify your employer's policy and local labor law requirements before applying any rounding to submitted timesheets.
For payroll purposes, this time calculator outputs exact decimal hours โ you can apply any required rounding yourself after viewing the result. The calculator does not round your inputs or outputs.
Frequently Asked Questions
How many hours is 9 to 5?
9:00 AM to 5:00 PM is exactly 8 hours (8.00 decimal hours, 480 minutes). This is the standard full-time workday in most industries.
How many hours is 8:30 AM to 5:00 PM?
8:30 AM to 5:00 PM is 8 hours 30 minutes (8.50 decimal hours). Common for workdays with a 30-minute unpaid lunch from 9:00 AM to 5:00 PM, yielding 8.00 net payable hours.
How many hours is 7:30 AM to 4:30 PM?
7:30 AM to 4:30 PM is exactly 9 hours (9.00 decimal hours, 540 minutes).
How many hours is 8 AM to 6 PM?
8:00 AM to 6:00 PM is exactly 10 hours (10.00 decimal hours, 600 minutes).
How many hours from 6 AM to 2 PM?
6:00 AM to 2:00 PM is exactly 8 hours (8.00 decimal hours, 480 minutes). Common for early shift workers in retail, hospitality, and healthcare.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add to the whole hours. 7h 30m = 7 + (30รท60) = 7.50. 8h 45m = 8 + (45รท60) = 8.75. 6h 20m = 6 + (20รท60) = 6.33.
What is the difference between 8h 30m and 8.5 hours?
They are identical durations expressed differently. 8h 30m = hours:minutes format. 8.5 = decimal format. Conversion: 30 รท 60 = 0.5, so 8h 30m = 8.5 hours. Use the decimal form for payroll: 8.5 hours ร $25/hr = $212.50 gross.
How do I calculate an overnight shift?
Enter the start and end times normally. When the end time is earlier than the start time โ for example 22:00 start and 06:00 end โ the calculator automatically detects the overnight crossing and adds 24 hours. The result shows an amber notice confirming the overnight interpretation. 10:00 PM to 6:00 AM = 8 hours.
How do I calculate time worked with a lunch break?
Calculate the gross shift duration, then subtract the unpaid break. 8:00 AM to 5:00 PM = 9 gross hours. Subtract 1-hour unpaid lunch = 8.00 net hours. Alternatively, calculate two segments separately and add: 8 AMโ12 PM = 4h, 1 PMโ5 PM = 4h, total = 8h.
How do I add hours and minutes together?
Switch to the Add / Subtract tab, enter the base time, select "+ Add Time", then enter the hours and minutes to add. The result appears in both 12-hour and 24-hour format. The calculator handles midnight rollovers automatically โ adding 3 hours to 11:00 PM gives 2:00 AM.
What is decimal time used for besides payroll?
Decimal time is used in billing (consulting, legal, medical hours), project management software, aviation (flight hours for pilot certification), scientific calculations, and data systems where time is stored as a number. Any system that needs to multiply time by a rate or sum durations arithmetically uses decimal hours.
Is this time calculator free?
Yes. The Nutilz Time Calculator is completely free with no sign-up, no account, and no usage limits. All calculations run instantly in your browser with no data sent to any server.
Need to find the difference between two dates in days? Use the Date Calculator. Working across time zones? Try the Timezone Converter. Want to calculate your hourly rate or annual salary? The Salary Calculator converts between all pay periods. Browse all free calculators at Nutilz.