Hour Calculator

Calculate hours between times or track weekly time cards with automatic overtime calculation — perfect for payroll and time tracking.

Day Start End Break (min) Hours
Monday 0.00
Tuesday 0.00
Wednesday 0.00
Thursday 0.00
Friday 0.00
Saturday 0.00
Sunday 0.00
Total Hours
Decimal Hours

How to Use the Hour Calculator

Calculate work hours quickly and accurately with two powerful modes for different use cases.

  1. Hours Between mode: Calculate hours for a single shift. Enter start and end times, add any break time, and check "next day" if the shift crosses midnight. Perfect for single day calculations.
  2. Time Card mode: Track a full week of work. Enter start and end times for each day (Monday through Sunday), add break times, and set your overtime threshold. The calculator automatically separates regular and overtime hours.
  3. Break time: Enter unpaid break time in minutes. This is subtracted from the total hours worked.
  4. View results: See total hours in HH:MM format plus decimal hours for payroll systems. Time Card mode shows regular vs overtime breakdown.

Hour Calculation Formulas

Hours between two times:

Total Hours = (End Time - Start Time) - Break Time

Decimal hours conversion:

Decimal Hours = Hours + (Minutes ÷ 60)

Overtime calculation:

Regular Hours = min(Total Weekly Hours, Overtime Threshold) Overtime Hours = max(0, Total Weekly Hours - Overtime Threshold)

For example, if you work from 9:00 AM to 5:30 PM with a 30-minute lunch break: (5:30 PM - 9:00 AM) - 30 minutes = 8 hours (8.0 decimal hours).

Common Hour Calculation Examples

ScenarioStartEndBreakHoursDecimal
Standard office day9:00 AM5:00 PM60 min7:007.00
Morning shift6:00 AM2:30 PM30 min8:008.00
Evening shift3:00 PM11:00 PM30 min7:307.50
Night shift (crosses midnight)10:00 PM6:30 AM30 min8:008.00
Part-time shift10:00 AM2:00 PM0 min4:004.00
Extended shift with overtime7:00 AM7:00 PM60 min11:0011.00

Weekly overtime example: Working 9 hours Monday through Friday (45 total) with a 40-hour overtime threshold gives you 40 regular hours and 5 overtime hours. At $25/hour regular and $37.50/hour overtime (1.5x), your weekly gross pay would be $1,000 + $187.50 = $1,187.50.

What is Hour Tracking?

Hour tracking is the process of recording the time spent working to ensure accurate payroll, project billing, and labor law compliance. Whether you are an hourly employee, freelancer, or small business owner, calculating work hours correctly prevents pay disputes and ensures fair compensation.

Modern hour tracking serves several purposes beyond basic payroll. Project managers use it to monitor resource allocation and estimate future project timelines. Freelancers track hours to bill clients accurately and understand their effective hourly rate. Employers use it to comply with labor laws like the Fair Labor Standards Act (FLSA) that mandate overtime pay.

The two most common formats for recording hours are hours:minutes (HH:MM) and decimal hours. While HH:MM is intuitive, decimal hours are preferred by payroll systems because they simplify calculations. For example, 7 hours 45 minutes expressed as 7.75 decimal hours makes multiplication by hourly rate straightforward: 7.75 × $20 = $155.

Understanding Overtime Calculation

Overtime is additional pay for hours worked beyond the standard work week threshold. In the United States, the Fair Labor Standards Act (FLSA) requires overtime pay at 1.5 times the regular rate for hours worked over 40 in a workweek.

How this calculator handles overtime:

  • The default overtime threshold is 40 hours per week, but you can adjust this to match your company policy or local regulations.
  • Hours up to the threshold are counted as Regular Hours.
  • Any hours beyond the threshold are counted as Overtime Hours.
  • The calculator does not apply the overtime pay multiplier (1.5x) — it only separates the hours. You'll need to apply your actual overtime rate when calculating pay.

Example: If you work 45 hours in a week with a 40-hour threshold, you'll see 40 regular hours and 5 overtime hours.

Note: Overtime laws vary by country, state, and employment type. Some jurisdictions use daily overtime (e.g., over 8 hours per day) instead of weekly. Always consult your local labor laws and employment contract.

Decimal Hours for Payroll

Most payroll systems use decimal hours instead of hours and minutes. This makes calculations easier and more accurate.

Common conversions:

MinutesDecimalMinutesDecimal
15 minutes0.2545 minutes0.75
30 minutes0.501 hour1.00
6 minutes0.1036 minutes0.60
12 minutes0.2048 minutes0.80

Formula: Decimal hours = Hours + (Minutes ÷ 60)

For example: 8 hours 30 minutes = 8 + (30 ÷ 60) = 8.5 decimal hours

Frequently Asked Questions

How do I calculate hours for a shift that crosses midnight?
Use the "Hours Between" tab and check the "End time is next day" option. For example, a shift from 11:00 PM to 3:00 AM would be 4 hours. The calculator automatically handles the day boundary.
Should I include paid breaks in my hours?
It depends on company policy. Paid breaks (usually short breaks like 10-15 minutes) are typically included in total hours. Unpaid breaks (like a 30-60 minute lunch) should be entered in the "Break Time" field to subtract them from the total.
What is the standard overtime threshold?
In the United States, the standard is 40 hours per week under the FLSA. However, this varies by country and can be different based on employment contracts, state laws, or industry regulations. Some places use daily overtime (e.g., over 8 hours per day). Check your local labor laws.
How do I use this calculator for biweekly or monthly timesheets?
The Time Card tab tracks one week at a time. For biweekly or monthly tracking, you can calculate each week separately and add the totals together. The decimal hours format makes this easy to do manually or in a spreadsheet.
Can I use this for project time tracking?
Yes! The "Hours Between" mode is perfect for tracking time spent on individual tasks or projects. For multiple sessions, calculate each one separately and add them together using the decimal hours for easy totaling.
What if I work irregular hours each day?
No problem! The Time Card tab allows different hours for each day of the week. You can leave any day blank if you didn't work. The calculator will total only the days you fill in.
Is my timesheet data stored or sent anywhere?
No. All calculations are performed entirely in your browser using JavaScript. No time data is sent to any server or stored anywhere except temporarily in your browser while you're using the tool.