Skip to hours calculator

Hours Calculator – Hours Between Two Times or Dates

Calculate hours between two times or dates in seconds. Get the exact duration in hours and minutes, plus decimal hours for logs and spreadsheets. Overnight clock times are counted into the next day. This is gross elapsed time, not paid hours after breaks.

Hours between two times calculator

Mode
Clock format
Start
End

Live result

8 hours 00 minutes

Decimal hours
8.00
Total minutes
480

Live result. Times update as you type.

Gross elapsed time only. Breaks, overtime, and payroll rounding stay on related tools.

Advertisement

How to Calculate Hours Between Two Times

Convert each clock time to minutes past midnight, subtract the start from the end, then split the difference back into hours and minutes. 8 hours 00 minutes pass between 9:00 AM and 5:00 PM. If the end clock is earlier than the start, add 24 hours so an overnight span such as 10:00 PM to 6:00 AM is counted as 8 hours 00 minutes.

How to Use the Hours Calculator

  1. Use Two times for a clock span on a generic day, including overnight. Use Two dates when the range covers more than one calendar day.
  2. Set hours and minutes in 12-hour or 24-hour format. Use Now for the current local time. In date mode, pick start and end dates as well.
  3. Hours, minutes, decimal hours, and total minutes update as you type. Overnight spans are labeled when the end clock is earlier than the start.
  4. Copy the result for a log or spreadsheet. Open Time Duration Calculator for hours, minutes, and seconds, or Work Hours Calculator when you need break deductions.

Hours Between Two Times: Formula

startMinutes = startHour × 60 + startMinute

endMinutes = endHour × 60 + endMinute

durationMinutes = endMinutes − startMinutes

if durationMinutes < 0, durationMinutes += 1440

decimalHours = durationMinutes ÷ 60

Example: 8:30 AM is 510 minutes and 5:15 PM is 1,035 minutes. 1,035 − 510 = 525 minutes, which is 8 hours 45 minutes or 8.75 decimal hours. Equal start and end times are 0 hours, not 24, unless you set a later end date.

Hours Calculator Examples

  • 9:00 AM to 5:00 PM → 8 hours 00 minutes (8.00 hours).
  • 8:30 AM to 5:15 PM → 8 hours 45 minutes (8.75 hours).
  • 10:00 PM to 6:00 AM → 8 hours 00 minutes (8.00 hours), next day.
  • 9:45 AM to 4:25 PM → 6 hours 40 minutes (6.67 hours).
  • Monday 9:00 AM to Wednesday 3:30 PM → 54 hours 30 minutes (54.50 hours) in date mode, when no daylight-saving change occurs in your timezone.

How to Convert Hours and Minutes to Decimal Hours

Decimal hours divide minutes by 60. 7 hours 45 minutes is 7.75 hours, not 7.45. The “.45” mistake treats minutes as hundredths. This table is a conversion aid, not a payroll rounding rule.

Minutes to decimal hours
MinutesDecimal hours
15 minutes0.25 hours
30 minutes0.50 hours
45 minutes0.75 hours
60 minutes1.00 hour

Calculating Hours Across Midnight

Clock mode assumes at most one midnight crossing. 10:00 PM is 1,320 minutes and 6:00 AM is 360 minutes. 360 − 1,320 is negative, so the calculator adds 1,440 minutes and reports 8 hours 00 minutes. 12:00 AM is midnight; 12:00 PM is noon. If the end is earlier because you mixed up AM and PM, the same overnight rule still applies — check the period before you copy the result.

How to Calculate Hours Between Two Dates

Use date mode when the span covers more than one midnight, such as Monday 9:00 AM to Wednesday 3:30 PM (54 hours 30 minutes / 54.50 hours when the local clock does not change for daylight saving). Date mode subtracts local Date timestamps in this browser. That is actual elapsed time in your timezone, not a timesheet rule and not a conversion between two named time zones. Ambiguous or skipped DST clock times follow whatever the browser Date object does; this page does not claim a custom DST engine.

Common Hours Calculation Mistakes

  • Reading 12:00 AM as noon, or 12:00 PM as midnight.
  • Leaving PM on a morning end time, which can look like an overnight span.
  • Writing 7 hours 45 minutes as 7.45 decimal hours instead of 7.75.
  • Using clock mode for a Monday-to-Wednesday range instead of date mode.
  • Treating equal start and end times as a 24-hour day. This calculator returns 0 unless you set a later end date.
  • Expecting unpaid lunch to come off automatically. This page is gross elapsed time. Use the Work Hours Calculator for paid hours after breaks, including what used to live on Hours Calculator with Break and Shift Hours Calculator.
  • Assuming every timezone or DST change is applied the same way as a payroll system.

Hours Calculator vs Related Time Tools

This Hours Calculator owns gross elapsed hours between two times or two date-times. It does not subtract breaks and it does not split overtime.

Frequently Asked Questions

How do I calculate hours between two times?

Turn each time into minutes past midnight, subtract the start from the end, then convert back to hours and minutes. If the end is earlier, add 24 hours. 9:00 AM to 5:00 PM is 8 hours.

How many hours are there from 9 AM to 5 PM?

8 hours 00 minutes, or 8.00 decimal hours. That is 480 minutes.

How many hours are there from 10 PM to 6 AM?

8 hours 00 minutes, or 8.00 decimal hours. Clock mode treats the end as the next day because 6:00 AM is earlier on the clock.

Can I calculate hours between two dates?

Yes. Switch to Two dates, then enter start date, start time, end date, and end time. Monday 9:00 AM to Wednesday 3:30 PM is 54 hours 30 minutes when your local clock does not change for daylight saving.

How do I convert hours and minutes to decimals?

Divide minutes by 60 and add that to whole hours. 7 hours 45 minutes is 7.75 hours, not 7.45. 15 minutes is 0.25, 30 minutes is 0.50, and 45 minutes is 0.75.

What is 7 hours 45 minutes in decimal hours?

7.75 hours. 45 ÷ 60 = 0.75.

What happens if the end time is earlier than the start?

In clock mode the calculator adds 24 hours (one overnight wrap). In date mode an earlier end date-time is an error until you fix the dates.

Does the calculator automatically deduct breaks?

No. This page is gross elapsed time. Use the Work Hours Calculator to subtract unpaid breaks from a shift or week.

Does daylight saving time affect calculations?

Clock mode ignores DST because it counts minutes on a generic day. Date mode uses your browser’s local Date objects, so a DST change in that timezone can add or subtract an hour of elapsed time. This site does not convert between named time zones.

Is the calculation performed in my browser?

Yes. Hours are calculated in your browser. Times you enter are not uploaded to EverydayTools servers for this calculation.

Trust and Methodology

Clock mode uses integer minutes past midnight and adds 1,440 minutes for one overnight wrap. Date mode uses local Date objects in your browser. Inputs are not uploaded for the calculation itself. This is elapsed time, not legal, payroll, or timesheet advice. Employer rounding rules can differ.