100% free forever. No signup, no tracking. Every tool runs in your browser. Nothing is uploaded.

How to Calculate Time Between Two Times?

Your shift started at 9:30 PM and ended at 6:15 AM. How long was that, really? Eight hours? Nine? If you have ever stared at a timesheet and guessed, this guide ends the guessing for good.

How to Calculate Time Between Two Times thumbnail

Why your brain keeps getting this wrong

Here is the problem. Time does not count in tens. Money does, distance mostly does, but clocks count in sixties. So subtracting 9:30 PM from 6:15 AM like a price gives you nonsense. I used to do my own hours on paper every Sunday night, and I got it wrong more often than I care to admit. One week I shorted myself 45 minutes and only noticed when the pay slip came in light.

Two traps cause it. First, the 12-hour clock resets at noon and midnight, so 6:15 AM looks smaller than 9:30 PM even though it comes later. Second, minutes borrow in groups of 60, not 100.

The 3-step method that always works

Three steps, no calculator needed.

Step 1: switch both times to the 24-hour clock. Add 12 to any PM hour. So 9:30 PM becomes 21:30, and 6:15 AM stays 06:15. Noon is 12:00, midnight is 00:00. Remember: 12:30 AM is half past midnight.

Step 2: if the end time is smaller than the start time, add 24 hours to the end. Our end time 06:15 becomes 30:15. That is the midnight trick, and it is the step everyone forgets.

Step 3: subtract, minutes first, then hours. If the end minutes are smaller, borrow one hour as 60 minutes. Here: 30:15 minus 21:30. The minutes give 15 minus 30, so borrow an hour: 29:75 minus 21:30 is 8 hours 45 minutes.

Now take off the break: a 45-minute meal break turns 8 hours 45 minutes into 8 hours exactly.

Prefer watching? This short lesson walks through elapsed time with clear examples.

I tested five real scenarios

I ran five everyday cases through our Time Duration Calculator and checked each one by hand: a day shift, 8:00 AM to 4:30 PM, 8 hours 30 minutes; a night shift, 9:30 PM to 6:15 AM, 8 hours 45 minutes, or 8 hours with the break; a red-eye flight, 11:40 PM to 2:05 AM, 2 hours 25 minutes; a study session, 7:15 PM to 10:50 PM, 3 hours 35 minutes; a morning exam, 9:00 AM to 12:15 PM, 3 hours 15 minutes.

Every answer matched the hand math. The difference is that the tool never forgets the midnight step. That is honestly the whole advantage. It just never gets tired at 1 AM when you are filling in a timesheet after a long shift.

My take: if you only do this once in a while, the 3-step method is plenty. If you do it every week for work, stop doing it by hand. Use the tool, check the answer once, and move on with your evening.

Three mistakes that cost people real money

Mistake one: mixing up 12 AM and 12 PM. A shift from 11:00 PM to 12:30 AM is 1 hour 30 minutes. Read that 12:30 as noon by accident and your answer is off by 12 hours.

Mistake two: reading decimal hours as hours and minutes. 8.5 hours is 8 hours 30 minutes, not 8 hours 50 minutes. The .5 means half an hour. If your timesheet asks for decimals, divide the minutes by 60: 45 divided by 60 is 0.75.

Mistake three: forgetting the unpaid break. Nine hours on site with a 45-minute lunch is 8 hours 15 minutes of work, not nine. Over a month, that forgotten break adds up to real money. Always subtract the break last, as its own step.

Do it in seconds with the free tool

If you would rather skip the pencil work, our Time Duration Calculator does all of this in one go. Type in the start time and the end time, and it gives you the answer in hours and minutes, plus the decimal version for timesheets. It handles the midnight rollover on its own, so a 9:30 PM to 6:15 AM shift just works. It runs in your browser, nothing is uploaded, and it costs nothing.

Pair it with our Hours Calculator for a full week, or read our guide on how many hours you worked this week for a whole timesheet. And if the dates differ too, our days between dates guide covers that.

Frequently asked questions

How do you calculate time between two times?

Convert both times to the 24-hour clock and subtract the start from the end, borrowing 60 minutes when the end minutes are smaller. If the end is earlier on the clock than the start, add 24 hours to the end first.

How long is 9:30 PM to 6:15 AM?

8 hours 45 minutes. In 24-hour time that is 30:15 minus 21:30. With a 45-minute break, the working time is 8 hours.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add the result to the hours. 45 minutes is 0.75 hours, so 8 hours 45 minutes is 8.75 hours.

What if my shift crosses midnight?

Add 24 hours to the end time before you subtract: 10:00 PM to 6:00 AM becomes 22:00 to 30:00, which is 8 hours.

About the author

Muhammad Imran builds free online tools at HandyNest. Every tool runs in your browser, nothing is uploaded, and no signup is ever needed.

Comments

Loading comments...

Leave a comment