An hours between times calculator computes the exact duration between any two clock times, giving you the result in hours and minutes, decimal hours, and total minutes. Whether you are tracking shift lengths, billing client hours, or figuring out travel time, enter your start and end times below to get an instant answer.
Enter Start and End Times
Common Time Calculations
How to Use the Hours Between Times Calculator
Calculating the hours between two times is something most people need regularly but can be surprisingly tricky when times cross noon, cross midnight, or involve odd minutes. This calculator eliminates the mental arithmetic and gives you precise results in multiple formats so you can use them for timesheets, invoices, scheduling, or any other purpose.
Step 1: Enter Your Start Time
Use the three dropdown menus on the left to select the hour (1-12), minute (00-59), and AM or PM for your start time. For example, if your shift begins at 9:15 in the morning, select 9, 15, and AM. The dropdowns make it fast and prevent typos compared to typing the time manually.
Step 2: Enter Your End Time
Select the hour, minute, and AM/PM for your end time. The end time defaults to PM since most calculations involve a workday that ends in the afternoon or evening. If your end time is after midnight (an overnight shift), simply select the correct morning time with AM and the calculator handles the day boundary automatically.
Step 3: Add a Break (Optional)
If you want to subtract an unpaid lunch break or any other break from the total, enter the break duration in minutes. Common values are 30 minutes for a half-hour lunch or 60 minutes for a full hour. The tool subtracts the break and shows you both the gross elapsed time and the net working time so you can compare.
Step 4: Read Your Results
Click Calculate Hours to see the results. You get four numbers: hours and minutes (like 8:30), decimal hours (like 8.5), total minutes (like 510), and the break time deducted. Decimal hours are particularly useful for payroll and billing since you can multiply them directly by an hourly rate. If a break was entered, a comparison table shows the total elapsed time, break deducted, and net working time side by side.
Quick Examples
Below the calculator you will find common time calculations like a standard 9-to-5 workday, early shifts, and overnight shifts. Click any example to populate the fields and see the result instantly. These presets are a fast way to verify the calculator against known durations or to start with a template and adjust the times to match your schedule.
Tips for Accurate Calculations
Make sure you select the correct AM or PM for both times. A common mistake is entering 5 PM as the end time when you meant 5 AM, which would give you a much shorter duration than expected. For overnight shifts that cross midnight, the calculator detects that the end time is earlier than the start time and automatically adds 24 hours to compute the correct span.
Frequently Asked Questions
Is this hours between times calculator free?
Yes, this calculator is completely free to use. There is no account, registration, or payment required. All calculations happen directly in your browser, so your data stays private on your device.
Is my data safe when using this tool?
Absolutely. Everything runs locally in your browser using JavaScript. No data is sent to any server, stored, or tracked. When you close or refresh the page, your entries are gone.
How does the overnight calculation work?
If your end time is earlier than your start time, the calculator assumes you crossed midnight. For example, 10:00 PM to 6:00 AM is calculated as 8 hours. The tool automatically adds 24 hours to handle the day rollover.
What is the difference between decimal hours and hours:minutes?
Hours:minutes shows the duration in the familiar format like 8:30 (eight hours and thirty minutes). Decimal hours shows the same duration as 8.5, which is useful for timesheets, billing, and payroll calculations where fractional hours are easier to multiply by an hourly rate.
Can I subtract break time from the total?
Yes. Enter your break duration in minutes in the optional break field. The calculator subtracts the break from the total elapsed time to give you your actual working hours. Common values are 30 or 60 minutes for lunch breaks.
How do I calculate hours between two times for payroll?
Enter your shift start time and end time, then add any unpaid break minutes. The decimal hours result is what you need for payroll — multiply it by your hourly rate to get your pay. For example, 8.5 decimal hours at $20/hour equals $170.
What is the maximum time span I can calculate?
The calculator handles any time span within a 24-hour period, including overnight shifts that cross midnight. For durations longer than 24 hours, you would need to calculate multiple days separately or use our Time Card Calculator for weekly tracking.