Hours Calculator

Work out hours worked between two times, minus breaks.

Hours Calculator tool

min
$
—
Time worked
—
Decimal hours
—
Total minutes
—
Pay

About the Hours Calculator

Checking a payslip or filling in a timesheet starts with the hours actually worked. This hours calculator takes a start time, an end time and unpaid breaks and returns the hours worked in hours and minutes and in decimal hours: 9:00 to 17:30 with a 30-minute break is 8 hours. It handles overnight shifts, such as 22:00 to 06:00, which cross midnight, and multiplies by an hourly rate if you enter one. For a whole week of shifts, use the Time Card Calculator, and to convert minutes into decimal hours for payroll, Hours to Decimal.

The worked time is the end time minus the start time minus the break. If the end time is earlier than the start time, the shift is taken to cross midnight, so 24 hours is added. Decimal hours are the minutes ÷ 60: 7 hours 30 minutes is 7.5 hours and 8 hours 15 minutes is 8.25 hours. Pay is the decimal hours × the hourly rate, before tax and any overtime premium.

Example: 9:00 AM to 5:30 PM with a 30-minute lunch is 8 hours 0 minutes, or 8.00 decimal hours; at 15.00 an hour that is 120.00. A night shift from 10:00 PM to 6:00 AM with a 30-minute break is 7 hours 30 minutes, or 7.50 hours.

For a whole week of shifts with overtime, use the time card calculator or the overtime calculator. To add up several durations use the time calculator, and to convert h:mm to decimal hours the hours to decimal converter.

How to use the Hours Calculator

  1. Enter the start timeWhen the shift or task began.
  2. Enter the end timeIf it is earlier than the start, the shift crosses midnight.
  3. Subtract breaksEnter unpaid break minutes.
  4. Read the hoursSee hours and minutes, decimal hours and pay.

Hours Calculator features

  • Hours between two clock times
  • Overnight shifts handled
  • Unpaid breaks subtracted
  • Decimal hours for timesheets
  • Total minutes
  • Optional pay at an hourly rate
  • 12-hour or 24-hour time entry

Common uses

  • Filling in timesheets
  • Checking payslips
  • Freelance and contractor billing
  • Night and split shifts
  • Tracking study or practice time

Hours worked in practice: freelance billing, breaks, rounding rules and keeping records

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Every timesheet, invoice for hourly work and payslip check starts with the same calculation: the time between starting and finishing, minus breaks. Small errors repeated every day add up to real money over a month. This guide works through a freelancer's billable session, explains how breaks and rounding are usually handled, covers weekly limits and gives practical tips for keeping records that stand up if a dispute arises.

A worked example: a freelance session

A freelance designer works from 1:15 pm to 6:40 pm with a 25-minute break. The time between start and finish is 5 hours 25 minutes, and subtracting the break leaves exactly 5 hours, or 5.00 decimal hours. At a rate of $15 an hour, the session is worth $75. Recording each session this way, rather than estimating at the end of the week, keeps invoices accurate.

Decimal hours

Payroll systems and invoices usually use decimal hours. Fifteen minutes is 0.25 hours, 30 minutes is 0.5 and 45 minutes is 0.75. A common mistake is writing 7 hours 30 minutes as 7.30 hours, which undercounts by 12 minutes, because 7.30 decimal hours is only 7 hours 18 minutes. Converting carefully avoids underpaying or overcharging.

Breaks

Whether breaks are paid depends on the employer, the contract and local law. Lunch breaks are often unpaid, while short rest breaks may be paid. Prayer breaks are commonly accommodated in Pakistani workplaces, with practices varying between employers. Subtracting only unpaid breaks gives the correct paid hours.

Rounding rules

Some employers round clock-in and clock-out times to the nearest five, ten or fifteen minutes. In the United States, rounding to the nearest quarter hour is generally allowed if it is applied neutrally, so it does not systematically favour the employer. Knowing your employer's rule explains small differences between your own record and your payslip.

Weekly limits

Labour laws often limit working hours. Pakistan's factory and shop laws generally set a normal limit of about 48 hours a week, with overtime paid above that. Adding up your weekly hours shows whether you have crossed the threshold where overtime rates should apply.

Keeping good records

  • Write down start and finish times as you go, not from memory at the end of the week.
  • Note breaks and any time spent on tasks outside your normal duties.
  • Keep copies of rosters, messages asking you to stay late and payslips.
  • Compare your totals with each payslip and raise differences promptly.

Clear records make disputes easier to settle and protect both workers and employers.

Billing clients fairly

Freelancers who bill by the hour should agree in advance how time is measured, whether meetings and revisions count and how partial hours are rounded. Sharing a brief log with each invoice, showing dates and hours, builds trust and reduces disagreements, especially with new clients.

Common mistakes

  • Writing minutes as decimals without converting.
  • Forgetting to subtract unpaid breaks.
  • Estimating hours at the end of the week instead of recording daily.
  • Ignoring weekly limits where overtime should apply.

Related tools

For a whole week of shifts, use Time Card Calculator. To add overtime pay, try Overtime Calculator, and to convert times into decimals, Hours to Decimal Converter.

Night and weekend premiums

Some jobs pay higher rates for nights, weekends or public holidays. To calculate pay correctly, split a shift into the hours at each rate. A shift from 6:00 pm to 2:00 am with a night premium from 10:00 pm has four hours at the normal rate and four at the night rate, before any breaks are subtracted.

Part-time and multiple jobs

People with more than one job, or part-time work alongside study, can track each job separately and then add the totals. This shows how many hours are really worked each week, which matters for rest, studying and, in some countries, rules on maximum working time or student work limits.

Working from home

Remote workers often find that the working day stretches without clear start and finish times. Recording when you begin and end, and taking proper breaks, protects personal time and gives managers an accurate picture of workload. A short end-of-day routine, such as closing work apps, helps separate work from home life.

Checking a payslip

To check a payslip, multiply your total hours by your hourly rate, add any overtime and premiums, and compare the result with the gross pay shown. If the figures differ, compare the hours on the payslip with your own record first, since most errors come from missed shifts or breaks recorded differently.

Estimating future work

Records of past hours are the best guide for quoting new work. If similar jobs have taken an average of 12 hours, quoting 8 because you hope to be faster is a common route to unpaid overtime. Reviewing your logs every few months shows how long tasks really take and helps set fair prices.

Privacy

Calculations run in your browser. The times you enter are not sent to a server or stored.

Frequently asked questions

How do I calculate hours worked?

Subtract the start time from the end time and take off unpaid breaks. From 8:30 AM to 5:00 PM is 8 hours 30 minutes; minus a 30-minute lunch, that is 8 hours worked.

How do I calculate hours for an overnight shift?

Add 24 hours to the end time if it is earlier than the start. From 10:00 PM to 6:30 AM is 6:30 + 24:00 − 22:00 = 8 hours 30 minutes. The calculator does this automatically.

How do I convert hours and minutes to decimal?

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes = 7 + 45 ÷ 60 = 7.75 hours. Payroll systems usually want hours in this form.

Are breaks included in hours worked?

Unpaid meal breaks are usually subtracted, while short paid rest breaks of 5 to 20 minutes are often counted as work time. Rules vary by country and employer, so check yours.

How do I calculate pay from hours worked?

Multiply the decimal hours by the hourly rate. 37.5 hours at 18.00 per hour is 675.00 before tax. Overtime hours may be paid at a higher rate.

How many hours is 9 to 5?

Eight hours, or seven hours with a one-hour unpaid lunch. A 9-to-5 job five days a week is 40 hours a week, or 35 after unpaid lunches.

What is 8.5 hours in hours and minutes?

8 hours 30 minutes, because 0.5 of an hour is 30 minutes. Multiply the decimal part by 60 to get minutes: 0.25 hours is 15 minutes and 0.75 hours is 45.

Can I calculate hours for a whole week?

Use the time card calculator, which takes start and end times and breaks for each day and adds up the week, including overtime. This page handles one shift at a time.