Hours Calculator

Calculate hours between two times. For work hours, study time, project tracking. Supports lunch break deduction.

Total Hours

Gross hours
Break deducted
Hours & minutes

What is an Hours Calculator?

An Hours Calculator computes time durations — how many hours between two times, how to add hours to a start time, how to split a long task into time blocks, or convert between hours-and-minutes and decimal hours. Essential for: freelancers tracking project hours, hourly employees calculating shift duration, students managing study schedules, project managers estimating delivery times, payroll teams calculating overtime, lawyers billing in 6-minute increments, drivers managing rest periods, and anyone working with time math. Handles 12-hour and 24-hour formats, includes overnight shifts (e.g., 10 PM to 6 AM), and supports break/lunch deductions for accurate work-hour calculation.

How to use this tool

  1. Enter start time — Format: 9:30 AM or 09:30. Tool accepts both 12-hour and 24-hour notation.
  2. Enter end time — Same format. For overnight shifts (e.g., 10 PM to 6 AM), tool handles the day-rollover automatically.
  3. Add break/lunch (optional) — Subtract 30 min, 1 hour, etc. for unpaid break time.
  4. Choose output format — Hours-and-minutes (8h 30m) or decimal (8.5 hours) for payroll systems.
  5. Add multiple shifts (optional) — Sum hours across a week for total payroll calculation.

Time math formulas

Basic duration:

Duration = End Time − Start Time (in minutes, then convert)

Overnight handling:

If End Time < Start Time → add 24 hours to End Time before subtracting (assumes shift crossed midnight).

Start: 10:00 PM (22:00)
End:    6:00 AM (06:00)

Since 06:00 < 22:00, add 24:
End adjusted: 30:00
Duration = 30:00 - 22:00 = 8 hours

Minus 30-min lunch = 7h 30m worked

Decimal conversion:

Hours + (minutes / 60) = decimal hours

8 hours 45 minutes = 8 + (45/60) = 8.75 decimal hours
Used in payroll systems (e.g., 8.75 × $20/hr = $175)

Weekly total (5 shifts):

Sum all shift durations, then divide by 7 for daily average or multiply by hourly rate for pay.

Examples

  • Office shift: 9:00 AM to 5:30 PM with 30-min lunch = 8h 0m worked (8.0 decimal)
  • Night shift: 10:00 PM to 6:00 AM with 30-min break = 7h 30m (7.5 decimal)
  • Freelance project: 7:15 AM to 11:45 AM = 4h 30m = 4.5 hours billable
  • Weekly payroll: Mon 8h, Tue 8h, Wed 8.5h, Thu 9h, Fri 7.5h = 41h total — 1 hour overtime in US (over 40)
  • Driver’s rest: Drove 11 hours, must rest 10 consecutive hours before next driving period (US DOT rule)
  • Lawyer’s billable: Worked 3h 30m on client matter = 35 (3.5 hours in 6-minute increments)
  • Student schedule: Class 9:00 AM to 12:30 PM = 3h 30m — helps build daily study log

Tips & best practices

  • For payroll, always use decimal format (8.5) not h:m (8:30) — payroll software expects decimals
  • Always deduct unpaid breaks — in US, lunch breaks >30 min are typically unpaid
  • For overnight shifts, double-check the day rollover — common source of payroll errors
  • Time zones matter for remote teams — combine with our Time Zone Converter for cross-timezone meetings
  • Round to nearest quarter-hour (0.25, 0.5, 0.75, 1.0) for cleaner payroll — some companies require this
  • Track shift starts/ends to the minute — even 5 minutes per day = 21 hours per year unpaid
  • Use military time (24-hour format) internationally — avoids AM/PM confusion in shift scheduling
  • For multi-day projects, calculate each day separately, then sum at the end — easier to spot errors

Limitations & notes

Tool calculates pure time duration — doesn’t account for: holidays, weekends, time zones (use Time Zone Converter), legal break requirements (varies by country), overtime rules (1.5x after 40 hours in US, after 9 hours/day in India per Factories Act), shift differential pay. For complex payroll, use dedicated software (Gusto, ADP, BambooHR).

Frequently Asked Questions

How do I calculate overnight shifts?

Enter end time as the next day’s time (e.g., 6:00 AM). Tool detects that end < start and assumes the shift crossed midnight, adding 24 hours automatically.

Why does payroll use decimal hours instead of h:m?

Decimal (8.5) multiplies cleanly with hourly rate: 8.5 × $20 = $170. Hours and minutes (8h 30m) require conversion before math — error-prone for payroll software.

Should I include lunch break in hours worked?

Depends on labor law and contract. US: unpaid lunch breaks (30+ min) are NOT work time. Paid breaks (typically <20 min) ARE work time. Indian Factories Act allows 30 min meal break after 5 hours (unpaid).

What’s the difference between work hours and billable hours?

Work hours = total time spent at job. Billable hours = time you can charge the client for (excludes non-productive time like internal meetings, training, breaks). Freelancers often bill only direct project time.

How precise should I track time?

Hourly workers: track to the minute. Lawyers: 6-minute increments (0.1 hour). Project managers: 15-minute. Personal goals: 30-minute is fine.

Can I calculate hours across multiple days?

Yes — calculate each shift separately, then sum results. Tool’s ‘Add multiple shifts’ feature does this automatically for weekly totals.

Does it handle time zones?

No — assumes all times are in the same time zone. For cross-timezone shifts, convert both to UTC first using our Time Zone Converter.

Related tools

Time Zone Converter · Days Between Dates · Age Calculator

Copied