tooldeb Online Tools
Categories
Finance & Investing Interest, savings, returns, and inflation. Loans & Property Mortgages, repayment, DSR/DTI/LTV, and jeonse. Tax & Payroll Take-home pay, severance, insurance, and taxes. Shopping & Pricing Discounts, tips, unit price, and margins. Health & Fitness Body metrics, nutrition, and training. Math Percentages, fractions, algebra, and sequences. Geometry Area, volume, and surface of plane and solid shapes. Statistics & Probability Averages, spread, combinations, and odds. Unit Conversion Length, weight, temperature, pressure, and more. IT & Digital Data size, screens, color, and network speed. Engineering & Electronics Circuits, resistance, PCB, and signals. Date & Time Ages, D-day, date math, and time zones. Home & Interior Paint, tile, wallpaper, flooring, and concrete. Automotive Fuel cost, economy, tires, and vehicle tax. Everyday Bills, delivery, photos, and odds and ends.
EN
한국어 English

Time Duration Calculator

Enter a start and end time to get the elapsed duration, in hours + minutes, total minutes, and decimal hours.

Inputs
Duration
8h 30m
Total minutes
510 min
Total hours
8.50 hr
Times are on a 24-hour clock. If the end time is earlier than the start time, it's treated as crossing midnight into the next day; break/lunch time is not subtracted automatically. Hours and minutes must be whole numbers within their ranges (0–23 / 0–59).

How the duration is calculated

Both times are converted to minutes since midnight, then subtracted. If the result is negative, 24 hours (1440 minutes) are added to account for crossing midnight.

total minutes = (end hr × 60 + end min) − (start hr × 60 + start min) if negative: + 1440
  • start hr / start min — start time, 24h clock (0–23 / 0–59)
  • end hr / end min — end time, 24h clock (0–23 / 0–59)

More detail

Crossing midnight

If the end time is earlier than the start time, the calculator assumes the end time falls on the next day and adds 24 hours — useful for overnight or night-shift schedules, e.g. 22:00 to 06:00 comes out to 8 hours instead of a negative number.

Practical tip. Useful for timing night shifts, checking how long a meeting block runs, or converting a clocked-in/clocked-out pair into decimal hours for a timesheet.

Frequently asked questions

How many hours from 9:00 AM to 5:30 PM?

8 hours 30 minutes (510 minutes total). Enter start 09:00 and end 17:30 above to see it computed.

How many hours is a night shift from 10 PM to 6 AM?

8 hours. Since the end time (06:00) is earlier than the start time (22:00), the calculator adds 24 hours to account for crossing midnight.

Does this subtract lunch or break time?

No — it only calculates the total span between start and end. Subtract your break time separately if you need net working hours.

How do I get the duration as decimal hours instead of hours + minutes?

The Total hours output converts it automatically, e.g. 8 hours 30 minutes shows as 8.50 hours.

Related calculators

Browse all Date calculators