ThisCalculator

Everyday

Hour by Hour Calculator for Time Spans

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

This calculator works out the total hours and minutes between two points in time, or the duration of a task, event, or shift. You enter a start time and an end time (and optionally a break), and it returns the exact elapsed time in hours and minutes, plus the same duration expressed in decimal hours and total minutes. It is built for quick, accurate time-span math without manual subtraction.

Formula

The core idea is simple: convert every time to minutes after midnight, subtract, then convert back. The calculator uses this formula:

Elapsed time (minutes) = (End time in minutes) − (Start time in minutes) − (Break in minutes)

Where:

  • Start time = hours × 60 + minutes (e.g., 09:00 → 540)
  • End time = hours × 60 + minutes (e.g., 17:30 → 1050)
  • Break = any unpaid break, entered in minutes (e.g., 30)

The result is then shown as a duration (h:mm), decimal hours, and total minutes. If the end time is earlier than the start time, the calculator assumes the shift crosses midnight (e.g., 22:00 to 06:00) and adds 24 hours to the end time automatically.

Worked Example

Using the default values: start 09:00, end 17:30, break 30 minutes.

  1. Convert start: 09:00 → 9 × 60 + 0 = 540 minutes
  2. Convert end: 17:30 → 17 × 60 + 30 = 1050 minutes
  3. Subtract: 1050 − 540 = 510 minutes (gross time)
  4. Subtract break: 510 − 30 = 480 minutes (net time)
  5. Convert to hours and minutes: 480 ÷ 60 = 8 hours, 0 minutes → 8:00
  6. Decimal hours: 480 ÷ 60 = 8.00 hours
  7. Total minutes: 480 minutes

The calculator returns exactly that: 8:00, 8.00 h, 480 min.

Why Use an Hour-by-Hour Calculator?

Manual time subtraction is error‑prone, especially when you cross the hour boundary. For example, 9:45 to 11:20 is not 2:25; it is 1 hour and 35 minutes. A dedicated calculator removes the mental gymnastics. It is useful for:

  • Calculating work hours for timesheets or payroll (net of breaks)
  • Tracking study sessions, workouts, or cooking times
  • Figuring out travel duration between two times of day
  • Converting elapsed time to decimal hours for billing or reporting

Most people need this for work, but the same math applies to any interval.

How to Read the Results

The three outputs answer slightly different questions:

  • Elapsed time (h:mm) – the natural way to say the duration, e.g., “8 hours and 30 minutes” shows as 8:30.
  • Decimal hours – used for payroll and billing. 8:30 becomes 8.50 hours, because 30 minutes is half an hour.
  • Total minutes – useful if you need to multiply by a rate per minute or compare with a time budget.

Be careful: 8.5 hours is not the same as 8:50. The decimal form uses base‑10 fractions of an hour, while the colon form uses base‑60 minutes.

Common Mistakes and Pitfalls

Even with a calculator, a few errors sneak in:

  • Mixing AM/PM – 3:00 PM must be entered as 15:00 (24‑hour format) or the calculator will treat it as 3:00 AM. If your input uses AM/PM, convert first.
  • Forgetting the break – an unpaid lunch of 30 minutes changes 8:00 to 7:30. Always subtract breaks if they are unpaid.
  • Crossing midnight – a shift from 10 PM to 6 AM is 8 hours, not −16. The calculator handles this, but double‑check that your end time is actually the next day.
  • Rounding too early – if you round decimal hours before multiplying by an hourly rate, you can lose money. Keep full precision until the final step.

Limits of the Formula

This calculator assumes a linear, continuous timeline. It does not account for:

  • Time zones – if you cross time zones, the elapsed wall‑clock time differs from actual elapsed time.
  • Daylight saving time shifts – a 23‑hour or 25‑hour day will not be reflected.
  • Multiple breaks – you can only enter one break; for several, add them up and enter the total.
  • Seconds – the calculator works in whole minutes. If you need seconds, convert them to a decimal of a minute (e.g., 30 seconds = 0.5 minutes) and add to the break or use a more precise tool.

For most work and personal use, these limitations are irrelevant, but they matter for scientific or legal precision.

Alternatives and When to Use Them

If you need to calculate the difference between two dates (e.g., days between), a date calculator is better. If you are tracking time in 6‑minute increments (common in legal billing), you need a billable hours calculator. For time zone conversions, use a world clock. This hour‑by‑hour calculator is specifically for durations within a single day (or overnight), expressed in hours and minutes.

Frequently Asked Questions

How do I calculate hours between two times without a calculator?

Convert both times to minutes after midnight, subtract, then convert back to hours and minutes. For example, from 2:15 PM (14:15) to 6:45 PM (18:45): (18×60+45) − (14×60+15) = 1125 − 855 = 270 minutes = 4 hours 30 minutes.

What does 8.50 hours mean in h:mm?

8.50 decimal hours means 8 whole hours plus 0.50 of an hour. Since 0.50 × 60 = 30 minutes, it equals 8 hours and 30 minutes (8:30). To convert decimal hours to h:mm, multiply the fractional part by 60.

Can I calculate overtime with this?

Yes, if you know your regular hours. Subtract your standard daily hours from the total elapsed time. For example, if you worked 9:00 and your contract is 8:00, overtime is 1:00. The calculator gives you the total; you do the subtraction.

What if my shift starts at 11 PM and ends at 7 AM?

The calculator treats the end time as the next day. It adds 24 hours to the end time automatically, so 23:00 to 07:00 becomes (7+24) − 23 = 8 hours. Always use 24‑hour format for overnight shifts.

How do I enter times in 12‑hour format?

Convert to 24‑hour first: 1:00 PM becomes 13:00, 12:00 AM becomes 00:00, 12:00 PM stays 12:00. Then enter as HH:MM. If you prefer, you can use a 12‑hour calculator that accepts AM/PM, but this one expects 24‑hour input.

Why does my manual calculation differ from the calculator?

Most likely you forgot to subtract a break, or you mis‑entered an AM/PM time. Another common cause is rounding: if you round 7.67 hours to 7.7 before converting, you get 7:42 instead of 7:40. Use the total minutes output to avoid rounding errors.

Related

Formula used
in t | Start time (HH:MM) | - | 09:00 | 0
in t | End time (HH:MM) | - | 17:30 | 0
in d | Break (minutes) | min | 30 | 0
out dur | Elapsed time | h:mm | (end - start) / 60 - break / 60 | time
out dec | Decimal hours | h | (end - start) / 60 - break / 60 | 2
out tot | Total minutes | min | (end - start) - break | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.