Time calculator
Add and subtract hours, minutes and seconds, find the time after or before a clock time, the hours between two times or dates, and paid hours for a shift. Answers update as you type and show the math.
Add or subtract hours, minutes and seconds
Add as many rows as you need. Each row can be added or subtracted; the total updates as you type.
Paste a list of times
2:15 is read as 2 hours 15 minutes. You can also write 1h 55m, 90 min or 45s.
Type a time calculation
Write it the way you would say it. Use d, h, m, s and ms (or days, hours, minutes, seconds), + and −, and * or / to multiply or divide. Start with a clock time such as 7:45 AM to get a time of day back.
Try:
A plain 1:30 is a duration of 1 hour 30 minutes. A number with no unit counts as minutes. Each term is worked out left to right; × and ÷ apply to the term they follow.
Add or subtract time from a clock time
What time will it be 9 hours 30 minutes after 7:45 AM? What time was it 5 hours before 2:15 PM? The answer shows if it lands on another day.
Time between two clock times
How long is it from one time to another? If the end is earlier than the start, it counts as the next day, so 10:00 PM to 6:30 AM is 8 hours 30 minutes.
Work shift: paid hours after a break
Enter a start, an end and an unpaid break. Night shifts that end the next morning are handled. Add a rate to see pay, and an overtime threshold if you get time and a half.
Time between two dates and times
The exact time from one date and time to another, in days, hours, minutes and seconds, using your time zone and its daylight saving changes.
Add or subtract time from a date
Start from a date and time and add or take away days, hours, minutes and seconds. Days are counted on the calendar, so the time of day stays the same across a daylight saving change.
Convert decimal hours, minutes and seconds
Turn 7.75 hours into 7 hours 45 minutes, 7:45 into 7.75 hours, or 5,432 seconds into hours, minutes and seconds.
Off by default. Nothing you type is sent anywhere: every calculation runs on your device, and recent ones are stored only in this browser if you turn this on. A copied link contains your inputs, so check it before sharing work hours.
How the calculator works
Every duration is stored as a whole number of milliseconds, so 0.1 s + 0.2 s is exactly 0.3 s and nothing is lost to rounding until the answer is displayed. Days are 24 hours in duration maths; the date modes use real calendar days.
- Durations and clock times are different. 2:30 typed into a duration field means 2 hours 30 minutes. A time of day is picked with a time box or written with AM or PM, like 2:30 PM.
- Midnight. Adding time to 11:30 PM rolls into the next day, and the result says “next day”. Between two clock times, an end earlier than the start counts as the next day unless you untick that box.
- Negative results. Taking 3 hours from 2 hours 45 minutes gives −15 minutes, with the minus sign kept in every format.
- Daylight saving. Clock-only modes ignore it, because a clock time has no date. The date modes use your device’s time zone rules: a span that crosses the spring change is an hour shorter than the calendar suggests, and the result tells you.
- Rounding. Decimal hours show up to four places; the h:mm:ss form is exact. Shift rounding is off unless you choose it.
Worked examples you can check
These are the test cases the calculator is checked against. If you ever get a different answer, tell us.
| Calculation | Mode | Correct answer |
|---|---|---|
| 2h 45m + 1h 30m | Add & subtract | 4h 15m (255 minutes, 4.25 hours) |
| 2h 45m − 3h | Type it | −15m |
| 2h 30m × 3 | Type it | 7h 30m |
| 11:30 PM + 45 minutes | Clock ± time | 12:15 AM, next day |
| 12:15 AM − 45 minutes | Clock ± time | 11:30 PM, previous day |
| 7:45 AM + 9h 30m | Type it | 5:15 PM |
| 10:00 PM to 6:30 AM | Between times | 8h 30m, crosses midnight |
| 9:00 AM to 5:30 PM, 30 min break | Work shift | 8h paid, 8 decimal hours |
| 7.75 decimal hours | Convert | 7h 45m |
| 7:45 as hours:minutes | Convert | 7.75 hours |
| 5,432 seconds | Convert | 1h 30m 32s |
| Feb 28 to Mar 1, 2028 | Between dates | 2 days (2028 is a leap year) |
| Mar 7 9:00 AM to Mar 8 9:00 AM, 2027, New York | Between dates | 23 hours (clocks go forward) |
Minutes to decimal hours
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 0 | 0.00 | 30 | 0.50 |
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
Questions people ask
How do I add hours and minutes?
Add the minutes first. If they come to 60 or more, carry one hour for every 60, then add the hours. 2 h 45 min + 1 h 30 min = 3 h 75 min = 4 h 15 min. The calculator shows these steps under “Show the math”.
How do I calculate time between two times that cross midnight?
Subtract the start from the end. If the answer is negative, add 24 hours. From 10:00 PM to 6:30 AM: 6:30 − 22:00 = −15 h 30 min, plus 24 h = 8 h 30 min.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours, the number most timesheets and payroll systems want.
How do I turn decimal hours back into hours and minutes?
Keep the whole hours, then multiply the decimal part by 60. 7.75 hours is 7 hours plus 0.75 × 60 = 45 minutes.
What time will it be in 8 hours?
Choose “Clock ± time”, enter the current time and 8 hours. The result says whether it falls on the next day.
Does the calculator handle daylight saving time?
Clock-time modes have no date, so they ignore daylight saving. The two date modes use your device’s time zone, so a span that crosses a clock change shows the real elapsed time and says so.
Can I multiply or divide a time?
Yes. In “Type it”, write 2h 30m * 3 or 8h 15m / 5. The multiplication or division applies to the term it follows.
Is my data saved?
No. Everything is worked out in your browser. Recent calculations are kept only if you tick the box, and only in this browser.