Count Hours Calculator
How many hours did you work between two specific times?
Calculate total hours between start and end times, including overnight shifts and multi-day periods. Handles AM/PM times and displays results in hours and minutes.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Think of time calculation like measuring distance on a road trip, but instead of miles between cities, you are measuring minutes between clock times. Your start time is point A, your end time is point B, and the calculator finds the exact duration between them.
The calculator converts both times into minutes since midnight, subtracts to find the difference, then converts back to hours and minutes. When dates are involved, it adds 24 hours for each additional day. Break time gets subtracted from the total working period.
Decimal hours appear because most payroll and billing systems use them. Instead of 8 hours 30 minutes, you see 8.5 hours. Each 15-minute increment equals 0.25 hours, making it easy to multiply by hourly rates or compare against standard work weeks.
When To Use This
Right tool, right situation
Use this calculator whenever you need precise time tracking for payroll, billing, or project management. Freelancers use it to convert work sessions into billable hours. Employees use it to verify timesheet accuracy, especially for irregular shifts or overtime calculations.
It works well for single continuous work periods, project sprints, event durations, and shift scheduling. Contractors find it essential for client billing, while managers use it for resource planning and time allocation analysis.
Do not use this for complex scheduling with multiple break periods throughout the day, or when you need to track time across different time zones. For those situations, dedicated time tracking software handles the complexity better than manual calculation.
Common Mistakes
Why results sometimes look wrong
The biggest mistake is forgetting to account for unpaid breaks when calculating billable or payable hours. Many people calculate 9 AM to 6 PM as 9 hours, but with a 1-hour lunch break, you actually worked 8 hours. This error costs freelancers money and creates payroll problems for employees.
Another common error occurs with overnight shifts where people forget to specify dates. Calculating 11 PM to 7 AM without dates gives negative 16 hours instead of positive 8 hours. Always include start and end dates when your shift crosses midnight.
Rounding errors happen when people convert decimal hours manually. Instead of converting 7.75 hours to 7 hours 45 minutes, they guess 7 hours 30 minutes. Use a calculator for decimal-to-minutes conversion, or stick with decimal format for billing purposes.
The Math
Worked examples and deeper derivation
Time calculation relies on converting everything to a common unit, typically minutes, then converting back to readable format. Each hour contains exactly 60 minutes, so 8.5 hours equals 8 hours plus 30 minutes.
For overnight shifts, the calculator adds 24 hours (1,440 minutes) for each date transition. A shift from 11 PM to 7 AM spans 8 hours, calculated as 7:00 AM (420 minutes from midnight) minus 11:00 PM (previous day, so 420 + 1440 - 1380 = 480 minutes total).
Break time subtracts directly from total time. If you work 9 hours with a 1-hour lunch, your billable time is exactly 8 hours. The math stays simple: total duration minus break duration equals working duration.
Expert Unlock
The thing most explanations skip
Most time tracking errors stem from inconsistent break handling across different calculation methods. Some systems automatically deduct standard break times, while others require manual entry. When auditing timesheets, always verify whether break time was included or excluded in the original calculation to avoid double-counting deductions.
How do I handle overnight shifts and time zones?
Need something this doesn't cover?
Suggest a tool — we'll build it →