Time Between Two Times Calculator
From 8:30-17:00 (8:30 AM to 5:00 PM) is 8 hours, 30 minutes: 8:30 as hours and minutes, 8.5 decimal hours, 510 minutes. The same working gives 4:30 for 12:30-17:00 and 8:25 (≈ 8.42 decimal hours) for 9:15 am to 5:40 pm. Subtract the start from the end in minutes after midnight; when the end is earlier than the start, the end is the next day, so 22:00 to 06:00 is 8:00. Add dates for spans of more than 24 hours, an unpaid break to take off, or a number of days for a repeated shift.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
8:30 AM → 5:00 PM
8:30
8.5 decimal hours, 510 minutes (8 hours, 30 minutes)
- In 12-hour time
- 8:30 AM to 5:00 PM
- In 24-hour time
- 08:30 to 17:00
- Hours and minutes
- 8 hours, 30 minutes
- Duration (h:mm)
- 8:30
- Decimal hours
- 8.5
- Total minutes
- 510
The working
- Turn each time into minutes after midnight. Start 8:30 (08:30 on the 24-hour clock): 8 × 60 + 30 = 510 minutes after midnight. End 17:00: 17 × 60 + 0 = 1,020 minutes after midnight.
- Subtract the start from the end: 1,020 − 510 = 510 minutes.
- Divide by 60: 510 ÷ 60 is 8 hours with 30 minutes left over, written 8:30.
- Decimal hours: 510 ÷ 60 = 8.5.
Day by day
Common shifts and how long they are
| Shift (24-hour) | Same shift (12-hour) | Duration (h:mm) | Decimal hours | Minutes | Less a 30-minute break (h:mm) |
|---|---|---|---|---|---|
| 6:00-14:00 | 6:00 AM to 2:00 PM | 8:00 | 8 | 480 | 7:30 |
| 7:00-15:00 | 7:00 AM to 3:00 PM | 8:00 | 8 | 480 | 7:30 |
| 7:00-15:30 | 7:00 AM to 3:30 PM | 8:30 | 8.5 | 510 | 8:00 |
| 7:30-16:00 | 7:30 AM to 4:00 PM | 8:30 | 8.5 | 510 | 8:00 |
| 8:00-16:00 | 8:00 AM to 4:00 PM | 8:00 | 8 | 480 | 7:30 |
| 8:00-16:30 | 8:00 AM to 4:30 PM | 8:30 | 8.5 | 510 | 8:00 |
| 8:30-17:00 | 8:30 AM to 5:00 PM | 8:30 | 8.5 | 510 | 8:00 |
| 9:00-17:00 | 9:00 AM to 5:00 PM | 8:00 | 8 | 480 | 7:30 |
| 9:00-17:30 | 9:00 AM to 5:30 PM | 8:30 | 8.5 | 510 | 8:00 |
| 12:30-17:00 | 12:30 PM to 5:00 PM | 4:30 | 4.5 | 270 | 4:00 |
| 13:00-21:00 | 1:00 PM to 9:00 PM | 8:00 | 8 | 480 | 7:30 |
| 14:00-22:00 | 2:00 PM to 10:00 PM | 8:00 | 8 | 480 | 7:30 |
| 7:00-19:00 | 7:00 AM to 7:00 PM | 12:00 | 12 | 720 | 11:30 |
Durations across midnight
| Shift | In 24-hour time | Before midnight | After midnight | Total (h:mm) | Decimal hours |
|---|---|---|---|---|---|
| 18:00-02:00 | 18:00 to 02:00 | 6:00 | 2:00 | 8:00 | 8 |
| 20:00-04:00 | 20:00 to 04:00 | 4:00 | 4:00 | 8:00 | 8 |
| 22:00-06:00 | 22:00 to 06:00 | 2:00 | 6:00 | 8:00 | 8 |
| 23:00-07:00 | 23:00 to 07:00 | 1:00 | 7:00 | 8:00 | 8 |
| 23:30-08:00 | 23:30 to 08:00 | 0:30 | 8:00 | 8:30 | 8.5 |
| 19:00-07:00 | 19:00 to 07:00 | 5:00 | 7:00 | 12:00 | 12 |
| 21:30-05:45 | 21:30 to 05:45 | 2:30 | 5:45 | 8:15 | 8.25 |
| 10 pm-6 am | 22:00 to 06:00 | 2:00 | 6:00 | 8:00 | 8 |
| 12:00 pm-12:00 am | 12:00 to 00:00 | 12:00 | 0:00 | 12:00 | 12 |
| 23:59-00:01 | 23:59 to 00:01 | 0:01 | 0:01 | 0:02 | ≈ 0.03 |
12-hour and 24-hour clock for every hour of the day
| 24-hour clock | Four digits | 12-hour clock | Minutes after midnight | Note |
|---|---|---|---|---|
| 00:00 | 0000 | 12:00 AM | 0 | Midnight, the start of the day |
| 01:00 | 0100 | 1:00 AM | 60 | — |
| 02:00 | 0200 | 2:00 AM | 120 | — |
| 03:00 | 0300 | 3:00 AM | 180 | — |
| 04:00 | 0400 | 4:00 AM | 240 | — |
| 05:00 | 0500 | 5:00 AM | 300 | — |
| 06:00 | 0600 | 6:00 AM | 360 | — |
| 07:00 | 0700 | 7:00 AM | 420 | — |
| 08:00 | 0800 | 8:00 AM | 480 | — |
| 09:00 | 0900 | 9:00 AM | 540 | — |
| 10:00 | 1000 | 10:00 AM | 600 | — |
| 11:00 | 1100 | 11:00 AM | 660 | — |
| 12:00 | 1200 | 12:00 PM | 720 | Noon |
| 13:00 | 1300 | 1:00 PM | 780 | — |
| 14:00 | 1400 | 2:00 PM | 840 | — |
| 15:00 | 1500 | 3:00 PM | 900 | — |
| 16:00 | 1600 | 4:00 PM | 960 | — |
| 17:00 | 1700 | 5:00 PM | 1,020 | — |
| 18:00 | 1800 | 6:00 PM | 1,080 | — |
| 19:00 | 1900 | 7:00 PM | 1,140 | — |
| 20:00 | 2000 | 8:00 PM | 1,200 | — |
| 21:00 | 2100 | 9:00 PM | 1,260 | — |
| 22:00 | 2200 | 10:00 PM | 1,320 | — |
| 23:00 | 2300 | 11:00 PM | 1,380 | — |
Ways to type a time, and how the calculator reads them
| You type | Read as (24-hour) | Read as (12-hour) | Note |
|---|---|---|---|
| 9:15 am | 09:15 | 9:15 AM | AM and PM make it a 12-hour time |
| 9:15am | 09:15 | 9:15 AM | AM and PM make it a 12-hour time |
| 9.15 pm | 21:15 | 9:15 PM | AM and PM make it a 12-hour time |
| 9 am | 09:00 | 9:00 AM | AM and PM make it a 12-hour time |
| 5p | 17:00 | 5:00 PM | AM and PM make it a 12-hour time |
| 0915 | 09:15 | 9:15 AM | No AM or PM: read on the 24-hour clock |
| 915 | 09:15 | 9:15 AM | No AM or PM: read on the 24-hour clock |
| 1740 | 17:40 | 5:40 PM | No AM or PM: read on the 24-hour clock |
| 17h40 | 17:40 | 5:40 PM | No AM or PM: read on the 24-hour clock |
| 17 | 17:00 | 5:00 PM | No AM or PM: read on the 24-hour clock |
| noon | 12:00 | 12:00 PM | Noon |
| midnight | 00:00 | 12:00 AM | Midnight at the start of the day |
| 12:00 am | 00:00 | 12:00 AM | Midnight at the start of the day |
| 12:00 pm | 12:00 | 12:00 PM | Noon |
| 24:00 | 24:00 | 12:00 AM | The end of the day, as an end time |
A week of the same shift, Monday to Friday
| Shift | Daily (h:mm) | Daily after 30-minute break | Five days (h:mm) | Five days (decimal hours) |
|---|---|---|---|---|
| 8:00-16:00 | 8:00 | 7:30 | 37:30 | 37.5 |
| 8:30-17:00 | 8:30 | 8:00 | 40:00 | 40 |
| 9:00-17:00 | 8:00 | 7:30 | 37:30 | 37.5 |
| 9:00-17:30 | 8:30 | 8:00 | 40:00 | 40 |
| 7:00-15:30 | 8:30 | 8:00 | 40:00 | 40 |
How to find the time between two times
- Put both times on the same clock. Write each time as a 24-hour time. 9:15 am is 09:15; 5:40 pm is 17:40, because PM adds 12 hours (except 12:00 PM, which is noon). A time with no AM or PM is already a 24-hour time.
- Turn each time into minutes after midnight. Hours × 60 plus minutes: 09:15 is 9 × 60 + 15 = 555, and 17:40 is 17 × 60 + 40 = 1,060.
- Subtract the start from the end. 1,060 − 555 = 505 minutes. If the end is smaller than the start, the end is on the next day: add 1,440 minutes (24 hours) to it first, so 22:00 to 06:00 is 360 + 1,440 − 1,320 = 480 minutes.
- Turn the minutes back into hours and minutes. Divide by 60: 505 ÷ 60 is 8 with 25 left over, so 8:25 (8 h 25 min). As decimal hours, 505 ÷ 60 ≈ 8.42.
- Take off a break or repeat the shift. Subtract an unpaid break in minutes: 8:30 less 30 minutes is 8:00. Multiply by the number of days for a week: 5 days of that is 40:00.
Frequently asked questions
- How do you calculate the hours between two times?
- Convert both times to the 24-hour clock, subtract the start from the end, then split the minutes into hours and minutes. From 9:15 am to 5:40 pm: 09:15 and 17:40 are 555 and 1,060 minutes after midnight, the difference is 505 minutes, and 505 ÷ 60 is 8 hours 25 minutes (8:25). You can also subtract the hours and the minutes separately and borrow 60 minutes when the end’s minutes are smaller: 9:45 to 17:15 is 7:30.
- How many hours is 8:30 to 17:00?
- 8:30 to 17:00 (8:30 AM to 5:00 PM) is 8:30: 8 hours, 30 minutes, 8.5 decimal hours, 510 minutes. After a 30-minute unpaid lunch it is 8:00, which is 8 hours, and 40:00 over five days.
- How many hours is 12:30 to 17:00?
- 12:30 to 17:00 (12:30 PM to 5:00 PM) is 4:30: 4 hours, 30 minutes, 4.5 decimal hours, 270 minutes. 12:30 is half past noon, so both times are in the afternoon and nothing crosses midnight.
- How do I calculate the hours between two times overnight, like 10 pm to 6 am?
- When the end is earlier than the start, the calculator takes the end as the next day, because a shift cannot end before it began: 10 pm to 6 am is 8:00 (8 hours, 480 minutes). By hand, add 24 hours to the end time: 06:00 becomes 30:00, and 30:00 − 22:00 = 8:00. 2:00 of it falls before midnight and 6:00 after. The page shows this assumption in a note under the result. With the “Same day only” choice, the same entry is an error instead: “The end 6:00 AM is earlier than the start 10:00 PM. Choose “Overnight” to count it as the next day, or add the two dates.”
- What if the start and end times are the same?
- Then the time between them is 0:00: nothing has elapsed. The calculator does not guess that you meant a full day. For exactly 24 hours, type 00:00-24:00 (24:00), or enter the same time on two dates one day apart.
- How do I find the time between two times more than 24 hours apart?
- Fill in the start date and the end date. Times alone cannot tell more than 24 hours apart, so the calculator only assumes “the next day” when no dates are given. From 22:00 on Oct 30, 2026 to 06:00 on Nov 2, 2026 it is 56:00, which is 2 days, 8 hours (3,360 minutes). The days are counted as whole calendar days, so the answer does not depend on your time zone.
- Is 12:00 AM midnight or noon, and what is 12:00 PM?
- 12:00 AM is midnight at the start of the day (00:00, 0 minutes after midnight) and 12:00 PM is noon (12:00, 720 minutes). The hour after midnight is 12:30 AM and the hour after noon is 12:30 PM; the 12-hour clock goes 11:59 AM, 12:00 PM, 12:59 PM, 1:00 PM. Because the labels confuse many people, writing “noon” and “midnight”, or using the 24-hour clock, avoids doubt. “Midnight” as an end time (10:00 PM → 12:00 AM) is read as 24:00, the end of that day, and gives 2:00.
- What are the common AM/PM mistakes?
- Leaving off the PM is the big one. Without AM or PM a time is read on the 24-hour clock, so 8:30-5:00 is 8:30 AM to 5:00 AM the next morning, 20:30, and the page warns you. Type 8:30 am - 5:00 pm for 8:30. Other traps: 12:00 AM is the start of the day, not the end, and the 12-hour clock has no hour 0 or 13, so “13 pm” and “0:30 am” are rejected rather than guessed.
- How do I convert hours and minutes to decimal hours?
- Divide the minutes by 60 and add the hours. 8:25 is 8 + 25 ÷ 60 ≈ 8.42 hours. Quarter hours are 0:15 = 0.25, 0:30 = 0.5, 0:45 = 0.75. The calculator computes the decimal from whole minutes, rounds to two places and puts a ≈ in front when it had to round; the minutes figure beside it is exact.
- How do I take an unpaid break off the time between two times?
- Type the break in the break box as minutes (30), h:mm (0:30) or 1h 15m. It is subtracted from the time between the two times: 8:30 less 30 minutes is 8:00 (8 hours), and 22:00-06:00 less 30 minutes is 7:30. The break is taken off each day. Whether a break is paid depends on your employer and local rules, so check yours.
- How do I work out a Monday to Friday week of the same shift?
- Set “Days at this shift” to 5. For 8:30-17:00 with a 30-minute break, each day is 8:00 and five days are 40:00 (40 hours, 2,400 minutes), with a running total for every day. For shifts that differ from day to day, use the timesheet calculator.
- How do I type times like 0915 and 1740?
- Type them as they are. Three or four digits are read as hours then two-digit minutes, so 0915-1740 gives 8:25, the same as 9:15-17:40, 9:15 am - 5:40 pm and 9.15am until 5.40pm. A range can be in one box with a hyphen, “to” or “until”, or in separate start and end boxes. For the reverse job, converting between 12-hour and 24-hour time, the military time converter is the quicker tool.
- How is this different from the hours calculator, time calculator and timesheet calculator?
- This one answers one question: how long is it from time A to time B. The hours calculator adds up lengths of time you already have (7:45 + 8:30). The time calculator adds or subtracts a length from a date and time, with daylight saving handled. The timesheet calculator takes a week of start and end times with pay and overtime. Use this page for a single span, with a break and a number of days if you need them.
- Does it allow for daylight saving time?
- No. It does clock arithmetic: 01:00 to 05:00 is 4:00 even on the night the clocks change. In places that change their clocks, that night has 23 or 25 hours, so a shift across the change really lasts an hour less or more than the clock times suggest. For elapsed time across a clock change, use the time calculator with the zone, or adjust by an hour.
- Does it round to the nearest 5, 10 or 15 minutes, or read seconds?
- No to both. Times are read to the minute and the answer is an exact whole number of minutes. Only the decimal hours are rounded, to two places. If your employer rounds clock times, round the start and end first and then enter them.
How it works
Each time is read as minutes after midnight, an integer from 0 to 1,440: hour × 60 + minute. With AM or PM the hour must be 1 to 12 and 12 AM is hour 0, 12 PM is hour 12, any other PM adds 12. Without them the time is on the 24-hour clock (hours 0 to 23); 24:00 is accepted as the end of the day (1,440) and “midnight” typed as the end is read the same way. Words: “noon” and “midday” are 12:00. The time between is the end minus the start. If that is negative, the end is taken as the next day (end + 1,440 − start) unless “Same day only” is chosen, which reports an error. With a start and an end date, the whole calendar days between them are counted from day numbers (no time zone and no daylight-saving shift) and the result is days × 1,440 + end − start. An unpaid break in whole minutes is subtracted once per day, and the day count multiplies the result. Hours and minutes are the total divided by 60 as a whole number and a remainder; decimal hours are total minutes ÷ 60 in integer arithmetic, rounded half up to two places, with a ≈ when it was rounded. Example: 8:30-17:00 is 1,020 − 510 = 510 minutes = 8:30 = 8.5 hours. The calculator does not look at time zones or daylight saving, does not read seconds and does not round to quarter hours.
Sources
Guides
- How to Add and Subtract Time: Hours, Minutes and DecimalsAdd hours and minutes by carrying 60, subtract by borrowing 60, handle midnight, and turn 7:45 into 7.75 decimal hours. Worked examples and rounding.
More free tools
- Hours CalculatorAdd up hours and minutes (7:45, 2h 30m, 1.5) into a total in h:mm, decimal hours and minutes. Subtract, multiply or divide durations too.
- Military Time ConverterConvert military time to standard time and back: 0730, 1430, 2.30pm, noon. Chart of every hour and half hour, how to say it, and Zulu zone letters.
- Decimal Hours ConverterConvert hours and minutes to decimal hours and back (7:45 = 7.75), with a 1-60 minute table and payroll rounding to 15, 6 or 5 minutes.
- Leap Year CalculatorIs it a leap year? Check any year from 1 to 9999 with the 4, 100 and 400 rule, find the next and previous leap years, list a range and get Easter Sunday.
- Days Between DatesHow many days between two dates? Enter a start and end date for the days, weeks, months and business days, plus worked examples and a leap-year note.
- Add Days to a DateWhat date is 90 days from a date? Add or subtract days, weeks, months, years or business days and see the date you land on, with month ends handled.