Skip to content
Calcipedia
Hours Calculator instructional illustration

Hours Calculator

Calculate the time between two clock times, including overnight spans, direct lunch-break deductions.

Last updated

Hours and duration calculator Use one workflow to measure the elapsed time between two clock times with an optional lunch-break deduction and another to add or subtract multiple durations for timesheets, schedules, or planning blocks.

Use this hours calculator to measure the hours between two times, estimate hours worked after an unpaid break, compare overnight spans, or combine hour-and-minute blocks when you need a quick time calculator for shifts and planning notes.

Mode

Quick examples

Break presets

Quick reference

  • 15 minutes = 0.25 hours
  • 30 minutes = 0.5 hours
  • 45 minutes = 0.75 hours
  • 60 minutes = 1 hour
  • 1 minute = 60 seconds
  • 1 hour = 3,600 seconds

Elapsed time

8h 0m

09:00 to 17:00 stays on the same day.

8h 0m

Hours and minutes

8 hr

Decimal hours

480 min

Total minutes

28,800 sec

Total seconds

No

Overnight span

7h 30m

Net hours worked

MeasureValue
Hours and minutes8h 0m
Decimal hours8 hr
Total minutes480 min
Total seconds28,800 sec
OvernightNo
Net after 30-minute break7h 30m (7.5 hr)
Useful for hours worked, overnight shifts, and quick lunch deductions Use this page when you need the hours between two times, a direct unpaid-break adjustment, or a fast hours-worked estimate. Move to the time card calculator when you need daily clock pairs, overtime, or gross pay.

Net hours after your chosen break

This row turns the gross span into net hours worked after subtracting your selected lunch or unpaid break.

BreakNet durationDecimal hoursMinutes
30-minute deduction7h 30m7.5 hr450 min / 27,000 sec

After common unpaid breaks

These rows keep the same shift span but show the net hours after a typical unpaid break deduction.

ScenarioNet durationDecimal hoursMinutes
15-minute break7h 45m7.75 hr465 min
30-minute break7h 30m7.5 hr450 min
45-minute break7h 15m7.25 hr435 min
60-minute break7h 0m7 hr420 min

If this shift repeats

Use these rollups to estimate multi-day gross totals without retyping the same clock times.

PatternTotal durationDecimal hoursMinutes
3 similar blocks24h 0m24 hr1,440 min
5 similar blocks40h 0m40 hr2,400 min
6 similar blocks48h 0m48 hr2,880 min

If the net shift repeats

These rollups scale the break-adjusted hours worked total for repeated shifts or weekly planning.

PatternNet totalDecimal hoursMinutes
3 similar blocks22h 30m22.5 hr1,350 min
5 similar blocks37h 30m37.5 hr2,250 min
6 similar blocks45h 0m45 hr2,700 min
← All Time Calculations calculators

Time Calculator

Hours calculator: hours between two times and combined duration totals

The hours calculator handles two common jobs: measuring the time between a start and end clock time, and adding or subtracting several hour-and-minute blocks. Use it for shift lengths, hours worked with lunch breaks, planning blocks, overnight hours, repeat-shift planning, or any quick conversion between clock time, decimal hours, total minutes, and total seconds.

How the hours calculator works

In the between-times mode, the calculator converts each clock time to total minutes after midnight, subtracts the start from the end, and adds 1,440 minutes when the end time lands earlier on the clock face. That treats 22:15 to 06:45 as an overnight span rather than a negative result.

In the add-or-subtract mode, each row is normalized into minutes, rows marked Add are summed, rows marked Subtract are removed from the total, and the final result is shown as signed minutes, total seconds, decimal hours, and hours-plus-minutes. This makes it useful for combining work blocks and deducting breaks without manual carry-over.

Duration (min) = End time (min) − Start time (min)

If the result is negative, add 1 440 to handle overnight spans.

Duration (decimal hours) = Duration (min) ÷ 60

For example, 450 minutes ÷ 60 = 7.5 hours.

Duration (sec) = Duration (min) × 60

For example, 450 minutes × 60 = 27,000 seconds.

Combined minutes = Σ added rows − Σ subtracted rows

Convert the final signed total back into seconds, decimal hours, or hours and minutes for reporting.

Worked examples for shifts and planning blocks

For an overnight shift from 22:15 to 06:45, the calculator returns 8 hours 30 minutes, or 8.5 decimal hours. That is the figure you would multiply by an hourly pay rate when you need a quick gross-hours estimate.

For block planning, suppose you add 2 hours 30 minutes, add 1 hour 15 minutes, and subtract a 15-minute break. The combined result is 3 hours 30 minutes, or 210 minutes, or 12,600 seconds. That format is easier to check at a glance than doing the carry-over mentally.

If you need gross pay, overtime, or a full week of in-and-out entries, the time card calculator is still the better fit. The hours calculator is best when the job is simply elapsed time or a compact add/subtract duration sheet.

Use the hours calculator for unpaid-break planning

One of the most common real-world uses is moving from gross shift length to net paid hours. If the elapsed span is 09:00 to 17:00, the gross result is 8 hours. A 30-minute unpaid break changes that to 7 hours 30 minutes, or 7.5 decimal hours. A 45-minute unpaid break changes it to 7 hours 15 minutes, or 7.25 hours.

Showing those break-deduction checkpoints matters because many users are not asking a purely mathematical question. They are really checking the number that will land in a payroll note, rota summary, invoice, or staffing plan. The hours calculator is stronger when it makes the common next step obvious rather than leaving all of the deduction math to the user.

That is also why direct lunch-break deduction belongs on the page instead of being left as an article note. An hours worked calculator is more useful when it lets you compare the gross span with the net paid span immediately, then scale that net number into a repeated weekly estimate.

Gross hours, net hours, and when to switch to a time card calculator

Gross hours means the full time between the start and end clock values. Net hours means the gross span after unpaid breaks are removed. For example, 07:00 to 15:30 gives 8 hours 30 minutes gross. With a 30-minute lunch break, the net figure becomes 8 hours. With a 45-minute lunch break, the net figure becomes 7 hours 45 minutes.

That distinction matters because different decisions use different totals. Staffing coverage often starts with the gross span because that tells you how long the person is on site. Payroll, invoicing, and self-tracked work logs often need the net figure because unpaid breaks should not be billed or paid in the same way.

Once you need several daily clock-in and clock-out pairs, overtime thresholds, or a full weekly pay sheet, the time card calculator becomes the better tool. The hours calculator is strongest when the job is a single shift, an overnight span, or a compact add-and-subtract duration sheet.

Repeat-shift and weekly planning

A single shift result is only part of the picture when the same block repeats across a week. An 8 hour 30 minute shift repeated 3 times becomes 25 hours 30 minutes. The same shift repeated 5 times becomes 42 hours 30 minutes. Looking at the repeated total helps when you are checking staffing coverage, weekly study blocks, training volume, or rough invoice hours before exporting the data elsewhere.

The same principle applies to compact duration rows. If your combined add-and-subtract total is 3 hours 30 minutes, repeating it 2 times gives 7 hours, repeating it 3 times gives 10 hours 30 minutes, and repeating it 5 times gives 17 hours 30 minutes. Those are simple calculations, but they are also common enough that surfacing them directly makes the page more useful.

Hours calculator vs time calculator vs time duration calculator

Use an hours calculator when your question is about the span between two clock times or the total of a few hour-and-minute blocks. Use a time calculator when you need to add or subtract durations from a specific starting time. Use a time duration calculator when the span crosses calendar dates and you care about the exact elapsed time between two date-time values.

That difference matters because hours between two times is a different intent from exact date-time duration. Searchers often want the same answer in plain language, but the math changes once calendar dates, daylight saving time, or payroll rules enter the picture.

If you are tracking shift lengths, overnight spans, or compact scheduling notes, this page is the right fit. If you are logging clock-in and clock-out totals for a whole week, the time card calculator is usually the better next step.

Practical tips and reference notes

Use decimal hours when a spreadsheet, invoice, or payroll system expects values like 7.25 or 8.5. Use hours and minutes when you are scheduling people, comparing time blocks, or reviewing whether an overnight span looks sensible before exporting it elsewhere.

If you searched for an hours between two times calculator, an hours worked calculator with lunch break, a time duration calculator, or a way to add and subtract hour blocks without mistakes, this page is designed for that exact workflow. The results stay readable because the calculator shows the same total in more than one form instead of forcing you to convert it yourself.

Use the total-seconds row when another system wants raw seconds, a timer log, or an API-style duration value. For everyday scheduling, hours and minutes remain easier to read; for spreadsheets and payroll notes, decimal hours are usually the cleaner export format.

When you compare overnight hours calculator results with a time calculator, keep the distinction clear: this page handles elapsed spans and duration totals, while the general time calculator is better for adding or subtracting time quantities from a starting point.

If you are using the result for pay, billing, or staffing planning, always decide whether you need gross elapsed time, net time after breaks, or a repeated weekly total. The calculator can help with each view, but they answer slightly different questions.

Further reading

Frequently asked questions

How do I calculate hours worked overnight?

Enter the start time and the end time as normal. If the end time is before the start time (for example, start 22:00, end 06:00), the calculator automatically adds 24 hours to the end time, giving the correct 8-hour result. You do not need to adjust anything manually.

How do I convert hours and minutes to a decimal for payroll?

Divide the minutes portion by 60 and add it to the whole hours. For example, 7 hours 45 minutes becomes 7 + (45 ÷ 60) = 7.75 hours. Multiply 7.75 by your hourly rate to get gross pay.

Can I calculate the total hours across multiple shifts?

Calculate each shift individually to get the decimal hours for each, then add all the decimal values together. This is more accurate than adding up hours and minutes separately, because carrying over 60 minutes to an hour is easy to get wrong manually.

Does this calculator subtract unpaid breaks?

Yes. In the between-times workflow you can enter a lunch or unpaid-break deduction to move from gross hours to net hours worked, and in duration mode you can subtract break rows directly from the total. If you need multiple daily clock pairs, overtime, or gross-pay calculations, the time card calculator is still the better fit.

How do I calculate net hours after a lunch break?

First calculate the full elapsed span between the start and end times. Then subtract the unpaid break from that total. For example, 09:00 to 17:00 is 8 hours gross. Subtracting a 30-minute unpaid break gives 7 hours 30 minutes, or 7.5 decimal hours.

What is the difference between an hours calculator and a time calculator?

An hours calculator focuses on elapsed time between two clock times or on adding and subtracting hour-and-minute blocks. A time calculator is more general and usually adds or subtracts durations from a starting time. If you need exact elapsed time across dates, a time duration calculator is the better fit.

Can I use this for overnight shifts and breaks together?

Yes. Use the between-times mode for overnight spans and the add-or-subtract mode for compact duration totals. If you need a full timesheet with multiple days, breaks, and gross pay, the time card calculator is still the stronger choice.

How do I calculate weekly hours from one repeated shift?

Multiply the single-shift total by the number of repeats. If one shift is 8 hours 30 minutes, three repeats give 25 hours 30 minutes and five repeats give 42 hours 30 minutes. The same idea works for compact duration totals such as study blocks, training sessions, or repeated service visits.

Can I use this as an hours worked calculator with lunch break?

Yes. Enter the start and end times, then add the unpaid lunch or break length in minutes. The calculator will show both the gross span and the net hours worked after that deduction, which is usually the figure needed for payroll notes, rota checks, or simple invoice planning.

Should I use decimal hours or hours and minutes for shifts?

Use decimal hours when a spreadsheet, payroll note, or invoice expects values like 7.5 or 8.25. Use hours and minutes when you are checking a rota, comparing shift patterns, or confirming that an overnight span looks sensible before you move the total into another system.

Can the hours calculator show total seconds?

Yes. The result includes total seconds alongside hours and minutes, decimal hours, and total minutes. Use seconds when you need a raw duration for a timer, log export, script, or system that stores elapsed time in seconds.

Guides

Featured in articles

Step-by-step guides that use this calculator to solve real problems.

Also in Time Calculations

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.