How do I calculate net pay from gross pay?
Subtract pre-tax deductions, work out each tax on its own taxable wages, then subtract the employee taxes and the post-tax deductions from gross. The API does this in one call and returns each step.
Engines and APIs
Send gross pay and a location, get net pay and the line-by-line reason for it.
A paycheck calculator API takes a gross amount and tells you what lands in the employee's account and where the rest goes. The value is in the second half: each tax, who pays it, and why it is that amount.
A single employee in Texas paid $3,000.00 biweekly:
| Tax | Paid by | Level | Amount |
|---|---|---|---|
| Federal Income Tax | Employee | Federal | $320.38 |
| Social Security | Employee | Federal | $186.00 |
| Social Security (Employer) | Employer | Federal | $186.00 |
| Medicare | Employee | Federal | $43.50 |
| Medicare (Employer) | Employer | Federal | $43.50 |
| FUTA | Employer | Federal | $18.00 |
| Texas Unemployment Insurance (Employer) | Employer | State | $81.00 |
Gross pay $3,000.00, less $549.88 of employee taxes, equals net pay $2,450.12. The employer separately owes $328.50.
The same API compares two paychecks and explains the difference, and solves for the gross that leaves a target take-home pay.
curl https://omniatax.io/v1/paycheck \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"checkDate": "2026-09-15",
"payFrequency": "biweekly",
"earnings": [{ "code": "REG", "category": "regular", "amount": 300000 }],
"deductions": [],
"federalW4": { "filingStatus": "single", "multipleJobs": false,
"dependentCredit": 0, "otherIncome": 0, "deductions": 0, "extraWithholding": 0 },
"ytd": { "socialSecurity": 0, "medicare": 0, "futa": 0 },
"workState": { "code": "TX" }
}'Gross-to-net API · Net-to-gross (gross-up) API · Compare two paychecks API · Paycheck calculation formula · All guides
Subtract pre-tax deductions, work out each tax on its own taxable wages, then subtract the employee taxes and the post-tax deductions from gross. The API does this in one call and returns each step.
Yes. Earnings carry a category, so regular pay, supplemental pay such as bonuses and commissions, and untaxed reimbursements are each treated the way the rules require.
14-day free trial, then $0.08 per paycheck calculation. Omnia Express calculates; it does not file, deposit tax, or give tax advice. Disclaimer.