Skip to content
US State Paycheck

How the calculator works

What the Texas paycheck calculator does with your numbers, where its tax figures come from, how they are checked and tested, and what it leaves out.

What it calculates

For one paycheck, the calculator works out gross pay, before-tax and after-tax deductions, federal income tax withholding, Social Security and Medicare, and take-home pay. Texas has no state income tax.Texas Comptroller (source: Texas is open for small business (Texas Comptroller of Public Accounts, Fiscal Notes, 2025), "Texas has no state income tax.")

It follows the method payroll software uses for employees who gave their employer a Form W-4 from 2020 or later. Everything runs in your browser: see the privacy page.

The check date picks the rules

Tax rules change from year to year, so the calculator uses the rules in effect on the date the paycheck is paid (the check date). Each set of rules is stored with the dates it covers, and every part of the calculation (income tax tables, Social Security and Medicare, bonus rules, deduction rules) is looked up separately for the check date.

If any part has no checked rules for that date, the calculator shows no amounts at all rather than borrowing another year's figures. That is why a check dated in 2027 shows no estimate yet. Draft IRS publications are never used.

Step by step

  1. Gross pay. A yearly salary is divided by the number of paychecks in the year; hourly pay is hours times the rate, with overtime at 1.5× or 2×, plus any bonus or commission in the check.
  2. Deductions. Each deduction is taken from gross pay, as a fixed amount or a percentage, and marked as before or after each tax according to IRS rules. See which deduction is taken before which tax.
  3. Three taxable amounts. Pay subject to federal income tax, to Social Security and to Medicare can differ, because deductions are treated differently for each.
  4. Federal income tax. Payroll software figures federal income tax withholding with IRS Worksheet 1A and the annual percentage method tables in Publication 15-T: it annualizes your taxable pay, applies the table for your filing status, and divides by the number of paychecks.IRS Pub 15-T (2026) (source: Publication 15-T (2026), Federal Income Tax Withholding Methods, Section 1, Worksheet 1A, line 1g (PDF p. 10); Section 1, 2026 Percentage Method Tables for Automated Payroll Systems, STANDARD Withholding Rate Schedules, Single or Married Filing Separately (PDF p. 12)) A bonus is withheld at the flat supplemental rate or together with regular pay, as you choose.
  5. Social Security and Medicare. 6.2% and 1.45% of the taxable amounts, taking year-to-date wages into account so the wage base and the Additional Medicare threshold apply at the right point.
  6. Take-home pay. Gross pay minus everything taken out.

Money and rounding

All amounts are kept in whole cents, and tax rates are kept as exact decimals, so there are no floating-point rounding errors. Where the IRS worksheet produces a fraction of a cent, it is rounded to the nearest cent, with half a cent rounded up. Employers may round federal income tax withholding to the nearest whole dollar.IRS Pub 15-T (2026) (source: Publication 15-T (2026), Federal Income Tax Withholding Methods, Introduction, Rounding (PDF p. 9)) That and similar choices can make a real stub differ by a few cents.

Where the figures come from

Every rate, limit and table is stored in a rule file with the official document it came from, the section, the exact wording, the date it was read and how it was checked. The calculator, the 2026 rules page and the pay stub guide all read the same files, so a figure cannot differ from page to page.

How the rules are checked

Each figure was read twice, from two separately published official sources: for 2026, the IRS web page and the PDF edition of the same publication; for 2027, a second official SSA or IRS page. The two readings were compared and no differences were found.

Both readings were done by the same AI assistant (Claude). They are AI-assisted checks, not independent reviews by people, and no person has reviewed the figures yet. A review by the site's owner is required before the site is published. Each check is recorded with its date and who did it in the source register (CSV).

The rules were last checked on Sat, Nov 21, 2026. The next scheduled check is Tue, Dec 15, 2026.

Official sources used

How it is tested

Every change to the code runs an automated test suite. The tests check:

  • The tables against the IRS documents, cell by cell, from a separate transcription of each table.
  • Official worked examples. Publication 15 section 7, Example 3 (a flat 22% on a $1,000 bonus) is reproduced exactly. Publication 15-T (2026) prints no worked example of Worksheet 1A, so there is none to reproduce.
  • Cases worked out by hand and with a separate program written in another language (Python) from the same IRS tables. The results below are calculated live by the engine and match those hand calculations.
  • Edges: each table bracket, the wage base and the Additional Medicare threshold being crossed, the last day of December and the first of January, and years with an extra paycheck.
  • Consistency rules, for example that take-home pay always equals gross pay minus everything taken out.
  • The website itself in a real browser on phone and desktop sizes, including accessibility checks and a check that nothing you type is sent anywhere.
Federal income tax withheld per paycheck, 2026 (Form W-4 2020 or later, no Steps 2–4)
CaseFederal income tax
$52,000 a year, paid every 2 weeks, Single$156.15
$75,000 a year, every 2 weeks, Single, $200 traditional 401(k) per paycheck$251.00
$75,000 a year, every 2 weeks, Single, no 401(k)$295.00
$200,000 a year, every 2 weeks, Single$1,412.85
$1,187.50 a week, Single$100.58

Month and Year views

The Month and Year views are projections, not a promise. They run every paycheck of the year in order, starting on January 1, so the Social Security wage base and Additional Medicare apply on the paycheck where they are reached. They assume every paycheck is the same as the one you entered. If any paycheck in the year would pass a yearly contribution limit, no yearly figure is shown.

Pay stub comparison

"Compare with your pay stub" lines up the amounts you type from a stub with the estimate. A line counts as a match when it is within $1.00, because employers may round. Possible reasons for a difference are found by running the same calculation again with one thing changed (for example the Form W-4 Step 2 box) and checking whether that reproduces your stub. A reason that fits the numbers is a possibility, not proof.

What it leaves out

  • Forms W-4 from 2019 or earlier (withholding allowances).
  • Local taxes, wage garnishments, tips, taxable fringe benefits and employer contributions.
  • 401(k), 403(b) and HSA catch-up contributions for people aged 50 or 55 and over.
  • Supplemental wages above $1,000,000 in a year.
  • Holidays that move a payday, and bonuses paid on a separate date from regular pay.
  • Any check dated in a year without checked rules (currently 2027 and later).

See the disclaimer for how to use the estimates, and the change log for what has changed.