Time Duration Calculator

Calculate total hours, minutes, and seconds between two clock times or dates. Free online time card and duration calculator with unpaid break deductions.

Free, no sign-upRuns in your browserUpdated November 2026
Lunch or unpaid rest interval
Common Shift Presets
Total Net Duration
8 Hours, 0 Minutes
Decimal Hours: 8.00 Hours Total Gross Earnings: $200.00
Gross Duration
8h 30m
Total Minutes
480 Mins
Total Seconds
28,800s
Overtime (>8 hrs)
0.00 hrs
Time Unit Conversions
UnitValue
Standard Hours & Minutes8h 0m
Decimal Hours (for Payroll)8.00 hrs
Minutes480 mins
Seconds28,800 secs

How to use the Time Duration Calculator

  1. Enter your Start Time and End Time (supports standard 12-hour AM/PM and 24-hour time).
  2. Input any unpaid lunch or rest Break Duration (Minutes).
  3. Optionally enter your Hourly Wage ($/hr) to calculate shift earnings.
  4. Review your total net working duration in both hours/minutes and decimal hours for payroll timecards.

Why Decimal Hours Matter for Payroll and Timecards

One of the most frequent accounting snags when managing employee payroll or billing freelance client invoices is converting traditional clock minutes into decimal hours. Clocks measure time using base-60 sexagesimal intervals (60 minutes per hour), while corporate payroll software and invoice accounting systems operate strictly in base-10 decimals.

Working for 7 hours and 30 minutes does not equal "7.3 hours"—it equals 7.50 decimal hours. Mistakenly paying an employee for 7.3 hours deprives them of 12 minutes of hard-earned compensation. Conversely, 8 hours and 45 minutes equals 8.75 decimal hours (45 ÷ 60 = 0.75).

Decimal Hours = Hours + (Minutes / 60) + (Seconds / 3600)
Gross Shift Earnings = Decimal Hours × Hourly Wage Rate ($)

Handling Overnight Shifts Crossing Midnight

Standard subtraction breaks whenever a work shift begins in the evening and concludes the following morning. For example, a third-shift nurse starting work at 10:00 PM (22:00) and clocking out at 6:30 AM (06:30) the next day will produce a negative duration if subtracted naively.

When calculating overnight shifts, if the end time is numerically earlier than the start time, the algorithm adds 24 hours (1,440 minutes) to resolve the date rollover:

Overnight Duration = (End Time Minutes + 1,440) - Start Time Minutes - Break Minutes

Worked Example: Standard Workday with 30-Minute Lunch

Consider an employee who clocks in at 8:30 AM and clocks out at 5:00 PM, taking a mandatory 30-minute unpaid lunch break, earning $25.00 per hour:

MilestoneClock TimeTotal Elapsed MinutesAccounting Description
Shift Start Time08:30 AM510 minutes from midnightClock-in registered
Shift End Time05:00 PM (17:00)1,020 minutes from midnightClock-out registered
Gross Time Span8h 30m510 Total MinutesTotal on-site elapsed time
Unpaid Lunch Break30 Minutes-30 MinutesDeducted from gross duration
Net Paid Hours8h 0m (8.00 hrs)480 Paid MinutesBillable Working Time
Gross Pay ($25/hr)$200.008.00 hrs × $25.00/hrPre-tax shift compensation

Frequently asked questions

How do you convert minutes to decimal hours?
Divide the number of minutes by 60. For example, 15 minutes is 0.25 hours (15 / 60), 30 minutes is 0.50 hours, and 45 minutes is 0.75 hours.
How does the calculator handle overnight shifts crossing midnight?
If the end time is earlier in the clock cycle than the start time, the calculator automatically detects that the shift crossed midnight and adds 24 hours to compute the correct duration.
What is the 7-minute rule in employee time tracking?
Under FLSA federal wage guidelines, employers using 15-minute rounding increments may round employee time to the nearest quarter hour: time from 1 to 7 minutes rounds down, while time from 8 to 14 minutes rounds up.
Are lunch breaks legally required to be paid?
Under federal US Department of Labor regulations, bona fide meal breaks (usually 30 minutes or longer) where the employee is completely relieved of duty are not considered work time and are unpaid.
Can I calculate hours worked for an entire week?
Calculate each individual day’s decimal hours with this tool, then sum the decimal hours together to multiply by your hourly rate.
Does this calculator support 24-hour military time?
Yes. The time input controls natively support both standard 12-hour AM/PM and 24-hour military time based on your computer system locale.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.