Hours Between Calculator
Select a start date and time, select an end date and time, and get the exact elapsed duration in hours, minutes, and days. Choose 24-hour time or AM/PM input.
Examples
Same-day interval
From 09:00 to 17:30 on the same date.
- Time format
- 24-hour
- Start date and time
- May 27, 2026, 9:00 AM
- End date and time
- May 27, 2026, 5:30 PM
Embed this calculator
Copy a free iframe snippet for articles, learning pages, forums, wikis, newsletters, and internal docs.
How It Works
Formula
Variables, symbols and units
- Whole calendar-day index for the selected date
- Start date-time converted to total minutes
- End date-time converted to total minutes
- Elapsed minutes divided by 60
- Minutes in one day
Calculation method explained
Choose the start and end date-times. The calculator converts each local date-time into a minute index, subtracts the start from the end, and shows the difference as days-hours-minutes, decimal hours, total minutes, and total days.
Each selected date is converted to a whole-day index, then the selected hour and minute are added. Subtracting the start minute index from the end minute index gives the elapsed minutes. Negative intervals are rejected so the result is never ambiguous.
Examples
Same-day interval24-hour · May 27, 2026, 9:00 AM → 0d 8h 30m
From 09:00 to 17:30 on the same date.
- Time format
- 24-hour
- Start date and time
- May 27, 2026, 9:00 AM
- End date and time
- May 27, 2026, 5:30 PM
- Duration
- 0d 8h 30m
Overnight interval24-hour · May 27, 2026, 10:00 PM → 0d 8h 0m
From late evening to early morning on the next date.
- Time format
- 24-hour
- Start date and time
- May 27, 2026, 10:00 PM
- End date and time
- May 28, 2026, 6:00 AM
- Duration
- 0d 8h 0m
Multi-day intervalAM/PM · May 27, 2026, 2:15 PM → 2d 19h 30m
A longer span where days and hours both matter.
- Time format
- AM/PM
- Start date and time
- May 27, 2026, 2:15 PM
- End date and time
- May 30, 2026, 9:45 AM
- Duration
- 2d 19h 30m