StatGardenREF. DESK
Calculators/Everyday/Elapsed Time Calculator
Everyday

Elapsed Time Calculator calculator

Elapsed time between a start date and time and an end date and time, in days, hours, minutes and seconds.

Published 21 August 2026

What this calculator does

Elapsed time is simply the amount of time that has passed between two points, a start and an end. This elapsed time calculator takes a full start date and time and a full end date and time, and returns the gap between them broken into days, hours, minutes and seconds, plus the same span as a single decimal-hour figure.

It differs from a same-day hours calculator in one useful way: because both the start and end are a date plus a time, the span can run over any number of days, not just within a single 24-hour window. That covers a multi-day project, a flight with a layover, or the gap between two logged timestamps, as well as a plain same-day question.

The formula

FormulaElapsed time = (end date and time) − (start date and time), broken into whole days, hours, minutes and seconds

Both the start and end are combined into a single point in time (date plus time of day), and the earlier one is subtracted from the later one. The result in seconds is then broken down into whole days, hours, minutes and remaining seconds, and also expressed as one combined decimal-hour figure.

TermMeaning
Elapsed timeThe total span between a start moment and an end moment, expressed as a duration rather than as two dates.
Start / endA date and a time of day together, defining the two endpoints of the span being measured.
Decimal hoursThe same elapsed time expressed as a single number, such as 8.5 hours instead of 8 hours 30 minutes, useful for spreadsheets and billing.

The inputs explained

FieldWhat to enter
Start dateThe calendar date the span begins on.
Start timeThe time of day the span begins at, on a 24-hour clock.
End dateThe calendar date the span ends on, which can be later than the start date by any number of days.
End timeThe time of day the span ends at.

When to use it

Timing a multi-day task

A project, a shipment or a research run that spans more than one day needs both the date and the time of day accounted for, not just the clock time, to get a correct total.

Working out a decimal-hour total for billing

Invoicing and payroll systems often want a single decimal-hour figure rather than a broken-down duration, which this calculator produces alongside the day-hour-minute-second breakdown.

Checking the gap between two logged timestamps

Log files, GPS tracks and system events often record a start and end timestamp; entering both directly gives the elapsed time without doing the subtraction by hand.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the elapsed time grows as the end time moves later across several days

A fixed start of 9:00 am on 1 January, against a range of end dates and times.

Start: 1 January, 9:00 am
End date (end time fixed at 14:15)Elapsed timeTotal hours (decimal)
2026-01-010 d 8 h 30 m 0 s8.50
2026-01-021 d 8 h 30 m 0 s32.50
2026-01-043 d 8 h 30 m 0 s80.50
2026-01-087 d 8 h 30 m 0 s176.50
2026-01-1514 d 8 h 30 m 0 s344.50
2026-02-0131 d 8 h 30 m 0 s752.50
Because the end time (2:15 pm) stays after the start time (9:00 am) on every one of these dates, the day count and the hour total climb together in step with the calendar gap.

Questions

Is elapsed time the same as duration?

Yes, they describe the same thing: the amount of time between a start point and an end point, rather than either point on its own. "Elapsed time" is the more common phrasing when the two points are a specific start and end moment.

What happens if the end time is before the start time on the clock?

That is fine as long as the end date is later, such as a start at 11 pm and an end at 6 am the next day; the calculator works from the full date and time together, so it handles the crossover automatically.

Can I use this for a same-day span only?

Yes, set the start date and end date to the same day and just change the times; it works exactly like a same-day hours calculator in that case, with the added day-count column simply reading zero.

Why does the calculator show a warning if I enter the end before the start?

A negative elapsed time is not meaningful, so the calculator flags when the end point is earlier than the start point and still shows the size of that gap as a positive span, so you notice the order was reversed rather than getting a confusing negative result.

For a same-day, clock-in-to-clock-out total with an unpaid break subtracted, see the hours calculator. For a full years-months-days breakdown between two calendar dates, use the time between dates calculator.