Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Time Difference Calculator — Free Online Time Comparison Tool

Calculate the difference between any two times of day with directional context.

First Time

Second Time

Time Difference

7hours45minutes

Total Minutes

465

Decimal Hours

7.75

Direction

First time is earlier

14:30 to 22:15 = 7h 45m

Common Time Gaps Reference Table

Scenario Typical Times Duration Decimal Hours
School day 08:00 - 15:00 7h 00m 7.00
Standard workday 09:00 - 17:00 8h 00m 8.00
Night shift 22:00 - 06:00 8h 00m 8.00
Movie screening 19:00 - 21:30 2h 30m 2.50
Transcontinental flight 08:00 - 19:30 11h 30m 11.50
Sleep cycle 23:00 - 07:00 8h 00m 8.00

Related Calculators

About this calculator

Time Difference Formula

Difference = |Time 2 (minutes) - Time 1 (minutes)|
If Crosses Midnight and Time 2 <= Time 1: Difference = (Time 2 + 1440) - Time 1
Direction = Time 1 < Time 2 ? "First is earlier" : "First is later"

Variables Explained

  • Time 1 (minutes): The first time point converted to minutes from midnight. Calculated as Hour x 60 + Minute. For 14:30, this is (14 x 60) + 30 = 870 minutes.
  • Time 2 (minutes): The second time point, also in minutes from midnight. For 22:15, this is (22 x 60) + 15 = 1,335 minutes.
  • | | (Absolute value): The difference is always expressed as a positive number, representing the magnitude of the gap regardless of direction.
  • 1,440: Total minutes in a 24-hour day. Added to Time 2 when Crosses Midnight is enabled to account for the day transition.
  • Direction: A comparison of the raw values (before midnight adjustment) to determine which time comes first chronologically.

Step-by-Step Example

Calculate the difference between 14:30 and 22:15:

  1. Convert Time 1: (14 x 60) + 30 = 870 minutes
  2. Convert Time 2: (22 x 60) + 15 = 1,335 minutes
  3. Difference: |1,335 - 870| = 465 minutes
  4. Hours: floor(465 / 60) = 7 hours
  5. Remaining minutes: 465 mod 60 = 45 minutes
  6. Decimal hours: 465 / 60 = 7.75
  7. Direction: 870 < 1,335, so "First time is earlier"
  8. Result: 7 hours 45 minutes (7.75 decimal hours)

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026