How to calculate the time between two times
- Enter the start time in AM/PM or 24-hour format.
- Enter the end time; if it is earlier, the tool counts it as the next day.
- Read the duration in hours:minutes and decimal.
Time between two times
Type two clock times and get the gap. From 9:40 AM to 2:15 PM is 4 h 35 min, or 4.58 hours. Don't worry about the format: 9:40am, 940 or 09:40 all work.
When the end time is earlier than the start, the tool assumes the period runs into the next day. From 9:15 PM to 5:45 AM is 8 h 30 min, which is what you want for night shifts.
The result appears in hours and minutes, in decimal hours and in total minutes. If you need to know how long a meeting, a trip or a shift lasted, this is the quickest way.
AM/PM and 24-hour (military) time
You can enter times in 12-hour format with AM and PM or in 24-hour format, also called military time. 21:15 is 9:15 PM, 05:45 is 5:45 AM. Quick guide for the afternoon:
- 1:00 PM = 13:00
- 3:30 PM = 15:30
- 6:00 PM = 18:00
- 9:15 PM = 21:15
- 12:00 AM (midnight) = 00:00
For PM times after noon, add 12 to the hour. 12 PM is noon and stays 12:00.
Before noon the hours are the same in both formats, with a leading zero: 7:05 AM is 07:05. The only odd one is 12 AM, midnight, which becomes 00:00.
Add time to a clock time
The second tool on this page answers the opposite question: what time will it be? Start at 7:30 AM, add 8 h 45 min, and you finish at 4:15 PM. Useful for knowing when your shift ends with lunch included.
If the result passes midnight, the tool tells you it lands on the next day, shown as +1 day. Start at 10:00 PM, add 9 h 30 min, and you finish at 7:30 AM the next day.
Common uses
People use this page to time a shift before taking breaks off, to check a parking or rental period, to plan how long a trip takes across midnight, or to read 24-hour times from a schedule that uses military time. The result is a duration, so it never depends on time zones or daylight saving within one entry.
From one gap to the whole week
If you're timing a work shift, the work hours calculator also takes off lunch and breaks. To add several durations together, use add time.
Frequently asked questions
How many hours are between 9:15 PM and 5:45 AM?
8 hours and 30 minutes. The tool counts it as running past midnight.
Does it accept military time?
Yes. Enter times like 13:45 or 21:15 and it works the same as AM/PM.
How do I convert PM to military time?
Add 12 to the hour for times from 1 PM on. 3:30 PM is 15:30. Noon is 12:00 and midnight is 00:00.
Can I get the result in decimal?
Yes. It shows hours:minutes, decimal hours and total minutes.
Rules checked on 2026-11-18 · Estimates calculated in your browser. Not legal or employment advice. Your contract or collective agreement may set other conditions. This sheet does not replace the time-recording system the law requires from the employer, but you can use it as your own record.