Home · Date & Time · Date Differences · Hours Calculator

Hours Calculator

Calculate the hours between two dates and times, with the span also given in minutes, seconds and decimal days.

Your figures

Example result — edit the figures to make it yours

2 days, 5 hours, 30 minutes

Time between the two moments

Total hours53.50
Total minutes3,210
Total seconds192,600
Days (decimal)2.2292

What this calculator does

Calculate the hours between two dates and times, with the span also given in minutes, seconds and decimal days. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Total seconds = (end date − start date) × 86,400 + (end time − start time); hours = total seconds ÷ 3,600

Each moment is turned into a single second count — its date on the proleptic Gregorian calendar plus its time of day — and the two counts are subtracted; an earlier end is swapped.

Dates use the proleptic Gregorian calendar: a year is a leap year when divisible by 4, except century years not divisible by 400.

Worked example

With the example inputs this page opens with, the result is 2 days, 5 hours, 30 minutes — time between the two moments.

Quick reference

Quick reference — the worked example in full
FigureValue
Time between the two moments2 days, 5 hours, 30 minutes
Total hours53.50
Total minutes3,210
Total seconds192,600
Days (decimal)2.2292

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Can the span cross midnight or several days?

Yes. Dates are part of the input, so spans of any length work and the day count is included in the total.

What if the end is earlier than the start?

The two moments are swapped and the positive duration is reported.

How does the Hours Calculator work?

Calculate the hours between two dates and times, with the span also given in minutes, seconds and decimal days. Start date & time · End date & time → Hours between. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Hours Calculator need?

Start date & time · End date & time → Hours between. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.