Skip to main content

Guide

How to Calculate Time Between Two Times

Date & Time · By DailyTools Editorial Team · July 30, 2026 · 2 min read

From work shifts to travel plans, find the elapsed time between two clock times and handle midnight correctly.

Illustration showing how to calculate elapsed time between two clock times

Date & Time

To calculate time between two times, convert both times to minutes, subtract the start from the end, then convert the result back into hours and minutes. This is useful for shifts, appointments, travel, study sessions, and any schedule that uses clock times.

A simple same-day example

For a start time of 9:00 AM and an end time of 5:30 PM, the elapsed time is 8 hours and 30 minutes. You can see it by converting 9:00 AM to 540 minutes after midnight and 5:30 PM to 1,050 minutes. The difference is 510 minutes, or 8 hours 30 minutes.

How to handle a time that crosses midnight

When an end time is earlier than the start time, it normally belongs to the next day. For example, 10:00 PM to 6:00 AM is 8 hours: two hours from 10 PM to midnight, then six more hours after midnight. The Time Duration Calculator handles this automatically.

Subtracting an unpaid break

  1. Calculate the full duration from start to finish.
  2. Convert any unpaid break to minutes.
  3. Subtract the break from the full duration.
  4. Convert the remaining minutes back to hours and minutes.

For example, a 9:00 AM to 5:30 PM shift is 8 hours 30 minutes. After a 30-minute unpaid lunch break, the paid time is 8 hours.

Common mistakes to avoid

  • Treating 5:30 as a decimal number instead of 5 hours 30 minutes.
  • Forgetting that an overnight end time occurs on the next calendar day.
  • Subtracting a break twice when using a timesheet that already excludes it.
  • Using a time-duration calculator for a span of several calendar days instead of using date difference first.

Choose the right tool

Use Time Duration Calculator for one start and end time, Hours Calculator for multiple time entries, Date Difference Calculator for calendar days, and Business Days Calculator when weekends should not be counted. These tools show the arithmetic but do not replace payroll, contract, or legal timekeeping rules.

Explore Date & Time module · See our calculation methodology · Editorial policy