Skip to content
Max Tamilan

Time duration calculator

Enter a start and end time. If the end is earlier, the time is counted across midnight.

Duration
Enter both times
Decimal hours
—
Total minutes
—
Span
—

Add this tool to your website

Paste this code into your page. The tool runs in your visitors' browsers: what they type is not sent to you or to us. No cookies, no tracking.

Preview ↗

Your input never leaves your device. 100% private.

Ratings and reviews

Save to favourites

Average rating

0.0 / 5

No ratings yet. Be the first to rate this tool.

Ratings by stars

  • 5 5 stars 0
  • 4 4 stars 0
  • 3 3 stars 0
  • 2 2 stars 0
  • 1 1 star 0

Log in to save this tool, rate it and write a review. Log in Create an account

What people say

  • No reviews yet.
⚑ Report a problem

Wrong answer, a bug or a bad translation? Tell us. You do not need an account.

Do not paste personal data or the text, numbers or files you used in the tool. Describe the problem instead.

How to use the Time duration calculator

  1. Enter the start time.
  2. Enter the end time. An earlier end time means the next day.
  3. Optionally enter a break in minutes.
  4. Read the duration, decimal hours and total minutes.

Worked example

From 22:30 to 06:15 is 7 h 45 min (7.75 hours). From 09:00 to 17:30 with a 30-minute break is 8 h.

How it is worked out

Duration = end − start; if that is negative, 24 hours are added because the span crosses midnight. The break is then taken off.

Limits

  • Spans of 24 hours or more cannot be told apart from shorter ones; use the date difference calculator for whole days.

Privacy

Everything happens in your browser. What you type or choose is not sent to us, stored or logged.

Command palette

↑ ↓ move Enter open Esc close

Keyboard shortcuts

Ctrl + K
Open search and commands
/
Open search and commands (when not typing)
?
Show this list (when not typing)
Esc
Close a window

On a Mac, use ⌘ instead of Ctrl.