Skip to main content

Hours Between Dates Calculator

Calculate total hours, days, and minutes between two date-times. Enter start and end dates with times for an elapsed-time total in UTC.

Total hours

Example

56.5

Based on

Start
2025-08-01 09:00 UTC
End
2025-08-03 17:30 UTC

Times are combined in UTC. Total days are whole days in the non-overlapping breakdown (not calendar dates). End is on or after start.

More detail

Total days
2
Total minutes
3,390 minutes
Duration summary
2 days, 8 hours, and 30 minutes

Next step: Date Difference Calculator

When to use this calculator

Use this calculator whenever you need elapsed time measured in hours and minutes between two specific date-times, rather than a whole-day count.

  • Payroll time spans

    Measure hours from clock-in to clock-out across one or more workdays.

  • Shift calculations

    Compare night shifts that cross midnight using start and end date-times.

  • Project timelines

    Track elapsed hours between milestone start and completion timestamps.

  • Deadlines

    See how many hours remain between now and a due date-time.

  • Elapsed time tracking

    Log total hours and minutes for billing or time sheets in UTC.

Inputs

  • Start date and time

    The beginning of the span, combined as a UTC instant.

  • End date and time

    The end of the span, combined as a UTC instant. Must be on or after the start.

How the calculation works

Each date and time you enter is combined into one UTC instant. The calculator measures elapsed time from the start instant to the end instant.

Total hours uses the exact span in hours (including fractions when minutes or seconds remain). Total minutes is the full minute count. Total days shows whole days from the non-overlapping breakdown—the same style as the Date Difference Calculator (for example, 27 hours appears as 1 day and 3 hours, not 1.125 days).

The end date-time must be on or after the start. If the end is earlier, you will see a validation message instead of a result. For seconds in the breakdown or when the end is before the start, use the Date Difference Calculator.

Worked example

Start: 9:00 AM UTC on Monday. End: 5:00 PM UTC on Tuesday (the next day).

Elapsed time: 32 hours total.

Breakdown: 1 day and 8 hours (32 hours = 24 hours + 8 hours, shown as a non-overlapping day/hour split rather than 1.33 days).

Edge cases

  • Overnight shifts

    A shift starting in the evening and ending after midnight is measured correctly as long as the end date is entered as the following calendar day, not the same day.

  • Zero-length span

    Identical start and end date-times return 0 hours and 0 minutes.

  • Sub-hour precision

    A span of 90 minutes reports as 1.5 total hours (or 1 hour 30 minutes in the breakdown), not rounded to the nearest whole hour.

  • End before start

    The calculator shows a validation message rather than a result. For a span where the end might be before the start and you still want the gap length, use the Date Difference Calculator instead, which reports the absolute span either way.

The Business Days vs Calendar Days Guide explains when weekends and holidays count and which day type applies to deadlines, invoices, and contracts.

The How Business Days Are Calculated Guide and Business Days Between Dates Guide cover the counting rules behind every business-day tool on this site.

The Business Days Calculator and Working Days Calculator count weekdays between two known dates, excluding weekends and optional US federal holidays.

The Add Business Days To Date, Subtract Business Days From Date, and Business Day Offset calculators move a single date forward or backward by a business-day count.

The Business Days Until Date Calculator counts business days remaining from today or a custom date to a target deadline.

The Days Between Dates Calculator counts every calendar day between two dates, including weekends—use it instead of the business-day tools when weekends should count.

The Date Range Calculator and Date Duration Calculator break a range into calendar-day totals or a years/months/days breakdown, with inclusive or exclusive boundary options.

The Add or Subtract Days Calculator shifts a single date forward or backward by days, weeks, or months.

The Age Calculator applies the same calendar breakdown used by Date Duration to a birth date, expressed as years, months, and days.

The Hours Between Dates and Date Difference calculators measure elapsed time between two date-times down to hours, minutes, and seconds.

The Date Format Converter, Unix Timestamp Converter, and Timezone Converter handle format and zone conversion for a single instant rather than a span between two dates.

FAQ

How do I calculate hours between two dates?
Enter a start date and time and an end date and time. The calculator combines each pair in UTC and shows total hours, minutes, and a day/hour/minute summary when the end is on or after the start.
Can I include both date and time?
Yes. All four fields are required. Without times, use midnight (00:00) for a full-day boundary, or use Days Between Dates for calendar days only.
What happens if the end time is before the start time?
If the combined end instant is before the start instant, the calculator shows an error and does not display totals. Swap the values or fix the dates so the end is later.
How is this different from the Date Difference Calculator?
Same underlying elapsed-time engine. This calculator requires the end to be on or after the start and reports hours/days/minutes; the Date Difference Calculator accepts either order and adds a seconds breakdown.

Browse all Date & Business Days