Hours Calculator
Calculate total hours and minutes between two times. Perfect for tracking work shifts, overnight hours, project duration, and time tracking. Handles overnight shifts automatically.
How to Use This Hours Calculator
To calculate hours between two times:
- Enter Start Time: Input the hour (0-23) and minute (0-59) in 24-hour format.
- Enter End Time: Input the ending hour and minute. If earlier than start time, it assumes the next day.
- View Results: The calculator shows total hours, total minutes, and decimal hours for easy conversion to payroll systems.
For overnight shifts, just enter the times as normal—the calculator will automatically account for the midnight crossing.
What Is Hours?
An hours calculator determines the total duration between two times, displaying the result in multiple formats: hours and minutes, total minutes, and decimal hours. It automatically handles overnight shifts and spans across midnight.
This tool is essential for time tracking, payroll, project management, billing, and scheduling. Decimal hours are particularly useful for payroll systems and invoicing software.
Formula & Methodology
The hours calculation uses these formulas:
- Convert to Minutes: (Hour × 60) + Minute
- Total Duration: End Minutes − Start Minutes (add 1,440 minutes if end is before start)
- Hours & Minutes: Hours = Total Minutes ÷ 60 (whole number), Minutes = Total Minutes mod 60
- Decimal Hours: Total Minutes ÷ 60
The calculator handles overnight shifts by detecting when end time is before start time and adding 24 hours automatically.
Practical Examples
Example 1 (Regular Shift): Work from 9:00 AM to 5:30 PM = 8 hours 30 minutes = 8.5 decimal hours.
Example 2 (Overnight Shift): Work from 11:00 PM to 2:00 AM = 3 hours. The calculator automatically treats 2 AM as the next day.
Example 3 (For Payroll): 8 hours 15 minutes = 8.25 decimal hours. At $20/hour: 8.25 × $20 = $165 gross pay before deductions.
Frequently Asked Questions
Related Calculators
Date Calculator - Days Between Two Dates
Calculate the number of days, weeks, months, and years between two dates. Find business days, remaining days, and more with this free date calculator.
Age Calculator
Calculate your exact age in years, months, and days from your date of birth. See total days and weeks lived, and compute age on any target date.
Salary Calculator
Convert your annual salary to hourly, weekly, biweekly, and monthly pay. Estimate take-home pay after federal and state taxes with adjustable tax rates.
Tip Calculator
Quickly calculate tip amounts, total bills, and per-person splits. Adjust the tip percentage with a slider and divide the bill among any number of people.
People Also Calculate
Percentage Calculator
Calculate percentages instantly. Find what percent one number is of another, compute percentage of a value, or determine the percentage change between two numbers.
GPA Calculator
Calculate your semester and cumulative GPA. Enter up to four course grades and credit hours to see your grade point average, quality points, and Dean's List eligibility.
Discount Calculator
Calculate the sale price after a discount, including support for stacked discounts and sales tax. Enter the original price, discount percentage, and optional second discount to see your total savings.