hours between two times calculator

Calculate Hours Between Two Times

Use this time duration calculator to find the exact difference between two times, including overnight shifts and optional break deductions.

Optional: subtract lunch or break time from total hours.

What this hours between two times calculator does

This tool quickly calculates elapsed time between a start time and an end time. It works great as a work hours calculator, shift duration calculator, or general time difference calculator for daily planning.

In one click, you get:

  • Total hours and minutes
  • Decimal hours (helpful for payroll and invoicing)
  • Total minutes
  • Automatic overnight handling when shifts cross midnight

How to use it

Step 1: Enter start and end times

Choose your start time and end time using the time fields. Example: 8:30 AM to 5:15 PM.

Step 2: Add break minutes (optional)

If you took an unpaid break, enter it in minutes. For example, a 30-minute lunch break would be entered as 30.

Step 3: Handle overnight shifts

If your shift goes past midnight (for example, 10:00 PM to 6:00 AM), leave the overnight checkbox enabled. The calculator will automatically count the end time as the next day.

Step 4: Click calculate

You’ll instantly see the total elapsed time and decimal-hour value.

Why decimal hours matter

Many payroll systems, freelance invoices, and time-tracking sheets use decimal hours instead of hours-and-minutes format. For example:

  • 7 hours 30 minutes = 7.50 hours
  • 8 hours 15 minutes = 8.25 hours
  • 6 hours 45 minutes = 6.75 hours

This calculator gives both formats so you can use whichever your process requires.

Common use cases

  • Employee timesheets: compute total daily work hours accurately.
  • Freelance billing: convert session times into billable decimal hours.
  • Study planning: calculate focused learning blocks.
  • Fitness tracking: monitor training session durations.
  • Event scheduling: estimate elapsed time between agenda slots.

Tips for accurate time calculations

  • Always confirm AM/PM equivalents when entering 24-hour time.
  • Deduct only unpaid breaks if calculating paid work hours.
  • Keep overnight mode enabled for late-night shifts.
  • Use decimal output for payroll exports and spreadsheet formulas.

Frequently asked questions

Does this calculator support overnight shifts?

Yes. If the end time is earlier than the start time, the calculator can treat that end time as the next day.

Can I subtract lunch or break time?

Yes. Enter break time in minutes, and it is subtracted from the total elapsed duration.

Is this the same as a time card calculator?

It covers the core function of a time card calculator: finding worked hours between two times. For multiple days or weekly totals, use this result in your spreadsheet or timesheet app.

Can I use this as an elapsed time calculator?

Absolutely. It is an elapsed time calculator, hours and minutes calculator, and shift hours calculator all in one simple tool.

🔗 Related Calculators