Time calculators

Hours Calculator

Updated Aug 3, 2026 By Jehan Wadia
Rate Formulas
Same-Day Hours Calculator
Clock Format
Applies the same rounding rule to break entries.
Handy for one-handed numeric keypad entry.
e.g., type 915 for 9:15 — no colon needed.
e.g., type 1737 for 5:37 — no colon needed.
Break Deduction
Break 1
Same-Day Results
Total Time (hh:mm)
08:30
Decimal Hours
8.50 hours
Total Minutes
510 minutes
Break Time Deducted
30 minutes
Gross Span (before breaks)
09:00
Shift Window Used
8:30 AM – 5:30 PM
Visual Timeline
8:30 AM 5:30 PM
Worked vs. Break Time
Step-by-Step Solution
Hours Between Two Dates
Clock Format
e.g., type 830 for 8:30 — no colon needed.
e.g., type 1730 in 24-hour mode for 17:30.
Date-Range Results
Total Time (hh:mm)
57:00
Decimal Hours
57.00 hours
Total Minutes
3,420 minutes
Days · Hours · Minutes
2 d 9 h 0 m
Hours Per Calendar Day
Step-by-Step Solution

Introduction

This Hours Calculator adds up your time for you. Type a start time and an end time, and it shows how many hours and minutes passed between them. You get the answer three ways: in hh:mm, in decimal hours for payroll, and in total minutes.

Use the first tool for a single day, like a work shift. You can take out lunch and other breaks, either by typing the number of minutes or by entering the break start and end times. It also handles night shifts that cross midnight, so an 11:00 PM to 7:00 AM shift works fine. If your job rounds time, you can round to the nearest 5, 6, or 15 minutes.

Use the second tool to find the hours between two dates and times. This helps with long shifts, travel time, project time, or any gap that lasts more than one day. It shows the total in hours, minutes, and days. For a plain day count instead, try the Date Duration Calculator or the Days Calculator.

Both tools show a step-by-step solution so you can see the math, plus a timeline and chart of your time. You can switch between a 12-hour clock and a 24-hour clock, copy any answer with one click, and print your results for a timesheet. If you punch in with a military clock, the Military Time Calculator is a good companion.

How to use our Hours Calculator

Enter your start time and end time, add any breaks, and the calculator shows your total hours worked in hh:mm, decimal hours, and total minutes, plus a timeline, chart, and step-by-step math.

Same-Day Hours Calculator

Clock Format: Pick 12-hour to use AM/PM, or pick 24-hour to use times like 17:30.

Rounding: Choose how to round your times. You can keep exact times or round to the nearest 5, 6, or 15 minutes.

Round breaks too: Check this box if you want the same rounding rule used on your break times.

Enter key acts as Tab: Check this box to jump to the next field when you press Enter. This helps when you type fast with a keypad.

Start Time: Type the time your shift began. You can skip the colon — type 830 for 8:30. Then pick AM or PM. Tap the stopwatch button to use the current time.

End Time: Type the time your shift ended, then pick AM or PM. If the end time is before the start time, the tool treats it as an overnight shift. To go the other way and find an end time from a start time and a length, use the Add Hours Calculator.

Deduct break time: Turn this switch on to take breaks out of your total. Turn it off to count the full shift.

Number of breaks: Pick 1, 2, or 3 breaks. A block appears for each one.

Entry method: For each break, choose "Length in minutes" if you know how long it was, or "Break start & end time" if you know the clock times.

Break length (minutes): Type how many minutes the break lasted, like 30 for a half-hour lunch. The Minutes Calculator helps if you need to total up several break lengths first.

Break start and end: Type the clock time the break began and the time it ended, with AM or PM. These breaks also show on the timeline.

Calculate, Clear, and Print: Results update as you type. Press Calculate to refresh, Clear to reset the defaults, or Print to save a copy. For a full week of shifts on one page, use the Time Card Calculator.

Hours Between Two Dates

Clock Format: Choose 12-hour with AM/PM, or the 24-hour clock.

Start Date: Pick the day your time began.

Start Time: Type the time of day it began, then pick AM or PM. The stopwatch button fills in today's date and time.

End Date: Pick the day your time ended. It must be the same day or later than the start.

End Time: Type the time of day it ended, then pick AM or PM. You will get the total in hh:mm, decimal hours, minutes, and days plus hours plus minutes.

What This Hours Calculator Does

An hours calculator finds how much time passed between a start time and an end time. It is the fastest way to add up a work shift, a study session, or any block of time. You get the answer three ways: in hours and minutes (like 08:30), in decimal hours (like 8.50), and in total minutes (like 510). For a bare start-to-finish gap with no breaks, the Time Duration Calculator and the Time Difference Calculator do the same job in fewer steps.

How Time Math Works

Clock time is base 60, not base 10. That is why subtracting 8:30 from 5:30 PM is tricky in your head. The simple trick is to turn each clock time into minutes after midnight, subtract, then change the answer back into hours.

  • 8:30 AM = (8 × 60) + 30 = 510 minutes
  • 5:30 PM = (17 × 60) + 30 = 1,050 minutes
  • 1,050 − 510 = 540 minutes = 9 hours

If you would rather add or take away a set amount of time instead of comparing two clock readings, see the Add Time Calculator and the Subtract Time Calculator. The Hours and Minutes Calculator handles longer chains of hh:mm addition.

Decimal Hours vs. Hours and Minutes

Payroll systems almost always use decimal hours, because you can multiply them straight by a pay rate. To get decimal hours, divide the minutes by 60. So 30 minutes is 0.50 hours, not 0.30 hours. Here are common ones:

MinutesDecimal Hours
10 min0.17
15 min0.25
20 min0.33
30 min0.50
45 min0.75

The Time to Decimal Calculator converts any hh:mm value on its own. Once you have decimal hours, run them through the Hourly Paycheck Calculator or the Wage Calculator to see your pay, or use the Hourly to Salary Calculator to see the yearly figure.

Breaks and Unpaid Lunch

Most jobs do not pay for meal breaks. Your gross span is clock-in to clock-out. Your net hours are the gross span minus the breaks. A 9:00 span with a 30 minute lunch gives 8.5 paid hours. You can enter a break as a number of minutes, or as a start and end time if you clocked out and back in. The Work Hours Calculator and the Shift Calculator cover the same ground with a shift-planning slant.

Overnight Shifts

If the end time is earlier on the clock than the start time, the shift crossed midnight. In that case you add 24 hours (1,440 minutes) before subtracting. A shift from 10:00 PM to 6:00 AM is 8 hours, not a negative number. Night and weekend hours often earn extra, so check the Overtime Calculator once your weekly total passes 40.

Rounding Rules

Many employers round punches so timecards look clean. Common rules are the nearest 15 minutes (the quarter hour), the nearest 6 minutes (a tenth of an hour), and the nearest 5 minutes. Rounding must go both up and down, so it stays fair over time. A 7:57 AM punch rounds to 8:00 AM under the quarter hour rule. The Rounding Calculator shows the general rule if you want to check an odd case by hand.

Hours Between Two Dates

When a job or event runs past one day, you count whole days first and then the leftover time. Each full day is 1,440 minutes. So from Monday 8:30 AM to Wednesday 5:30 PM is 2 days (2,880 minutes) plus 9 hours, which is 57 hours in all. If you only need working days in that stretch, the Business Days Calculator skips weekends for you, and the Weeks Calculator turns long gaps into weeks. Crossing time zones? Line up the clocks first with the Time Zone Calculator.

Where People Use It

Timesheets and payroll, freelance and client billing, overtime checks, shift planning, volunteer hour logs, study and practice hours, and tracking how long a task or trip really took. Related tools worth a look: the PTO Calculator and Annual Leave Calculator for time off, the Salary to Hourly Calculator for rate checks, the Age Calculator for long spans, and the Deadline Calculator for project due dates.


Formulas used

Clock time converted to minutes after midnight
T = h \times 60 + m
Rounding a time to the nearest step of minutes
T_{\text{rounded}} = \operatorname{round}\!\left(\frac{T}{\text{step}}\right) \times \text{step}
Gross elapsed span (adds 1440 min if the shift crosses midnight)
\text{Elapsed} = T_{\text{end}} - T_{\text{start}} + \begin{cases} 1440 & T_{\text{end}} < T_{\text{start}} \\ 0 & \text{otherwise} \end{cases}
Total break minutes to deduct
\text{Break}_{\text{total}} = \sum_{i=1}^{n} \text{Break}_i, \qquad \text{Break}_i = T_{\text{end},i} - T_{\text{start},i}
Net worked minutes
\text{Net} = \max\!\left(0,\; \text{Elapsed} - \text{Break}_{\text{total}}\right)
Minutes converted to decimal hours and to hh:mm
H_{\text{dec}} = \frac{\text{Net}}{60}, \qquad \text{hh{:}mm} = \left\lfloor \frac{\text{Net}}{60} \right\rfloor : \left(\text{Net} \bmod 60\right)
Total minutes between two dates and times
\text{Total} = \Delta d \times 1440 + \left(T_{\text{end}} - T_{\text{start}}\right)
Total split into days, hours and minutes
D = \left\lfloor \frac{\text{Total}}{1440} \right\rfloor,\quad h = \left\lfloor \frac{\text{Total} - 1440D}{60} \right\rfloor,\quad m = \text{Total} - 1440D - 60h

Frequently asked questions

Why does my total show 8.50 hours instead of 8.30?

Because time is counted in 60ths, not 100ths. Half an hour is 30 minutes, and 30 ÷ 60 = 0.50. So 8 hours 30 minutes is 8.50 decimal hours. Reading it as 8.30 would short you 12 minutes of pay.

Do I have to type the colon in the time boxes?

No. Just type the digits. For example:

  • Type 830 for 8:30
  • Type 9 for 9:00
  • Type 1745 for 5:45 PM in 24-hour mode

The tool adds the colon for you.

Can I type a or p instead of picking AM or PM?

Yes. If you type 5:30p, the tool sets the PM box for you. Typing an a sets it to AM. The dropdown updates so you can see what was used.

What is the difference between gross span and total time?

Gross span is clock-in to clock-out, before any breaks come out. Total time is your paid time after breaks are taken out. A 9:00 span with a 30 minute lunch gives a total of 8:30.

Why does the calculator say my shift is overnight?

Your end time is earlier on the clock than your start time. When that happens, the tool assumes you worked past midnight and adds 24 hours. A 10:00 PM to 6:00 AM shift comes out as 8 hours, not a minus number. A yellow note tells you when this happens.

Can I enter a shift longer than 24 hours in the first tool?

No. The same-day tool tops out at just under 24 hours because it only uses clock times. For anything longer, use the Hours Between Two Dates tool below it and pick real dates.

What happens if my breaks are longer than my shift?

The tool shows 00:00 and warns you. That usually means a break was typed in wrong, like 300 minutes instead of 30, or a PM break was marked AM. Check each break block and fix it.

Should I use minutes or clock times for a break?

Use minutes when you just know it was a 30 minute lunch. Use break start and end time when you clocked out and back in. Clock times also draw an orange block on the timeline so you can see where the break fell.

What does the Round breaks too box do?

It uses the same rounding rule on your break entries. With 15 minute rounding, a 20 minute break becomes 15 minutes. Leave the box unchecked if your employer rounds punches but keeps break lengths exact.

Which rounding option should I pick?

Match your employer's rule:

  • 15 minutes — the quarter hour, the most common
  • 6 minutes — tenths of an hour, used by law firms and billing
  • 5 minutes — used by some factories and stores
  • Do not round — exact times to the minute

Does rounding always go up?

No. It goes to the nearest mark, up or down. With 15 minute rounding, 8:07 goes back to 8:00 and 8:08 goes up to 8:15. That is what keeps the rule fair over many shifts.

Why does my rounded total differ from my exact total?

Rounding moves your start and end times before the math runs. Two small shifts can add up to a 15 or 30 minute change in the total. The notice above the results shows both the exact and rounded times so you can compare them.

Can I add up a whole week of shifts here?

Not in one go. This tool handles one shift at a time. Do each day, write down the decimal hours, then add them. For a full week on one page, use the Time Card Calculator.

How do I turn my hours into pay?

Copy the decimal hours and multiply by your rate. For 8.50 hours at $18 an hour, that is $153. The Hourly Paycheck Calculator does it with taxes taken out.

What does the Days · Hours · Minutes card mean?

It breaks a long span into full days plus what is left over. 2 d 9 h 0 m means two whole 24-hour days plus nine more hours. The same span shown as hh:mm is 57:00.

Why is the per-day bar chart missing?

The chart hides when your range is longer than 45 days, because the bars get too thin to read. The totals and the step-by-step math still show.

Does the date tool skip weekends or holidays?

No. It counts every hour that passes, weekends included. For work days only, use the Business Days Calculator.

Can I take breaks out in the two-date tool?

No. That tool gives the plain elapsed time. If you need breaks out of a multi-day span, work out the total, then subtract the break minutes yourself, or run each day through the same-day tool.

What if my end date is before my start date?

The tool stops and asks you to swap them. It will not show a negative total. Check that you did not mix up the two date boxes.

Do the results change if I switch between 12-hour and 24-hour clocks?

No. Your times get converted, not changed. 5:30 PM becomes 17:30 and the total stays the same. Only the way times are shown changes.

How does the Enter key acts as Tab option help?

With it on, pressing Enter moves you to the next field instead of recalculating. That lets you type a whole timesheet with one hand on a number pad. Results still update on their own as you type.

How do I save or share my results?

Click the copy button next to any answer to put it on your clipboard, or click Print for a clean page with the buttons hidden. The printout keeps your times, totals, and the step-by-step math.

What does the orange block on the timeline show?

Each orange block is a break with clock times, marked B1, B2, or B3. The dark blue bar is time that counts as work. Breaks entered as minutes only have no set place on the clock, so they are listed below the bar instead.

Is 12:00 AM midnight or noon?

12:00 AM is midnight, the start of the day. 12:00 PM is noon. In 24-hour mode, midnight is 00:00 and noon is 12:00. Mixing these up is the most common time entry mistake.

Why is my total minutes number different from my hh:mm number?

They are the same amount shown two ways. 510 minutes is 8 hours and 30 minutes, because 510 ÷ 60 = 8 with 30 left over. Payroll often wants the minutes or the decimal, while timesheets want hh:mm.