Saved

Press the star next to a tool's name to save it.

All my tools

Time Duration Calculator

Enter a start and end time to see how long it is between them, in hours and minutes and as a decimal. It handles overnight times, dates and breaks.

Restored your last values ·

min

Your result opens on the next page.

Duration

8 hr 30 min

Enter your times to see the duration.

See full result

How to work out a duration

Turn both times into minutes after midnight, then subtract.

Duration = end time − start time − break

Worked examples

  • Same day: 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.5 decimal hours.
  • With a break: take off a 30-minute lunch and that’s 8 hours.
  • Overnight: 10:00 PM to 6:00 AM is 8 hours. When the end is before the start, the calculator counts it as the next day.

Minutes as decimal hours

Many payroll systems use decimal hours. Divide the minutes by 60.

MinutesDecimal hours
150.25
200.33
300.5
450.75

Spanning several days

Choose “With dates” to count across days. The answer treats every day as 24 hours, so a daylight saving change would make the real elapsed time an hour longer or shorter.

To add up lengths of time, use the time calculator. For a full work week, try the time card calculator. To count days between dates, use the date difference calculator.

How to use the time duration calculator

  1. Choose what you are timing. Pick Two times for anything within a day or overnight. Pick With dates when the span covers more than one day.
  2. Enter the dates, if asked. In With dates mode, fill in the Start date and End date.
  3. Enter the Start time and End time. Your browser shows the time box in its own style, often with AM and PM.
  4. Add a break, if any. Type the minutes in Break (optional), or leave it blank.
  5. Press Calculate. Your result opens on the next page, with the duration in hours and minutes and a table of other units.

Worked example: a night shift with a break

A nurse works from 7:00 PM to 3:30 AM and takes a 45-minute meal break. Leave the mode on Two times, enter 19:00 as the start, 03:30 as the end and 45 in Break (optional).

  • The end is earlier than the start, so the calculator counts it as the next morning and shows a note saying so.
  • Time between the two: 8 hours 30 minutes, or 510 minutes
  • After the break: 7 hr 45 min
  • Decimal hours: 7.75 hours, total minutes 465, total seconds 27,900

The decimal figure is the one most timesheets and payroll systems want. To total a full week of shifts, use the time card calculator.

Worked example across several days

A conference runs from 8:00 AM on January 1, 2026 to 5:15 PM on January 3, 2026. Choose With dates and enter both dates and times.

  • Duration: 57 hr 15 min
  • In days: 2 days 9 hr 15 min
  • Decimal hours: 57.25 hours
  • Total minutes: 3,435, and total seconds: 206,100

The In days row appears only when the result is 24 hours or more. In this mode the end must come after the start, so the calculator shows an error instead of guessing the next day.

Daylight saving time and real elapsed time

The calculator treats every day as 24 hours, which is right on most days of the year. Twice a year it isn’t. In the US, daylight saving time begins at 2:00 a.m. on the second Sunday of March and ends at 2:00 a.m. on the first Sunday of November.[1] In 2026 it runs from March 8 to November 1.[1]

So a shift from 10:00 PM on March 7, 2026 to 6:00 AM on March 8 shows as 8 hours here, but in places that change their clocks only 7 hours really pass. A shift over the night of October 31 to November 1 lasts an hour longer than the clock times suggest. Not every place changes: daylight saving time isn’t observed in Hawaii, American Samoa, Guam, Puerto Rico, the Virgin Islands or Arizona, apart from the Navajo Indian Reservation there.[1] If you work in one of those places, the calculator’s answer is the real time.

Midnight, noon and the 24-hour clock

Times right on midnight or noon cause many mistakes. NIST explains that 12 a.m. and 12 p.m. are ambiguous and suggests avoiding them.[2] The abbreviations stand for before noon and after noon, and noon itself is neither.[2] One fix NIST mentions is the 24-hour clock, with 0000 for midnight at the start of a day.[2]

That is why the examples here give 19:00 and 03:30. If your time box shows AM and PM, check that 12:00 PM means noon and 12:00 AM means the start of the day before you press Calculate. A shift that ends at midnight can be entered as 00:00, and the calculator will count it as the end of the day.

Common mistakes

  • Typing the break in hours. The break box takes minutes, so a half-hour break is 30, not 0.5.
  • Using Two times for a span over 24 hours. Without dates, the longest result is just under a day. Switch to With dates.
  • A break longer than the time between. The calculator shows an error, because a duration can’t be less than zero.

How we calculate this

The tool has two modes. In times mode you enter a start and end time in 24-hour form. Duration = end minus start, in minutes after midnight. If the end is earlier than the start, the tool assumes it runs past midnight and adds 1,440 minutes.

In dates mode you also enter a start and end date. The whole days between them are counted in UTC, so daylight saving never shifts the count. Duration = days × 1,440 + end time minus start time. The end must not be before the start.

You can enter a break in minutes, which is subtracted, and it cannot be longer than the total. The result is shown as hours and minutes, then as decimal hours (minutes ÷ 60), total minutes and total seconds, plus days when it is 24 hours or more.

What next

Use this often? Add Time Duratio to your Home screen.

Frequently asked questions

How many hours are between 9 AM and 5 PM?

Eight hours. If you take a 30-minute break, it’s 7 hours 30 minutes.

How do I calculate time that goes past midnight?

Enter the times as usual. If the end is before the start, the calculator counts it as the next day, so 10 PM to 6 AM is 8 hours.

How do I change minutes to decimal hours?

Divide the minutes by 60. So 8 hours 30 minutes is 8.5 hours.

Does it count daylight saving time?

No. It treats every day as 24 hours, so the real time can differ by an hour across a clock change.

How many hours is 7 PM to 3:30 AM with a 45-minute break?

It’s 7 hours 45 minutes, or 7.75 decimal hours. The calculator counts 3:30 AM as the next morning because it is earlier than the start time.

How do I time something that lasts more than one day?

Choose With dates, then enter the start and end dates as well as the times. The result shows the total hours and minutes and, for 24 hours or more, the days too.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Date & Time Tools