How the time calculator works
A time calculator is a tool for arithmetic on hours, minutes and seconds, which carry at 60 where ordinary numbers carry at 10. Type 2.45 plus 4.50 into a normal calculator and you get 6.95, a figure that means nothing on a clock. This one does the carrying, and it does four jobs:
- Add or subtract a list of up to 20 times, each one marked add or subtract.
- Move a clock time forward or back by a duration, to find what time it will be and on which day.
- Measure the hours between two clock times, including a shift that runs past midnight.
- Multiply or divide a length of time by a number, or divide it by another length of time.
Each duration it returns also comes back as decimal hours, the form a timesheet or an invoice wants.
How do you add and subtract time?
Adding time means adding each column and carrying one unit up the moment a column reaches 60. Take 2:15:30 plus 4:50:15. The seconds come to 45 and stay. The minutes come to 65, which is an hour and 5 minutes, so 5 stays and the hour moves up. The hours then total 7, for 7:05:45.
"Reaches" matters. Some ranked pages word the rule as carrying when a column is "larger than 60", which leaves 45 minutes plus 15 stuck at 0:60. This tool turns every entry into seconds, adds them, and turns the sum back into hours, minutes and seconds, so 45 plus 15 comes out as 1:00:00 every time.
Each row can be an addition or a subtraction, so a week of shifts less an unpaid hour is one sum: 8:30 plus 7:45 minus 1:00 is 15:15, or 15.25 decimal hours. A result below zero shows with a minus sign and keeps the order you typed.
Two readings of one total sit side by side. The headline rolls every 24 hours into a day, so 27 hours reads 1 day 3:00:00. Hours and minutes keep counting instead, 27:00:00, which is how a timesheet totals a week.
The boxes take decimals as well, which doubles as a converter. Type 1.5 in Hours and you get 1:30:00. Type 1.30 and you get 1:18:00, because 0.30 of an hour is 18 minutes, the slip Everhour warns about when someone writes an hour and a half as 1.30.
What time will it be in a few hours?
Adding a duration to a clock time gives the clock time it lands on, plus the day, since anything past midnight belongs to the next one. Start at 9:45 PM, add 3 hours 20 minutes, and you reach 01:05, which is 1:05 AM the next day. Going back works the same way: 2 hours before 1:00 AM is 11:00 PM the previous day, and a long enough duration can move several days at once.
That's the job GigaCalculator builds its page around, and calculator.net, Clockify, LeaveBoard and EasyUnitConverter each carry a version. This tool shows the answer on a 24-hour clock and a 12-hour one, side by side, because the 12-hour form has two traps:
- Midnight is 12 AM, written 00:00 on a 24-hour clock.
- Noon is 12 PM, written 12:00, and every other PM hour adds 12, so 1 PM is 13:00.
One ranked page teaches the shortcut that AM hours are unchanged and PM hours add 12. It holds for every hour but two, and gets both of those wrong: it leaves midnight at 12:00 and turns noon into 24:00.
Which form the time fields show depends on your device, and that isn't always the one people assume. In the locale data the browser carries, English for India uses a 12-hour clock with am and pm, the same as American English, while UK English and German use 24-hour time.
How do I calculate the hours between two times?
The time between two clock times is the end minus the start, borrowing an hour as 60 minutes when the start minutes are larger. A 09:00 start and a 17:30 finish is 8 hours 30 minutes, which payroll reads as 8.5.
When the end time comes before the start, the end belongs to the next day, so the tool adds 24 hours before it subtracts. A shift from 10 PM to 6 AM is 8 hours, and 4:07 PM to 8:13 AM is 16 hours 6 minutes. calculator.net's duration page walks through its method only "within the same day", which leaves out the one case that needs a rule.
Equal start and end times read as no time at all. None of the ranked pages says what they do with them, and no answer can be right every time: from a clock alone, 07:00 to 07:00 could be a zero-length span or a full 24-hour shift. The tool shows zero and says why. A span that runs a day or longer needs dates, and the time duration calculator takes them.
What are decimal hours?
Decimal hours express the minutes and seconds as a fraction of an hour, so 45 minutes is 0.75 of an hour. Pay is then a single multiplication: 78 hours 45 minutes at 18 an hour is 78.75 times 18, or 1,417.50.
| Minutes | Decimal hours |
|---|---|
| 6 | 0.10 |
| 15 | 0.25 |
| 20 | 0.33 |
| 30 | 0.50 |
| 45 | 0.75 |
Seconds go in over 3,600. So 2 hours 45 minutes 45 seconds is 2.7625 hours, which is also 165.75 minutes or 9,945 seconds, and this tool shows all of them at once. A weekly card with breaks and overtime belongs in the hours calculator.
Multiplying and dividing a length of time
3 batches at 1 hour 30 minutes each come to 4 hours 30 minutes, which is the multiply mode: one duration times a number. Divide 4 hours 30 minutes by 3 and you're back to 1 hour 30 minutes each.
Dividing one time by another answers a different question: how many fit. An 8-hour day holds a 23-minute task 20 whole times, with 20 minutes left over, since 480 minutes over 23 is 20.87. CalculatorSoup offers that operation too. Dividing by zero, either kind, has no answer, and the tool says so.
What this calculator does not do
Dates are out of scope. Whole-day arithmetic belongs to the date calculator, and moving a time between places is the time zone converter's job.
It also runs on plain clock times with no time zone, so it assumes every day is 24 hours long. That fails on the nights clocks change, and a shift spanning one needs the zone, which the time duration calculator applies. Read from the time zone database, 8 March 2026 in New York lasted 23 hours and 1 November 2026 lasted 25. A day in India stays at 24.
Frequently asked questions
How do you add and subtract time? Turn every time into seconds, add or subtract, then turn the total back into hours, minutes and seconds, carrying at 60. Adding 2:15:30 and 4:50:15 gives 7:05:45, because the 65 minutes become an hour and 5 minutes. The tool takes up to 20 times, each one added or subtracted.
What time will it be in 3 hours 20 minutes? Add the duration to the start clock time and carry past midnight into the next day. From 9:45 PM, 3 hours 20 minutes later is 1:05 AM the next day. The tool shows the result on 24-hour and 12-hour clocks and names the day it lands on.
How do I calculate hours between two times? Subtract the start time from the end time, borrowing 60 minutes from an hour when the start minutes are larger. From 09:00 to 17:30 is 8 hours 30 minutes, which is 8.5 decimal hours. When the end time comes before the start, it counts as the next day.
How does the calculator handle an overnight shift? An end time before the start is treated as the next day, and 24 hours are added before subtracting, so 10 PM to 6 AM comes out as 8 hours. Equal start and end times read as zero, because a clock alone cannot tell that from a 24-hour shift.
What are decimal hours and why do payroll systems use them? Decimal hours express the minutes as a fraction of an hour by dividing them by 60, so 15 minutes is 0.25 and 45 minutes is 0.75. Payroll uses them because pay becomes one multiplication: 78 hours 45 minutes is 78.75 hours, and at 18 an hour that is 1,417.50.
Is 1 hour 30 minutes the same as 1.30 hours? No. An hour and a half is 1.5 decimal hours, while 1.30 hours is 1 hour 18 minutes, because 0.30 of an hour is 18 minutes. Writing one as the other undercounts by 12 minutes, which on a timesheet is lost pay.
Is 12 AM midnight or noon? 12 AM is midnight, written 00:00 on a 24-hour clock, and 12 PM is noon, written 12:00. The shortcut of adding 12 to every PM hour works from 1 PM to 11 PM but would turn noon into 24:00.
Can I divide one time by another? Yes. Dividing 8 hours by 23 minutes gives 20.87, so a 23-minute task fits 20 whole times in an 8-hour day with 20 minutes left over. Multiplying and dividing by a plain number work too: 1 hour 30 minutes times 3 is 4 hours 30 minutes.
Does this handle time zones or daylight saving? No. It treats every day as 24 hours, so a shift across a clock change comes out an hour off. In New York, 8 March 2026 was 23 hours long and 1 November 2026 was 25. The time duration calculator applies the zone for spans like that.
Sources
- calculator.net, time calculator (two durations, a clock time plus a duration, the expression mode)
- calculator.net, time duration calculator (the same-day method and the PM rule)
- GigaCalculator, time calculator (what time it will be in a set number of hours)
- CalculatorSoup, time calculator (multiple values, divide by a time)
- Omni Calculator, time calculator (up to 20 values)
- Omni Calculator, time duration (overnight clock spans)
- Inch Calculator, hours and minutes calculator (rows marked add or subtract, the carry wording)
- Everhour, hours and minutes (why 1 hour 30 minutes is not 1.30 hours)
- DQYDJ, hours calculator (spans that cross midnight)