Aviy
CalculatorsGross Pay CalculatorNet Pay CalculatorPayroll FormulaEmployee Payroll CalculationPayroll Deductions Calculator

Payroll Calculator: How to Calculate Payroll

Payroll Calculator: How to Calculate Payroll - Aviy AI invoicing
19 min read

To calculate payroll, start with gross pay (hours worked times pay rate, or annual salary divided by pay periods), subtract pre-tax deductions, then subtract income tax withholding and statutory deductions to get net pay. Employers add their own payroll taxes and contributions on top to find the true cost per employee.

A payroll calculator turns a pay rate and a pile of tax rules into two numbers everyone cares about: what the employee takes home, and what the business actually pays out. Get it wrong and you either short-change your team or underbudget for one of your largest recurring costs. This guide walks through the exact formula, what every input means, and several worked examples so you can run the numbers with confidence.

Payroll feels intimidating because the rules differ by country, state, and tax year, but the underlying maths is consistent everywhere. Once you understand the gross-to-net flow, you can apply it to any worker in any jurisdiction by swapping in the local rates.

What a payroll calculator does

A payroll calculator answers two related questions at once. First, how much does the employee receive after deductions - their net pay or take-home pay. Second, how much does the business spend in total - the gross wage plus the employer's own taxes and contributions.

Those are not the same number. An employee earning a gross salary of $40,000 might take home roughly $31,000, while the employer spends closer to $45,000 once contributions are added. The gap is taxes and statutory deductions, and a payroll calculator makes it visible. For a solo founder hiring their first team member, this matters enormously: the headline salary you offer is rarely what lands in the employee's account, and it is never what leaves yours.

Why payroll calculation matters

Payroll is one of the few financial obligations with almost no margin for error, and three forces make accuracy non-negotiable.

  • People. Pay is personal. An underpaid employee loses trust quickly, and an overpaid one creates an awkward clawback later. Consistent, correct pay is the foundation of a working relationship.
  • Compliance. Tax authorities expect the right amounts withheld, remitted, and reported on time. Late or incorrect filings can attract penalties, and the responsibility sits with the employer.
  • Cash flow. Wages and the taxes attached to them leave your account on fixed dates. If you do not know the figure in advance, payroll day turns into a scramble.

Understanding the calculation puts you in control of all three: you can quote honest salaries, set aside the right tax money, and forecast the cash you will need.

The payroll formula explained

Payroll runs in two stages: build the gross, then subtract everything to reach the net.

Stage 1 - Gross pay

For an hourly worker:

For a salaried worker:

Stage 2 - Net pay

And from the employer's side:

That third formula is the one most owners forget, and it is the one that determines whether a hire is affordable.

What each input means

Each term represents a real line on a pay stub.

  • Gross pay - total earnings before any money is removed. For hourly staff it includes overtime; for salaried staff it is the period slice of the annual figure.
  • Pre-tax deductions - amounts removed before income tax, such as pension contributions, salary-sacrifice schemes, or certain health plans. These reduce taxable income.
  • Income tax / withholding - the portion sent to the tax authority on the employee's behalf (PAYE in the UK, federal and state withholding in the US).
  • Statutory deductions - mandatory contributions such as National Insurance (UK) or Social Security and Medicare (US FICA).
  • Post-tax deductions - items taken after tax, such as union dues, garnishments, or certain insurance premiums.
  • Net pay - what actually reaches the employee's bank account.
  • Employer payroll taxes - what the business owes on top of wages, like employer National Insurance or the employer half of FICA.
  • Employer contributions - pension matching, benefits, and insurance the business pays for.

Gross pay versus net pay

The most important idea in payroll is the difference between gross pay and net pay, because it is where most confusion - and most pay disputes - begin.

Gross pay is the top line: the full amount an employee earns for a pay period before anything is taken out. It is the figure you agree on in an offer letter. For salaried staff it is the annual salary sliced into pay periods; for hourly staff it is hours worked times the rate, plus overtime.

Net pay is the bottom line: the amount that arrives in the bank after every deduction. Also called take-home pay, it is the figure the employee lives on.

Between the two sits a stack of deductions applied in a specific order. Pre-tax deductions come first, because they lower the income that tax is calculated on. Income tax and statutory deductions come next, on the reduced figure. Post-tax deductions come last. Get the order wrong and net pay will be off - usually enough to cause a complaint.

In short: gross is what the employee earns, net is what the employee receives, and the employer's total cost is a third, larger number that includes taxes the employee never sees.

Worked example 1: an hourly employee

Meet Dani, a part-time barista at a small coffee shop in the US. She is paid weekly. This week she worked 38 regular hours plus 5 overtime hours. Her rate is $18/hour, and overtime is paid at 1.5×.

Step 1 - Regular pay: 38 × $18 = $684

Step 2 - Overtime pay: 5 × ($18 × 1.5) = 5 × $27 = $135

Step 3 - Gross pay: $684 + $135 = $819

Step 4 - Pre-tax deductions: Dani contributes $40 to a retirement plan. Taxable pay = $819 − $40 = $779.

Step 5 - Withholding and statutory deductions: Suppose federal and state withholding is $94, and FICA (Social Security + Medicare, roughly 7.65% of gross) is about $63. Total = $157.

Step 6 - Net pay: $779 − $157 = $622

So Dani's gross is $819, but she takes home about $622 - the $197 difference is the combined tax and statutory wedge. (Rates vary by country and year; these figures are illustrative - always confirm with the official tax authority.)

Worked example 2: a salaried employee

Now meet Priya, a marketing coordinator at a UK agency on a $36,000 annual salary, paid monthly (12 periods).

Step 1 - Gross monthly pay: $36,000 ÷ 12 = $3,000

Step 2 - Pre-tax deductions: Priya pays 5% into a workplace pension via salary sacrifice: 5% × $3,000 = $150. Taxable pay = $2,850.

Step 3 - Income tax (PAYE): Using an illustrative effective rate for her band, suppose PAYE this month is around $390.

Step 4 - National Insurance: Suppose employee NI is around $190.

Step 5 - Net pay: $2,850 − $390 − $190 = $2,270

Priya's gross slice is $3,000, her take-home is about $2,270, and $150 went into her pension before tax was even calculated. This is why two people on the same headline salary can take home different amounts: pension choices, tax codes, and benefits all shift the result. The tax and NI figures here are illustrative - check current rates with the official tax authority.

Worked example 3: the true cost to the employer

Headline salary is only part of the story. Here is what Priya costs her agency each month.

Cost componentMonthly amount
Gross salary$3,000
Employer National Insurance (illustrative)$330
Employer pension contribution (3%)$90
Total employer cost$3,420

So while Priya takes home $2,270, the business spends roughly $3,420 - about 14% more than the gross salary, and around 51% more than her net pay. Annualised, that $36,000 salary is closer to $41,000 in real cost. Dani's US employer likewise pays the matching 7.65% FICA plus unemployment taxes on top of her wage. The lesson is universal: budget for the loaded cost, not the offer letter.

Handling hourly, salaried, and overtime pay

The gross-pay step looks different depending on how someone is paid.

Hourly workers

Hourly staff are paid for time recorded, so gross pay depends entirely on the timesheet. Capturing hours cleanly - clock-ins, adjustments, break rules - is half the battle. Multiply approved regular hours by the rate, then handle overtime separately.

Salaried workers

Salaried staff earn a fixed annual figure divided by the number of pay periods. The trap is the period count: monthly has 12 periods, semi-monthly 24, biweekly 26, and weekly 52. Divide by the wrong number and every paycheck is wrong. Biweekly is especially error-prone, because two months a year contain a third pay date.

Overtime

Overtime is where mistakes cluster. A few rules keep it clean:

  • Apply the overtime multiplier (commonly 1.5×, sometimes 2×) only to the hours that actually qualify, not the entire timesheet.
  • Confirm what your jurisdiction counts as overtime - often hours beyond a daily or weekly threshold, with rules differing by location and contract.
  • Calculate overtime on the correct base rate, which may include certain bonuses or shift premiums depending on local law.
  • Many salaried roles are exempt from overtime while many hourly roles are not. Classify each worker correctly before you run a single number.

How to interpret your payroll numbers

Once you have the numbers, a few ratios tell you whether payroll is healthy. The net-to-gross ratio (net divided by gross) lands between roughly 65% and 80% for most employees; a low ratio usually means high pre-tax contributions or a high tax band, not an error. The loaded cost multiplier (employer cost divided by gross pay) commonly runs 1.10 to 1.30, and anything far outside that range deserves a second look. Payroll as a share of revenue depends on your industry and model.

There is no single perfect number. A "good" payroll result is accurate, on time, and budgeted for. The danger is not a high cost but a cost you did not see coming.

When and why to use a payroll calculator

You do not need full payroll software to benefit from the calculation. Reach for a payroll calculator whenever you are:

  • Considering a hire - to see the loaded cost before you commit, not after.
  • Setting a salary offer - to understand what take-home the candidate will see and negotiate honestly.
  • Budgeting and forecasting - payroll is usually a service business's single largest cost line.
  • Checking a payslip - to verify your provider's numbers rather than trusting them blindly.
  • Comparing employee vs contractor - a contractor's invoice has no employer payroll taxes, which changes the comparison.

Knowing the calculation makes you a better negotiator and budgeter: you stop thinking in headline salaries and start thinking in total cost of employment.

Tools and software that automate payroll

A calculator is perfect for modeling and checking, but once you are paying real people on a schedule, most businesses move to software that handles the maths, filing, and records together. It breaks into a few categories.

  • Dedicated payroll platforms apply current tax tables automatically, generate compliant payslips, file and remit taxes on schedule, and keep year-end records. Their core value is staying current with changing rates so you do not have to.
  • Accounting suites with payroll built in combine bookkeeping and payroll, so wages flow straight into your ledger as a posted expense, removing double entry.
  • Employer-of-record and contractor platforms handle people in jurisdictions where you have no legal entity, or pay international contractors, taking on much of the compliance burden for a fee.
  • Spreadsheets and standalone calculators remain useful for one or two simple salaries and what-if modeling, but they do not file taxes or update rates on their own.

When choosing a tool, the questions that matter most are whether it covers your jurisdiction and keeps rates current, whether it files and remits taxes or only calculates, whether it produces compliant payslips, and whether it connects to the rest of your finances.

Manual versus software payroll

The choice between calculating by hand and paying for software comes down to headcount, complexity, and how much compliance work you want to own.

FactorManual calculationPayroll software
Best suited toOne or two simple salariesSeveral employees, or any complexity
Tax rate updatesYou track and apply them yourselfApplied automatically each tax year
Tax filing and remittanceYou handle it manuallyOften filed and remitted for you
Time per pay runMinutes for one, hours for manyLargely automated regardless of size
Error riskRises sharply with headcountLow, with built-in validation
CostFree, beyond your timeA recurring subscription
Payslips and recordsProduced by handGenerated and stored automatically
Visibility into the mathsTotal - you see every stepSome detail hidden behind automation
ScalabilityPoor past a handful of peopleStrong

Manual calculation wins on cost and transparency at the smallest scale; software wins on accuracy, compliance, and time the moment you have more than a couple of employees. Many owners run the manual calculation to understand and check their numbers, then let software handle the actual runs.

Pros and cons of calculating payroll yourself

Doing the maths by hand has real upsides and limits.

Pros

  • Full visibility - you understand exactly where every pound or dollar goes.
  • No software cost for a tiny team with one or two simple salaries.
  • Faster offers and budgets - you can model a hire in minutes.
  • Better decisions - compare scenarios (raise vs bonus, employee vs contractor) instantly.

Cons

  • Error-prone at scale - manual calculation breaks down past a handful of employees.
  • Compliance risk - tax rules, thresholds, and filing deadlines change and are easy to miss.
  • No automatic filing - you still have to remit taxes and produce compliant payslips.
  • Time cost - what takes minutes for one person takes hours for ten.

Common payroll calculation mistakes

These errors show up again and again, especially for first-time employers.

  • Confusing gross and net. Quoting net pay as if it were the salary, or budgeting only the gross while forgetting employer costs.
  • Forgetting employer taxes. The single most common budgeting miss. The true cost is always higher than the salary.
  • Using last year's rates. Tax thresholds and contribution rates change annually. A calculation correct in one tax year can be wrong in the next.
  • Mishandling overtime. Applying the regular rate to overtime hours, or miscounting which hours qualify.
  • Calculating tax before pre-tax deductions. Pre-tax items must be removed first, or net pay comes out too low.
  • Ignoring pay frequency. Dividing an annual salary by 12 when staff are paid biweekly (26 periods) gives the wrong figure.
  • Misclassifying workers. Treating an employee as a contractor, or an overtime-eligible role as exempt, distorts both deductions and legal obligations.
  • Rounding too early. Round only at the final step; rounding intermediate numbers compounds error.

Best practices for accurate payroll

Follow these steps every pay run and your numbers will hold up.

  1. Confirm current rates first. Before each tax year, pull the latest income tax and statutory rates from your official tax authority.
  2. Calculate gross before anything else. Lock in regular pay plus correctly rated overtime before touching deductions.
  3. Apply deductions in the right order. Pre-tax, then income tax, then statutory, then post-tax.
  4. Compute the employer side separately. Always produce the loaded cost figure, not just net pay.
  5. Keep a written record. Save a payslip and breakdown for every employee, every period - most jurisdictions legally require it.
  6. Reconcile against the bank and the tax authority. Net pay paid, tax remitted, and your calculation should all agree.
  7. Pay on a fixed schedule. Consistency reduces errors and keeps your team's trust.

How payroll connects to running your business

Payroll is not an isolated admin task - it sits at the center of your finances. It drives your cash-flow forecast, because wages and taxes leave your account on predictable dates whether or not clients have paid. It shapes your pricing, because if you do not recover the loaded cost of staff in your rates, every project erodes your margin. And it feeds your bookkeeping as one of the largest recurring entries in your ledger.

This is also why clean financial records matter. Accurate payroll depends on accurate inputs - hours worked, agreed rates, pre-tax elections - and produces records you are legally required to keep. When your books are tidy, reconciling net pay, tax, and bank transfers takes minutes; when they are messy, every pay run becomes detective work.

The revenue side matters just as much. If your invoices go out late or clients pay slowly, payroll day becomes a cash-flow crisis. A tight invoicing process keeps money coming in fast enough to cover the wages going out. Aviy helps on that side: create a professional invoice from a single plain-language sentence, send it instantly, take online payments, and see the analytics that tell you whether incoming cash will cover your next payroll run.

Think of it as a loop: accurate payroll tells you how much cash you need, fast invoicing makes sure it arrives in time, and clear analytics let you forecast both sides.

Summary

A payroll calculator does two jobs: it works out what your employee takes home, and what your business actually spends. Build gross pay first - hours times rate, or salary divided by pay periods - then subtract pre-tax deductions, income tax, statutory deductions, and post-tax items to reach net pay. Separately, add employer taxes and contributions to find the true loaded cost.

The maths is the same everywhere; only the rates change, so always confirm current figures with your official tax authority. Choose between manual calculation and software based on headcount, avoid the classic traps - forgetting employer costs, stale rates, mishandled overtime, misclassified workers - and reconcile every run against the bank and the tax office. Do that, and payroll becomes a number you control rather than a surprise you absorb.

Frequently asked questions

What is the basic formula for calculating payroll?

Payroll runs in two stages. First, calculate gross pay - for hourly staff it is regular hours times rate plus overtime, and for salaried staff it is annual salary divided by the number of pay periods. Second, subtract pre-tax deductions, income tax, statutory deductions, and post-tax deductions to reach net pay. Employers then add their own payroll taxes and contributions to find the total cost.

What is the difference between gross pay and net pay?

Gross pay is total earnings before anything is removed. Net pay, also called take-home pay, is what reaches the employee's bank account after pre-tax deductions, income tax, and statutory contributions are subtracted. The gap between them is the combined tax and deduction wedge, which typically leaves net pay somewhere between 65% and 80% of gross, depending on tax band and contributions.

How much does an employee actually cost the employer?

More than their salary. On top of gross pay, the employer owes payroll taxes (such as employer National Insurance or the employer share of FICA) plus any pension or benefit contributions. A common rule of thumb is that the true loaded cost runs 10% to 30% above the gross salary, so always budget the loaded figure rather than the offer-letter number.

How do I calculate payroll for an hourly worker?

Multiply regular hours by the hourly rate, then add overtime hours multiplied by the overtime rate (often 1.5 times regular). That is gross pay. Then subtract pre-tax deductions, estimated tax withholding, and statutory deductions to get net pay. Count overtime hours carefully and apply the higher rate only to qualifying hours, not the whole timesheet.

How often should I run payroll?

Common frequencies are weekly, biweekly, semi-monthly, and monthly. The right choice depends on local norms, cash flow, and what your team expects. Whatever you pick, keep it fixed and consistent. Remember to divide annual salaries by the correct number of periods - 12 for monthly, 26 for biweekly - or your per-period figures will be wrong.

Can I calculate payroll manually for a small business?

Yes, for one or two employees with straightforward pay, manual calculation is reasonable and gives you full visibility. Beyond a handful of people, manual payroll becomes error-prone and time-consuming, and you still have to file taxes and produce compliant payslips. At that point, dedicated payroll software usually pays for itself in accuracy and saved time.

Why is net pay lower than the salary I offered?

Because the offered salary is gross. Pre-tax deductions like pension contributions come out first, then income tax, then statutory deductions such as National Insurance or FICA. Together these reduce the figure that lands in the bank. Being upfront about gross-versus-net during hiring prevents confusion and builds trust with candidates.

Do payroll tax rates change every year?

Yes. Income tax thresholds, statutory contribution rates, and allowances are reviewed and frequently adjusted each tax year, and they vary by country and region. A calculation that was correct last year may be wrong this year. Always pull the current rates from your official tax authority before running real payroll.

What deductions come out of an employee's paycheck?

Typically pre-tax deductions (pension or retirement contributions, salary sacrifice), income tax withholding, statutory deductions (National Insurance, or Social Security and Medicare), and post-tax deductions (union dues, garnishments, certain insurance premiums). The order matters: pre-tax items are removed before income tax is calculated, which lowers taxable income.

How is calculating contractor pay different from payroll?

A contractor invoices you for an agreed amount, and you usually pay that amount in full with no employer payroll taxes or statutory contributions on top. The contractor handles their own taxes. That makes a contractor's headline cost simpler, but the comparison is not apples to apples - factor in benefits, control, and compliance, not just the raw number.

Conclusion

A payroll calculator is one of the most useful tools a small business owner can master, because payroll is almost always your largest and most predictable cost. By building gross pay first, applying deductions in the correct order to reach net pay, and then adding the employer's own taxes and contributions, you see the full picture: what your team takes home and what your business truly spends.

The formula is universal, but the rates are not, so always confirm current figures with your official tax authority and refresh them each tax year. Treat payroll as part of your wider financial loop - tied to cash flow, pricing, and bookkeeping - and it shifts from a source of stress to a number you confidently control.

Sources and further reading