How to Make a Pay Stub in Excel (or Google Sheets) With Formulas

Short answer

The columns, formulas and year-to-date setup for a pay stub in Excel or Google Sheets, with a filled example you can copy and the steps to export it as a PDF.

Rather not maintain formulas? Put the same figures into the pay stub generator and get a clean PDF pay stub with YTD totals.

pay stub generator
Illustration for “How to Make a Pay Stub in Excel (or Google Sheets) With Formulas”: an abstract sheet of paper with a list symbol

To make a pay stub in Excel or Google Sheets, build one sheet with four blocks: employer and employee details, an earnings table (hours × rate, plus overtime), a deductions table, and a summary of gross pay, total deductions and net pay. Type the figures from your own payroll records into clearly marked input cells, and let formulas work out the totals and the year-to-date (YTD) columns. Then set a print area and export the sheet as a PDF. Below are the exact columns, the formulas, a filled example and the PDF steps.

Rather not maintain formulas? Put the same figures into the [pay stub generator](/us/pay-stub-generator) and get a clean PDF pay stub with YTD totals.

What columns does an Excel pay stub need?

Start with a header block at the top of the sheet:

  • Employer name and address
  • Employee name and the last four digits of their ID or SSN (never the full number)
  • Pay period start and end dates
  • Pay date
  • Pay frequency (weekly, biweekly, semimonthly or monthly)

Under it, add the earnings table:

| Description | Hours | Rate | Current | YTD | |---|---|---|---|---| | Regular | | | | | | Overtime | | | | | | Gross pay | | | | |

Then the deductions table:

| Description | Current | YTD | |---|---|---| | Federal income tax | | | | Social Security | | | | Medicare | | | | State income tax | | | | Other deductions | | | | Total deductions | | |

Finish with a summary line: Net pay, current and YTD.

One habit saves a lot of errors: shade every input cell (hours, rate, deduction amounts) in one color and leave formula cells white. Anyone using the sheet then knows which cells to type in and which to leave alone. For what each deduction line means, see our guide to pay stub deductions.

pay stub deductions

Which formulas calculate gross pay, overtime and net pay?

Keep your inputs in fixed cells so the formulas always point to the same place. A simple layout:

| Cell | Holds | |---|---| | B4 | Hourly rate | | B5 | Regular hours | | B6 | Overtime hours | | B7 | Overtime multiplier (for example 1.5) |

Now the formulas in the Current column:

  • Regular pay (D10): `=ROUND(B4*B5,2)`
  • Overtime pay (D11): `=ROUND(B4*B7*B6,2)`
  • Gross pay (D12): `=SUM(D10:D11)`

For a salaried employee, replace the hours rows with one line: `=ROUND(B4/B8,2)`, where B4 holds the annual salary and B8 the number of pay periods in the year (52 weekly, 26 biweekly, 24 semimonthly, 12 monthly).

For the deductions, you have two choices:

  1. Type the amount your payroll records show (best for federal income tax, which depends on the employee's W-4).
  2. Use a rate cell for deductions that are a straight percentage: put the rate in C16 and use `=ROUND($D$12*C16,2)` in D16.

Then:

  • Total deductions (D21): `=SUM(D16:D20)`
  • Net pay (D22): `=D12-D21`

Wrap money formulas in `ROUND(...,2)` so cents add up exactly; without it, hidden decimals make totals look a cent off.

Overtime rules depend on the employee and the state, so check which hours qualify before you fill in B6. Our overtime calculator shows the overtime pay for a given rate and hours.

Every formula above works unchanged in Google Sheets.

overtime calculator

How do you carry year-to-date totals from one stub to the next?

YTD columns are where spreadsheet pay stubs most often go wrong. There are two reliable ways to set them up.

Option 1: one tab per pay period. Duplicate last period's tab for each new stub. In the YTD column, add the previous tab's YTD to this period's current amount:

`='Period 22'!E10+D10`

After duplicating, update the tab name in every YTD formula. Forgetting to do this is the most common YTD error: the new stub keeps adding to an old period.

Option 2: a register tab. Keep one row per pay date on a tab called Register (pay date in column A, gross pay in column F, and so on). The stub then sums every row from 1 January up to its own pay date in B3:

`=SUMIFS(Register!F:F,Register!A:A,"<="&$B$3,Register!A:A,">="&DATE(YEAR($B$3),1,1))`

This resets on its own each January and does not break when you copy the stub. It is the better choice if you pay more than one person. Our guide to YTD on a pay stub explains what the YTD figures should include.

YTD on a pay stub

What does a filled Excel pay stub look like?

Here is a filled example for a fictional employee. The deduction amounts are illustrative figures typed in from payroll records, not rates to copy.

Maple Street Bakery LLC · Employee: Sam Rivera (ID ending 4821) Pay period: Nov 2 – Nov 15, 2026 · Pay date: Nov 20, 2026 · Biweekly

| Earnings | Hours | Rate | Current | YTD | |---|---|---|---|---| | Regular | 80.00 | 22.00 | 1,760.00 | 40,480.00 | | Overtime | 4.00 | 33.00 | 132.00 | 1,584.00 | | Gross pay | | | 1,892.00 | 42,064.00 |

| Deductions | Current | YTD | |---|---|---| | Federal income tax | 142.00 | 3,251.00 | | Social Security | 117.30 | 2,607.97 | | Medicare | 27.43 | 609.93 | | State income tax | 58.00 | 1,329.00 | | Health insurance | 40.00 | 920.00 | | Total deductions | 384.73 | 8,717.90 |

| | Current | YTD | |---|---|---| | Net pay | 1,507.27 | 33,346.10 |

Check the arithmetic the formulas do: 80 × 22.00 = 1,760.00; 4 × 22.00 × 1.5 = 132.00; 1,892.00 − 384.73 = 1,507.27; and YTD net is 42,064.00 − 8,717.90 = 33,346.10.

How do you turn the sheet into a PDF pay stub?

In Excel:

  1. Select the stub area and choose Page Layout > Print Area > Set Print Area.
  2. In Page Setup, set scaling to fit one page wide and turn off gridlines.
  3. Choose File > Save As (or Export) and pick PDF.

In Google Sheets:

  1. Select the stub range.
  2. Choose File > Download > PDF.
  3. Under export settings, pick Selected cells, set scale to Fit to width and untick gridlines.

Name each file the same way, for example `2026-11-20_Rivera_paystub.pdf`, so stubs sort by date. Before you share the workbook as a template, protect the formula cells so only the shaded input cells can be edited.

What are the limits of a pay stub spreadsheet?

A spreadsheet is good at arithmetic and bad at rules. Things to keep in mind:

  • Withholding is not automatic. Federal income tax withholding depends on the employee's W-4 and the IRS withholding method, not a flat percentage. The sheet only shows what you type in.
  • Annual limits change. Some payroll taxes have yearly wage limits or extra rates above a threshold. A rate cell that is right in one year can be wrong in the next, and a simple percentage formula will not stop at a limit.
  • State requirements differ. Some states say what a pay stub must show. Check pay stub requirements by state before you settle on a layout.
  • Copied tabs break. YTD formulas that point at the wrong tab give wrong totals without any warning.
  • It files nothing. A pay stub is a record for the employee; tax filings with the IRS and your state are separate.

If you want a ready layout without building one, see our pay stub templates.

pay stub requirements by state pay stub templates

Make the pay stub without the formulas

If you would rather not maintain formulas, rate cells and YTD links every pay period, use the pay stub generator. Rather not maintain formulas? Put the same figures into the [pay stub generator](/us/pay-stub-generator) and get a clean PDF pay stub with YTD totals.

pay stub generator

FAQ

Do the same formulas work in Google Sheets? Yes. ROUND, SUM, SUMIFS and DATE work the same way in Google Sheets as in Excel, so you can copy the formulas above unchanged.

How do I calculate overtime pay in Excel? Multiply the hourly rate by the overtime multiplier and the overtime hours: `=ROUND(B4*B7*B6,2)`, with the rate in B4, overtime hours in B6 and the multiplier in B7.

Why are my YTD totals wrong after I copy a tab? The copied YTD formulas usually still point at an older tab. Update the tab name in each formula, or switch to a register tab with SUMIFS so the stub always sums by pay date.

Can a spreadsheet work out federal income tax withholding? Not reliably with a single percentage, because withholding depends on the employee's W-4 and the IRS method. Enter the amount from your payroll records instead.

Can I make the pay stub without a spreadsheet? Yes. Enter the same figures in the pay stub generator; you can build and preview the stub before you download the PDF.

pay stub generator

Questions

Do the same formulas work in Google Sheets?

Yes. ROUND, SUM, SUMIFS and DATE work the same way in Google Sheets as in Excel, so you can copy the formulas unchanged.

How do I calculate overtime pay in Excel?

Multiply the hourly rate by the overtime multiplier and the overtime hours: =ROUND(B4*B7*B6,2), with the rate in B4, overtime hours in B6 and the multiplier in B7.

Why are my YTD totals wrong after I copy a tab?

The copied YTD formulas usually still point at an older tab. Update the tab name in each formula, or switch to a register tab with SUMIFS so the stub always sums by pay date.

Can a spreadsheet work out federal income tax withholding?

Not reliably with a single percentage, because withholding depends on the employee's W-4 and the IRS method. Enter the amount from your payroll records instead.

Can I make the pay stub without a spreadsheet?

Yes. Enter the same figures in the pay stub generator at /us/pay-stub-generator; you can build and preview the stub before you download the PDF.

Sources

    Sources checked November 20, 2026. This article explains how pay documents work; it is not tax or legal advice.