Time Duration Calculator

Calculate the duration between two times. Supports AM/PM format.

Duration
0 hours
Hours0
Minutes0
Seconds0

About Time Duration Calculator

A time duration calculator measures the hours, minutes, and seconds between a start time and an end time. It handles both same-day durations and overnight shifts that cross midnight, making it ideal for shift workers, remote teams in different time zones, and anyone tracking hours across a full day. The tool supports standard AM/PM input through the browser's native time picker, so you can enter times naturally. This calculator is commonly used by employees to log work hours, by students to track study sessions, by freelancers to bill clients accurately, and by fitness enthusiasts to measure workout lengths. It is also useful for cooking and baking timelines, travel leg durations, and event scheduling. The overnight checkbox is especially valuable for night-shift workers, security personnel, and healthcare staff whose schedules span midnight. By providing a clear breakdown of hours and minutes, this tool eliminates manual subtraction errors and makes time tracking effortless. Whether you are calculating your daily commute or planning a multi-hour road trip, the time duration calculator keeps your schedule precise.

How to Use the Time Duration Calculator

Enter a start time like 9:00 AM and an end time like 5:00 PM. Click calculate and you'll see the duration is 8 hours, 0 minutes — a standard work day. For a night shift from 10:00 PM to 6:00 AM, check the "Overnight" box since the end time crosses midnight. The calculator adds 24 hours to the end time automatically and shows 8 hours. Try a 45-minute lunch break: 12:00 PM to 12:45 PM shows 0 hours, 45 minutes. The calculator handles any combination of times — morning shifts, split shifts, class periods, cooking times, whatever you need.

When to Use This Calculator

Tracking work hours for payroll: If you clock in at 8:30 AM and out at 5:15 PM with a 30-minute unpaid lunch, the calculator shows 8 hours 15 minutes total. But you need to subtract lunch: actual paid time is 7 hours 45 minutes. Use the calculator twice — once for total time and once for the lunch break.

Planning a road trip: You leave at 6:00 AM and your destination is 340 miles away. The GPS says 5.5 hours. Enter 6:00 AM to 11:30 AM — that's your estimated arrival. Add stops for fuel and food (two 15-minute breaks) and you're looking at 11:30 AM plus 30 minutes = noon.

Calculating study or exam duration: A 3-hour exam starts at 9:00 AM and ends at 12:00 PM. The calculator confirms 3 hours, 0 minutes. For study sessions, set a timer: study from 2:00 PM to 3:30 PM = 1.5 hours, then a 15-minute break, then another session.

Frequently Asked Questions

How do I calculate time that crosses midnight?

Check the "Overnight (crosses midnight)" box. This tells the calculator that your end time is on the next day. For example, a night shift from 10:00 PM to 6:00 AM: enter 10:00 PM as start, 6:00 AM as end, check the overnight box, and the result correctly shows 8 hours. Without checking it, the calculator would error because 6 AM appears before 10 PM.

Can I calculate durations longer than 24 hours?

Yes, you can calculate durations spanning multiple days by using the date and time fields together. For example, to find the duration between Monday 9:00 AM and Wednesday 5:00 PM, enter both dates and times. The calculator accounts for the full date difference and shows the total hours and minutes accurately. For shifts or events lasting multiple days, always set both date and time for correct results.

What is military time and how does it work?

Military time, also known as the 24-hour clock, runs from 00:00 (midnight) to 23:59 (11:59 PM). It avoids the ambiguity of AM/PM by using a continuous 24-hour scale. For example, 2:00 PM is 14:00 in military time, and 11:00 PM is 23:00. This calculator uses the 24-hour format in its time picker, making it easy to enter times without AM/PM confusion.

How do I calculate hours worked for payroll?

Enter your clock-in time as the start time and clock-out time as the end time. If your shift crosses midnight, check the overnight box. For example, 9:00 AM to 5:00 PM shows 8 hours. If you take an unpaid 30-minute lunch break, you would calculate two separate durations: total time and break time, then subtract to get paid hours. The result shows hours and minutes for accurate payroll calculation.

What is the 24-hour clock format?

The 24-hour clock format runs from 00:00 to 23:59, where 00:00 is midnight and 12:00 is noon. Unlike the 12-hour clock, there is no AM/PM distinction: 1:00 PM is 13:00, 6:00 PM is 18:00, and 11:00 PM is 23:00. This format is widely used in military, aviation, healthcare, and international contexts to avoid time ambiguity.