Home › Hours and time › Hours calculator

Hours calculator

Pick a start and an end, with dates, and the calculator counts the hours and minutes in between, takes off any unpaid break and converts the result to decimal hours and pay.

Pick the date as well as the time, so shifts that run past midnight or over several days are counted correctly.

Enter a start and an end to count the hours.

ResultValue

When to use this calculator

Use it whenever you need the length of one stretch of time: a single shift, a job that ran from Friday evening to Sunday, a babysitting evening, an event setup or the time a machine ran. Because you enter a date with each time, it handles shifts that cross midnight and periods longer than a day without any special settings.

For a whole week of shifts with a break each day and overtime, the time card calculator is faster: it has a row for every day and adds the week for you.

How to count hours between two times by hand

  1. Write both times on the 24-hour clock, so 3:45 p.m. becomes 15:45.
  2. If the end is on a later day, add 24 hours to the end time for each day that has passed.
  3. Subtract the start from the end. If the minutes of the end are smaller than the minutes of the start, borrow one hour: 60 minutes.
  4. Take off any unpaid break.
  5. For pay, turn the minutes into a fraction of an hour by dividing by 60.

Example: from 8:45 a.m. to 5:15 p.m. is from 8:45 to 17:15. Borrowing an hour, 17:15 becomes 16:75, and 16:75 minus 8:45 is 8 hours 30 minutes. With a 30-minute unpaid lunch the result is 8:00, or 8.00 decimal hours.

12-hour clock to 24-hour clock

Most AM and PM mistakes happen around noon and midnight. In the US, 12:00 p.m. is noon and 12:00 a.m. is midnight, the start of a new day.

12-hour clock24-hour clock
12:00 a.m. (midnight)0:00
6:00 a.m.6:00
11:30 a.m.11:30
12:00 p.m. (noon)12:00
1:00 p.m.13:00
3:45 p.m.15:45
6:00 p.m.18:00
9:15 p.m.21:15
11:59 p.m.23:59

The calculator's time boxes follow your device settings, so they may show AM and PM or the 24-hour clock; the result is the same either way.

Hours, minutes and decimal hours

The result appears as hours and minutes, as decimal hours and as total minutes. Use hours and minutes to check against a clock or schedule. Use decimal hours to multiply by an hourly rate, because a rate is per whole hour: 7 hours 20 minutes is 7.33 hours, so at $18 an hour it is worth $132, not $131.40, which is what you would get by mistaking 7:20 for 7.20 hours. Total minutes are handy for billing in small increments or for adding several results together.

Overnight shifts and multi-day jobs

A nurse starting at 7 p.m. and finishing at 7:30 a.m. the next morning worked 12 hours 30 minutes. Entering both dates tells the calculator that the end is on the following day. For jobs lasting longer than a day, the result also shows days and hours, for example 2 days 12:00 for a job from Monday 9 a.m. to Wednesday 9 p.m.

The calculator counts real elapsed time between the two moments you enter, using your device's clock settings. On the night clocks change for daylight saving time, a shift that spans the change is counted as the hours that actually passed, which can be one more or one less than the clock faces suggest.

Breaks: what to subtract

Subtract only unpaid meal breaks. Under federal rules, short rest breaks of about 20 minutes or less count as hours worked, while bona fide meal periods, typically 30 minutes or more with the employee completely relieved from duty, generally do not need to be paid. If you were on call or had to keep working while you ate, do not subtract the break.

Worked examples

  • Day shift: March 10, 8:45 a.m. to 5:15 p.m., 30-minute unpaid lunch, $24 an hour: 8:00 hours, 8.00 decimal, $192.
  • Night shift: March 10, 10:00 p.m. to March 11, 6:30 a.m., no break: 8:30 hours, 8.50 decimal.
  • Short day: 9:00 a.m. to 4:20 p.m., no break: 7:20 hours, 7.33 decimal.
  • Long job: Tuesday 9:00 a.m. to Thursday 9:00 p.m.: 60:00 hours, 2 days 12:00.

The examples are invented. Enter the same values to see each result and print it.

Billing clients by the hour

Freelancers and contractors often bill in fixed steps rather than exact minutes. If you bill in tenths of an hour, divide the total minutes by 6 and round up or down according to your contract: 47 minutes is 7.8 tenths, so 0.8 of an hour if you round to the nearest tenth. If you bill in quarter hours, divide the minutes by 15 instead: 47 minutes is a little over three quarters, so 0.75 or 1.00 of an hour depending on your rule. Whatever rule you use, write it in your contract or invoice terms and apply it the same way every time, so a client can check the figure from the start and end times you give them.

Using the result for pay

If you add an hourly rate, the calculator multiplies it by the decimal hours. That gives straight-time pay for this stretch only. Overtime under the Fair Labor Standards Act depends on all hours in the workweek, so for a full week use the time card calculator, which applies time and a half to hours over 40. To see what reaches your bank account after federal income tax, Social Security and Medicare, enter the gross pay in the paycheck calculator.

Questions people ask

How many hours is 9 a.m. to 5 p.m.?

Eight hours. With a 30-minute unpaid lunch it is 7 hours 30 minutes, or 7.5 decimal hours; with a one-hour unpaid lunch it is 7 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25, 30 minutes is 0.50, 45 minutes is 0.75 and 20 minutes is 0.33 when rounded to two places. Add the result to the whole hours: 6 hours 45 minutes is 6.75 hours.

Related

Sources

All sources checked November 20, 2026.

Updated November 20, 2026