Time Duration Calculator Hours and Minutes (AM/PM)

Time Duration Calculator

Enter a start and end time in 12-hour AM/PM format to find the elapsed duration in hours and minutes, decimal hours, and total minutes, with overnight shifts and break deductions handled automatically.

Quick Time Presets

🕐Start and End Times

Subtract unpaid lunch or rest minutes from the total.

Hours & minutes 0h 0m after break deduction
Decimal hours 0.00 minutes divided by 60
Total minutes 0 net elapsed minutes
Before break 0h 0m raw span minus break shown

🔢How The Math Works

012 AM minutes
72012 PM minutes
1440Minutes per day
÷60Minutes to hours

📋Common Shift Durations

ScenarioStartEndHours & MinDecimalMinutes
Standard workday9:00 AM5:00 PM8h 0m8.00480
Workday with 30m lunch9:00 AM5:30 PM8h 0m8.00480
Early shift6:00 AM2:00 PM8h 0m8.00480
Overnight shift10:00 PM6:00 AM8h 0m8.00480
Half day morning8:00 AM12:00 PM4h 0m4.00240
Retail closing2:00 PM10:15 PM8h 15m8.25495
12-hour nursing7:00 AM7:00 PM12h 0m12.00720
Late double11:00 AM11:30 PM12h 30m12.50750

🗂Minutes to Decimal Hours

MinutesDecimalMinutesDecimalMinutesDecimal
5 min0.08325 min0.41745 min0.750
10 min0.16730 min0.50050 min0.833
15 min0.25035 min0.58355 min0.917
20 min0.33340 min0.66760 min1.000

🌐AM/PM to 24-Hour Reference

12-Hour24-HourMinutes Since MidnightPeriod
12:00 AM00:000Midnight
6:00 AM06:00360Morning
9:00 AM09:00540Morning
12:00 PM12:00720Noon
3:00 PM15:00900Afternoon
5:30 PM17:301050Evening
9:00 PM21:001260Night
11:59 PM23:591439Night

Full Formula Breakdown

Convert to minutesTake the 12-hour value, set 12 to 0, then add 12 hours for PM. Minutes = hour part × 60 + minute part. So 12 AM = 0 and 12 PM = 720.
Raw durationDuration = end minutes − start minutes. Example: 5:30 PM is 1050 and 9:00 AM is 540, giving 510 minutes.
Cross midnightIf the raw duration is negative, or overnight is forced, add 1440 minutes (24 hours) so the end lands on the next day.
Apply breakNet minutes = duration − break minutes. A 30-minute lunch turns a 510-minute span into 480 net minutes.
Hours and minutesHours = floor(net ÷ 60) and minutes = net mod 60. So 510 net minutes reads as 8h 30m.
Decimal hoursDecimal = net minutes ÷ 60. So 510 minutes equals 8.50 decimal hours for payroll and timesheets.

💡Time Duration Tips

Check AM vs PM: The most common error is mixing up AM and PM, which shifts a result by exactly 12 hours. Confirm both periods before you trust the number, especially near noon and midnight.
Overnight adds 24h: When the end time is earlier on the clock than the start, the shift crosses midnight, so the calculator adds 1440 minutes. A 10:00 PM start to a 6:00 AM end is 8 hours, not a negative value.

Time is measured in hours, but paid for in minutes. This mismatch is why most employees and managers argues over when they should clock-in and -out. I may have punched in at 9am and out at 5pm, so I figure I put in eight hours, right? What if I went over midnight or took a half-hour for lunch that wasn’t logged?

The calculator above will do all the conversion math for you once you enter your start/end times. You will never again struggle with converting to/from AM/PM or adding extra hour for those annoying overnight shifts.

How to Calculate Your Work Hours

Oh, that’s right. Our brain doesn’t like modular arithmetic; we’d rather do things one after another than think about wrapping times around the clock face. If your shift begin at 10 PM and ends at 6 AM, our intuition says the second number is smaller then the first. This makes it feel like something must be wrong with duration being negative. No, sorry, you actualy have to add a whole day, since it’s impossible to cross midnight without jumping forward a day.

But this happens all the time, particularly with nurses or security guard who might work from 9-5 some days, then 11-7 other days.” The solution is to let it jump a day; if you don’t, the result makes no sense at all. Letting it jump days does make sense. And the beauty of making that little change in logic is you now have actual amount of time.

This is also why breaks matter. A lot of folks don’t realize that adding or removing a half-hour here or there, or even just a quarter-hour, makes a huge difference., makes a huge difference in your hourly pay. On the calculator, you can subtract unpaid breaks in exact minutes straight off gross length.

Most payroll systems expects you to input decimal hours instead of hours plus minutes. For example, half-an-hour is exactly 0.50 decimal hours (which is the same as thirty minutes); fifteen minutes is 0.25. If you get these conversions wrong, you’ll round wrongly and end up with rounding error at bottom of the pile. The handy reference table on the page explains this nicely, and shows you exactly what 5 minutes equates to… Roughly 0.083 of an hour.

Messy looking stuff, yes, but that’s the language payroll software speak. It’s important to know your net time versus your gross time because gross time is nothing but how long it took from start to finish (i.e., sitting down to walking away). Your net time, what you’re getting paid for or billing. Will subtract any unpaid lunch break, etc. The calculator displays both times in parallel so you can easily see if you’re sacrificing too much paid work due to administrative lag time or break periods.

Having the gross length adjacent to the net makes the minutes feel concrete: “Oh yeah. I’m not getting paid for those 30 minutes.” Many people are confused by decimal conversions, because they’re not accustomed to thinking about time as a fraction of an hour; our brains accounts for time in terms of hours and minutes, whereas accounting software accounts for time based off base-ten decimals. To get the decimal part, divide the remaining minutes by sixty: If you figure out that you’ve got fifty minutes left after rounding up/down to whole hours, it’s around 0.833 of an hour. (You don’t actually need to remember this math; just know that 45 minutes is exactly 0.75 hours, which makes checking your math easy.) The tool takes care of the grunt work of turning your residual minutes into exact decimal representation required for payroll.

The second wrinkle is working overnight, which adds a few more variables because the calendar day changes. For example, the eight hours between 10:00 PM and 6:00 AM should not be calculated as negative eight hours. The calculator accounts for that flip by adding the total number of minutes in a full day (1440) as a way to invert the result and make sure it comes out right and positive even though the shift has crossed the midnight line. It is an easy solution for a common problem.

Unless you’re on the clock, freelancing or otherwise, time just doesn’t seem like it matters very much, until you realize we measure time in hours but pay for it in minutes. It can be the difference of 12 all-or-nothing hours depending if you get AM or PM wrong, which is the most common mistake. So, double check those letters before pressing that calculate button.

After you see where the app draws the line from what time means and what money means, you’ll never question if you’re getting paid fairly ever again. Because at the end of the day, it’s not about how long it takes you to work an hour. How many minutes you’re owed and will get paid out is everything.

Time Duration Calculator Hours and Minutes (AM/PM)