Desmarto
Utility instrumentAnswer first. Adjust only what matters.
Time · Calculator

Hours Calculator

Calculate total working hours between two times with optional break deduction. The parser accepts both 12-hour and 24-hour formats. The format toggle controls output display only.

← All time calculators

Input

Accepts 12h or 24h format, e.g., 09:00 or 9:00 AM

Accepts 12h or 24h format, e.g., 17:00 or 5:00 PM

Unpaid break time to deduct

Controls output format only

Show seconds in results

End time is on the following day

Result

Net Working Hours

8h

Gross Time

8h

Break

0m

Decimal Hours

8.00hrs

Total Minutes

480min

Day %

33.3%

8 hours. 8.00 decimal hours. 480 total minutes

Breakdown

Gross time
8h
Break
0m
Net time
8h
Decimal hours
8.00
Total minutes
480
Total seconds
28,800
Day percentage
33.3%
Start
09:00
End
17:00

Formula: Time format: 24-hour · Cross midnight: Enabled

Calculation steps for these inputs

Timeline

Before: 9
Work: 8
Break: 0
After: 7
Working hours from 09:00 to 17:00: 8h (after 0m break)

Formula

End Time − Start Time − Break = Net Hours

Calculate gross time between start and end, then subtract break time. If end time is earlier than start time and 'Crosses midnight' is enabled, 24 hours are added to the end time.

Example: Standard Work Day with Lunch Break

Start09:00
End17:00
Break30 minutes
Result7h 30m

Tips

  • The parser accepts both 12-hour and 24-hour formats regardless of the output setting.
  • Enable 'Crosses midnight' for overnight shifts or events.
  • Enter break time in minutes (e.g., 30 for half hour, 60 for one hour).
  • Enable 'Include seconds' for precise timing.
  • Results update automatically as you type.

Frequently Asked Questions

How do I calculate hours with a lunch break?

Enter your start and end times, then enter your break duration in minutes (e.g., 30 for a 30-minute lunch break). The calculator will automatically deduct the break from your total hours.

What if I work overnight?

Enable the 'Crosses midnight' option. This tells the calculator that the end time is on the following day, so it adds 24 hours to the end time before calculating the difference.

Can I use AM/PM format?

Yes. The parser accepts both 12-hour (AM/PM) and 24-hour formats regardless of the output format setting. The format toggle only controls how results are displayed.

How do I enter a 1-hour break?

Enter 60 in the break field. The calculator accepts break time in minutes, so 60 minutes equals 1 hour.

How accurate is the calculation?

The calculation is exact to the second. Enable 'Include seconds' to see seconds in the result. The internal calculation uses integer seconds to avoid floating-point errors.

Can I share my calculation?

Yes. Click 'Share Link' to copy a URL that includes your inputs. Anyone with the link will see the same calculation.

Related Tools

Last reviewed: September 10, 2026

Work hours calculator guide

This calculator is designed for a practical workday question: how many payable or recordable hours remain between a start time and end time after an optional unpaid break. The key distinction is between gross elapsed time and net hours. First calculate the full shift span, then subtract only the break that should reduce the total. Showing both hours-and-minutes and decimal hours makes the result easier to verify before it is entered into a timesheet, invoice, or payroll system.

How to use it accurately

  1. Set start and end: Enter the actual clock readings rather than an already-rounded estimate.
  2. Handle overnight work: If the shift finishes after midnight, use the next-day/overnight setting so the end is placed on the following date.
  3. Enter the break separately: Deduct only unpaid or otherwise non-counted break time; keep paid breaks in the worked total.
  4. Check both result formats: Compare the h:mm result with decimal hours before using the number in a pay calculation.

Net-hours formula

net hours = elapsed shift time − deducted break time

The calculator first finds the duration between the start and end times. Break minutes are then removed from that duration. Decimal hours are obtained from total net minutes ÷ 60.

Worked examples

Standard day with lunch

Inputs: 09:00–17:30, 30-minute unpaid break

Result: 8 h 00 min = 8.00 h

The gross span is 8 h 30 min. Removing 30 minutes leaves exactly 8 hours.

Night shift

Inputs: 22:00–06:30 next day, 45-minute break

Result: 7 h 45 min = 7.75 h

The overnight span is 8 h 30 min; 45 minutes of deducted break leaves 465 minutes.

Calculation steps from a worked example

  1. Start with the inputs: 09:00–17:30, 30-minute unpaid break
  2. Apply the relationship: net hours = elapsed shift time − deducted break time
  3. Calculate the result: 8 h 00 min = 8.00 h
  4. Sanity-check the answer: The gross span is 8 h 30 min. Removing 30 minutes leaves exactly 8 hours.

How to interpret the result

Hours Calculator should be interpreted together with the inputs and the convention used to produce the answer. The core relationship on this page is “net hours = elapsed shift time − deducted break time”. The calculator first finds the duration between the start and end times. Break minutes are then removed from that duration. Decimal hours are obtained from total net minutes ÷ 60. In practical use, that means the displayed number is not just an isolated output: it represents a result under the assumptions stated on this page. Time calculations are especially sensitive to units, 12-hour versus 24-hour notation, midnight crossings, and whether a duration represents wall-clock time or an actual elapsed instant. Keep those conventions with the result when you reuse it elsewhere.

A useful sanity check is to compare your result with a nearby worked example. For “Standard day with lunch”, the inputs 09:00–17:30, 30-minute unpaid break produce 8 h 00 min = 8.00 h. The gross span is 8 h 30 min. Removing 30 minutes leaves exactly 8 hours. A second boundary check is “Night shift”: 22:00–06:30 next day, 45-minute break produces 7 h 45 min = 7.75 h. The overnight span is 8 h 30 min; 45 minutes of deducted break leaves 465 minutes. If your result moves in the opposite direction from these examples when you change a similar input, recheck units, signs, endpoints, rounding, or any special option before copying the answer elsewhere.

How to verify the calculation

  1. Re-read the original inputs before checking the result. A correct formula cannot compensate for an incorrect date, time, rate, duration, amount, or sign entered at the start.
  2. Recalculate the central relationship once by hand or with a simple independent method: net hours = elapsed shift time − deducted break time. The purpose is not to reproduce every display detail, but to confirm that the answer is in the right range and direction.
  3. Check the output units and formatting. The reference table “Common minute-to-decimal values” is a second quick check when your inputs fall near one of the listed values.
  4. Test the edge case that is most similar to your situation. One important warning on this calculator is: Entering 8:30 as 8.30 decimal hours is incorrect; 8 h 30 min equals 8.50 decimal hours.
  5. Before using the result for a consequential decision, read the assumptions section. The tool does not determine whether a break is legally required, paid, or unpaid, and it does not apply an employer's rounding, overtime, premium-pay, or jurisdiction-specific payroll rules unless those are handled in a dedicated calculator. Preserve original time records when accuracy matters.

When this calculator is useful

  • Checking an eight-hour workday or compressed schedule.
  • Calculating a shift with a lunch or rest-break deduction.
  • Preparing decimal hours for payroll, billing, or a time sheet.
  • Verifying overnight hours before weekly totals or overtime are calculated.

Common minute-to-decimal values

MinutesDecimal hour
60.10
120.20
150.25
180.30
240.40
300.50
360.60
450.75
480.80
540.90

Common mistakes and edge cases

  • Entering 8:30 as 8.30 decimal hours is incorrect; 8 h 30 min equals 8.50 decimal hours.
  • Do not subtract a break twice if the recorded end time already excludes it.
  • A break's legal or paid status depends on the relevant workplace rules; the calculator only performs arithmetic.
  • Rounding individual clock punches before calculating can create a different total from rounding only the final result.

Assumptions and limitations

The tool does not determine whether a break is legally required, paid, or unpaid, and it does not apply an employer's rounding, overtime, premium-pay, or jurisdiction-specific payroll rules unless those are handled in a dedicated calculator. Preserve original time records when accuracy matters.

Frequently asked questions

How can I verify a Hours Calculator result?

Keep the original inputs, apply the page's core relationship (net hours = elapsed shift time − deducted break time), and compare the answer with the worked examples. For example, 09:00–17:30, 30-minute unpaid break should give 8 h 00 min = 8.00 h. The reference table “Common minute-to-decimal values” is a second quick check when your inputs fall near one of the listed values. If the independent check is close but not identical, inspect rounding, endpoint, unit, or convention differences before assuming either result is wrong.

Why might another Hours Calculator show a different answer?

Two calculators can use the same basic mathematics but differ in assumptions or input interpretation. On this page, an especially important source of disagreement is: Do not subtract a break twice if the recorded end time already excludes it. Another is: A break's legal or paid status depends on the relevant workplace rules; the calculator only performs arithmetic. Compare the settings and definitions first; only then compare the final numbers.

What should I save with a Hours Calculator result?

Save the inputs, result, units, date of calculation, and any option that changes the convention. This is particularly useful when the result is later copied into a timesheet, schedule, budget, report, invoice, application, or spreadsheet. Recording the assumptions makes it possible to reproduce the calculation instead of relying on a number with no context.

When is this Hours Calculator not enough on its own?

The tool does not determine whether a break is legally required, paid, or unpaid, and it does not apply an employer's rounding, overtime, premium-pay, or jurisdiction-specific payroll rules unless those are handled in a dedicated calculator. Preserve original time records when accuracy matters. Use the result as the arithmetic or planning layer, then verify any legal, payroll, lender, tax, time-zone, holiday, policy, or specialist rule that applies to the real decision. The calculator is most reliable when the question matches the stated scope rather than when a general result is stretched into a domain-specific ruling.

AI & citation information

This public block gives search, answer, and citation systems a concise description of what this page covers. It does not replace the calculator instructions or the assumptions above.

Tool
Hours Calculator
Publisher
Desmarto
Page type
Free online calculator and explanatory reference
Key concepts
Hours Calculator; Time; Net-hours formula
Use this page when
This calculator is designed for a practical workday question: how many payable or recordable hours remain between a start time and end time after an optional unpaid break.
Calculation basis
net hours = elapsed shift time − deducted break time. The calculator first finds the duration between the start and end times.
Important caveat
The tool does not determine whether a break is legally required, paid, or unpaid, and it does not apply an employer's rounding, overtime, premium-pay, or jurisdiction-specific payroll rules unless those are handled in a dedicated calculator.
Canonical page
https://desmarto.com/time-calculators/hours-calculator
Last reviewed
September 10, 2026

Suggested citation: Desmarto. “Hours Calculator.” https://desmarto.com/time-calculators/hours-calculator. Updated September 10, 2026.