Time calculator
Add and subtract hours, or find the time between a start and an end. Everything is calculated in this browser only.
One entry per line. Example: 1:30, 2h 15m, -45m. You can also paste several lines.
TotalEnter a value to see the total.
Use the 24-hour clock, for example 09:00 or 18:30.
Minutes as a number (60), or 1:30 or 1h 30m.
Time workedEnter a start and an end time.
You can add a sign: +8:45 or -2h 30m. Seconds are shown as hours:minutes:seconds when present.
Resulting timeEnter a starting time and an amount.
Estimate for reference only — verify before relying on it.
How it works
- Add up times
- Write one entry per line and a running total follows on the right. Put a minus sign in front to subtract. What you typed is kept when you look at another tab.
- Start to end
- Enter clock-in and clock-out times and a break to get the time actually worked. If the end is earlier than the start, it counts as the next day.
- Add to a time
- Add or subtract an amount of time from a starting time to get the finishing time, and how many days it moved.
Worked examples
- Clock in at 09:00, out at 18:00 with a 60 minute break: 8:00, or 8 hours as a decimal.
- A night shift from 22:00 to 06:30 is 8:30. It is counted as crossing midnight.
- 1:30 + 2:15 + 0:45 is 4:30. Add a line of -0:30 and the total becomes 4:00.
- 09:30 plus 8:45 is 18:15. 22:00 plus 5 hours is 03:00, shown as one day later.
Formulas
- Adding times
- Every entry is turned into seconds, added, then turned back into hours and minutes. One hour is 3600 seconds and one minute is 60 seconds. Hours are the quotient of total / 3600; minutes are (total / 60) modulo 60.
- Start to end
- End minus start, minus the break. If the end equals or precedes the start, 24 hours (86,400 seconds) are added to the end so it falls on the next day.
- Decimal hours
- Seconds / 3600 rounded to two decimals. Example: 8 hours 20 minutes = 30,000 s / 3600 = 8.33 hours.
- Add to a time
- Divide (starting time + amount) by 86,400 seconds: the quotient is the number of days moved, the remainder is the resulting time.
Quick conversion table
| Minutes | H:MM | Decimal hours |
|---|---|---|
| 15 min | 0:15 | 0.25 |
| 20 min | 0:20 | 0.33 |
| 30 min | 0:30 | 0.5 |
| 40 min | 0:40 | 0.67 |
| 45 min | 0:45 | 0.75 |
| 90 min | 1:30 | 1.5 |
Common mistakes
- Reading 1:30 as 1.30 hours. 1:30 is one hour thirty minutes, which is 1.5 hours as a decimal. 1.30 hours is 1 hour 18 minutes.
- Adding minutes in base 100. 0:45 + 0:45 is 1:30, not 0:90. Sixty minutes roll over into an hour.
- Treating a shift that crosses midnight as negative. 22:00 to 06:30 is 8:30, not -15:30.
- Forgetting the break and reporting the whole stay as time worked. Enter the break in minutes in its own field.
- Typing a 12-hour time such as 6 pm. This calculator reads the 24-hour clock only, so type 18:00.
Basis and assumptions
| Item | Value | Type |
|---|---|---|
| One hour, one day | 3600 s, 86,400 s | Sourced (SI documents) |
| Typing 24:00 | End of the day (00:00 as a start) | Sourced (ISO 8601 amendment) |
| Start equal to end | 24 hours | Assumption of this tool |
| Limit for one line | 1000 days (24,000 hours) | Assumption of this tool |
| Decimal rounding | Two decimals, halves round up | Assumption of this tool |
Official references
Frequently asked questions
- Which formats can I type?
- Clock style such as 1:30 or 1:30:15 (minutes and seconds have two digits), and unit style such as 1h 30m, 90m, 1.5h, 45m or 30s. Full-width digits and colons are read too. A comma is a thousands separator when groups have three digits (1,440m = 1440 minutes) and a decimal point otherwise (1,5h = 1.5 hours).
- Can the total go beyond 24 hours?
- Yes. Totals are shown past 24 hours, for example 100:00. Only the start to end calculation uses the 24-hour clock. One line reads up to 1000 days (24,000 hours).
- What if clock-in and clock-out are the same time?
- It counts as 24 hours, not zero, because the same time again is the following day. This rule is an assumption of this tool. 24:00 means midnight; used as a start or starting time it is the same as 00:00.
- Can I type AM or PM?
- Not yet. Please use the 24-hour clock, for example 18:00 for 6 pm.
- Can I use this for payroll or legal working hours?
- It only does time arithmetic. Pay, legal working-hour limits and allowances depend on your contract and the law, so check those separately.