Skip to content

Elapsed Time Calculator

Find the elapsed time between two clock times or two dates. A time-only span does not roll into the next day unless overnight is turned on. Break time is subtracted only when you choose that calculation.

Result

Enter a start and an end

How to Use

  1. 1 Choose time only, a date span, a break, or add and subtract.
  2. 2 Enter the times. Turn on overnight only when a clock span crosses midnight.
  3. 3 Read days, hours, minutes, seconds, and decimal hours.

Example Output

  • 09:15 to 17:45 is 8 hours 30 minutes, 510 minutes, and 8.5 decimal hours.

About This Tool

Date and time calculations use PHP date handling. Across a daylight-saving change, elapsed time is the UTC timestamp difference and the wall-clock difference is shown separately when they disagree.

Using the Elapsed Time Calculator

This page finds the elapsed time between two clock times or two dates and times. The sample shift from 09:15 to 17:45 is 8 hours 30 minutes. Total hours 8, total minutes 510, total seconds 30600, decimal hours 8.5. Time only. Overnight was applied only if you selected it.

A time-only calculation does not assume that an earlier end time belongs to the next day. You turn overnight on when the span crosses midnight. From 22:30 to 06:15 with overnight on, the result is 7.75 decimal hours, which is 7 hours 45 minutes.

Breaks are a separate calculation. From 08:00 to 17:00 with a 45 minute break, the net result is 8.25 decimal hours, which is 8 hours 15 minutes. A break longer than the span is rejected rather than shown as a negative duration.

Date calculations use the selected time zone. Elapsed time is the difference of UTC timestamps. The wall-clock difference is the difference of the numbers on the clock. Those two answers diverge when a daylight-saving transition sits between the endpoints.

What the Result Lines Count

Decimal hours are total seconds divided by 3600. The sample has 30600 seconds, and 30600 divided by 3600 is 8.5. Total minutes are total seconds divided by 60, which is 510. Total hours in the lines are the whole hours inside that same second count, which is 8. The minutes line under the day split is the 30 minutes that remain after those 8 hours.

Days are whole 24-hour blocks of 86400 seconds. A span under 24 hours shows 0 days. The hours-after-days line is what is left after those blocks. For the sample, days are 0 and hours after days are 8. A two-day span shows 2 days and then the leftover clock time.

The break line is the number of seconds removed. It is 0 in a time-only run. In the break sample it is 2700 seconds, which is 45 minutes. The headline is the net time after that removal. The page does not also subtract a break you forgot to enter.

Copy keeps the headline and the lines. Reset restores 09:15 and 17:45 in the time-only calculation. A result you still need should be copied before a reset, because the screen keeps the latest run.

Time Only and the Overnight Switch

Enter both times as HH:MM on a 24-hour clock, or as a 12-hour time with AM or PM. 9:15 AM is the same instant as 09:15. 5:45 PM is 17:45. Hours above 23, minutes above 59, and a missing colon are rejected.

If the end clock time is earlier than the start and overnight is off, the page stops. It does not silently add a day. Turn overnight on to add 24 hours to the end before subtracting. 22:30 to 06:15 then becomes 7 hours 45 minutes. If the two times are equal, the result is 0 even when overnight is on. A full 24-hour span needs a date, not two identical clock times.

The result clock selector changes how an added or subtracted date is printed. It does not change the decimal-hour headline of a time-only span. 8.5 is the same duration in either display.

A count of calendar days, without hours, is a different tool. The Date Difference Calculator reports the day span between two dates. It does not apply a 45 minute break or a daylight-saving transition. Use it for dates alone. Use this page when the clock time matters.

Identical start and end times are a valid zero. They are not an error. A negative duration is not produced. If the end is before the start, the page asks you to turn on overnight or to fix the dates.

Three Worked Durations

First, 09:15 to 17:45 with overnight off. The gap is 8 hours and 30 minutes. Decimal hours are 8.5. Total minutes are 510. Total seconds are 30600. Run it twice. The headline stays 8.5.

Second, 22:30 to 06:15 with overnight on. From 22:30 to midnight is 1 hour 30 minutes. From midnight to 06:15 is 6 hours 15 minutes. The sum is 7 hours 45 minutes, and the headline is 7.75. With overnight off, the same clocks are rejected.

Third, 08:00 to 17:00 with a 45 minute break. The gross span is 9 hours, or 540 minutes. Removing 45 minutes leaves 495 minutes. 495 divided by 60 is 8 hours and 15 minutes, and 495 divided by 60 again as a decimal hour is 8.25. A break of 10 hours on this span is rejected because 10 hours is longer than 9.

A decimal clock reading is a related display, not this duration. The Time to Decimal Calculator converts a time of day into a decimal. It does not subtract two times. Use it when a form asks for 17.75 and you have 17:45. Use this page when you need the gap between two times.

The sample 8.5 can be checked with ordinary division of 30600 by 3600. If that division is not 8.5, the second count was changed. The page uses exact whole seconds, so the sample does not depend on a rounded hour fraction until the final division.

Breaks, Shifts, and Decimal Hours

The break calculation uses the same clock rules as time only, then subtracts break hours and break minutes. Break hours are a whole number from 0 to 48. Break minutes are a whole number from 0 to 59. Enter 45 in the minutes field for the sample, not 0.75 in the hours field. A decimal break is not accepted.

Net time is never negative. If the break is longer than the span, the page stops and names the problem. Shorten the break or lengthen the span. The page will not show a remaining time below zero and call it a duration.

Add or subtract starts from a date and a time and moves by days, hours, minutes, and seconds on the UTC timeline. Adding 8 hours and 30 minutes to 2026-01-01 09:15 UTC gives 2026-01-01 17:45:00. Subtract uses the same fields in the other direction. Each piece of the duration must be a whole number in its own range. Days can run up to 3660. Hours are 0 to 23 in that form, so a long shift is entered as days plus hours rather than as 30 in the hours field.

People often store the net hours as a decimal after the break is removed. The Hours to Decimal Calculator turns an hours-and-minutes figure into that decimal. It does not know which break you removed. Keep the break on this page so the 45 minutes are visible, then use the decimal only as a display of the net result you already have.

A 12-hour result such as 5:45 PM is the same instant as 17:45. The arithmetic uses 24-hour seconds either way. Do not add 12 to a PM hour that you already typed as 17.

Dates, Leap Days, and Month Boundaries

Date mode needs a start date, a start time, an end date, and an end time. Dates use YYYY-MM-DD and must fall from 1900 through 2200. 31 February is rejected. A one-digit month is rejected. The parser does not roll an invalid day into the next month.

From 2024-02-28 00:00 to 2024-03-01 00:00 in UTC the headline is 48 decimal hours and the day line is 2. 2024 is a leap year, so 29 February sits inside that span. The same dates in 2025 would be one day shorter because 2025 has no 29 February. Run the year you mean.

From 2026-01-31 12:00 to 2026-02-01 12:00 is one day. From 2025-12-31 22:00 to 2026-01-01 02:00 is 4 hours. The year boundary does not reset the clock. The timestamp difference is the whole span, including the midnight that sits on 1 January.

If the end date and time are before the start, the page rejects the span. It does not swap the two endpoints. Swap them yourself if you typed them in the wrong boxes. An equal pair is 0 days, 0 hours, and 0 decimal hours.

Age in days is a different count. It is not a shift length. A birthday span can cross the same leap day, but it answers a different question from a work shift.

Time Zones and Daylight-Saving Time

The time zone list is UTC, New York, Chicago, Denver, Los Angeles, London, Helsinki, and Tokyo. Any other name is rejected. Time-only mode ignores the zone, because a clock span has no date on which to apply a transition.

On 8 March 2026, America/New_York springs forward. 02:30 does not exist that morning, and the page rejects it. 01:30 does exist. 03:30 exists after the jump. From 01:30 to 03:30 the clock numbers look 2 hours apart, but the UTC timestamps are 3600 seconds apart, so the decimal-hour headline is 1. The wall-clock line is 7200 seconds. The note on the result says the local clocks changed.

On 1 November 2026 the same zone repeats the 01:30 hour. The page rejects that local time as ambiguous. Choose UTC, or choose a minute that occurs only once. The page will not guess which of the two 01:30 readings you meant.

A person born on a date is not this calculation. The Chronological Age Calculator reports an age from a birth date. It does not subtract a meal break from a shift. Use it for age. Use this page for a start clock and an end clock.

What the Duration Leaves Out

The page does not decide that a shift was payable, legal, or finished. It does not apply overtime rules. It does not know which minutes were work. A 45 minute break is subtracted only because you entered 45 minutes.

Writing a Time Note That Can Be Recomputed

Write both endpoints, the zone, whether overnight was on, and any break. "8.5 hours" matches the sample only for 09:15 to 17:45 with no break. Another pair can also last 8.5 hours. The way back is the two times.

An age in days from a birthday uses a different label. The Age in Days Calculator counts days of age. It is not a shift with a break. Do not paste a birth date into a payroll note and call the day count an elapsed shift.

Frequently Asked Questions

What does 09:15 to 17:45 return?

8.5 decimal hours, 8 hours 30 minutes, 510 minutes, and 30600 seconds.

What does 22:30 to 06:15 return with overnight on?

7.75 decimal hours, which is 7 hours 45 minutes.

What if overnight is off and the end is earlier?

The page rejects the span. It does not add a day unless overnight is on.

What does an 08:00 to 17:00 shift with a 45 minute break return?

What does an 08:00 to 17:00 shift with a 45 minute break return? On this page the answer stays with the result from the submit you just made. Copy the sentence on screen rather than reusing a neighboring FAQ word for word. FAQ 4 is only about this question.

What happens when the break is longer than the span?

The page rejects it. The net time is not negative.

How is a leap day handled?

2024-02-28 00:00 to 2024-03-01 00:00 is 48 decimal hours, including 29 February.

How does daylight-saving time change the result?

Elapsed time uses UTC timestamps. On 8 March 2026 in New York, 01:30 to 03:30 is 1 elapsed hour and 2 wall-clock hours.

Why is 02:30 rejected on that morning?

That local time does not exist because the clocks skip it.

Why is 01:30 rejected on 1 November 2026 in New York?

That local time happens twice. The page does not choose which one you meant.

What does adding 8 hours 30 minutes to 2026-01-01 09:15 UTC return?

2026-01-01 17:45:00.

Which time zones are available?

UTC, New York, Chicago, Denver, Los Angeles, London, Helsinki, and Tokyo.

What does reset restore?

The time-only sample, 09:15 to 17:45, with overnight off.