Last month I put the same number — $120,000 of self-employment profit — into six of the most-cited self-employment tax calculators on the first page of search results.
I got six answers. The spread was not rounding noise; one tool's number sat four figures away from another's. On a figure that ends up on a filed return, that is not a detail.
So I did the stubborn thing: I opened the Schedule SE instructions, the SSA page for the contribution and benefit base, and the IRS guidance on Additional Medicare Tax, and worked the arithmetic by hand.
The errors were not exotic. They were three boring ones, repeated.
Error 1: skipping the 92.35% factor
net_se_earnings = max(0, net_profit) × 0.9235 Employees and employers each pay half of Social Security and Medicare tax, and the employer half never shows up in the employee's income. Congress mirrored that treatment for the self-employed by taxing only 92.35% of net profit.
Skip the factor and you tax the full profit at 15.3%. On $100 of profit that is $15.30 instead of $14.13 — a tax overstated by about 8%, on every single calculation the page produces. It is also invisible, because the number still looks like a plausible tax figure.
Error 2: a wage base that expired
ss_tax = min(net_se_earnings, max(0, wage_base − w2_wages)) × 12.4% The Social Security portion stops at an annual contribution and benefit base. For tax year 2026 that base is $184,500. The SSA has already published $192,300 for 2027, and it will be published again next October.
A tool with last year's number baked into a constant is not "slightly stale". Above the old base it keeps charging 12.4% on earnings that are no longer taxable, and the error grows with income. This is the kind of bug that never surfaces in testing, because testing happens with round numbers like $50,000, well under the cap.
Error 3: the Additional Medicare Tax deducted when it shouldn't be
The 0.9% Additional Medicare Tax is real and it has no wage cap. What it does not have is a place in the deductible half of self-employment tax.
Take $300,000 of profit. The Additional Medicare Tax on it comes to about $693. If a tool folds that into the deductible half, it lets you deduct half of a tax that was never deductible — and the resulting understatement of income tax flows silently into the bottom line. Small, but real, and it compounds with filing status.
What I did differently
Three commitments, all cheap to implement:
- The formula goes on the page. Not "our advanced algorithm" — the actual expression, with operators, in the order the code evaluates it.
- The test vectors are public. Five profit levels, hand-computed, published in a table anyone can reproduce.
- The sources are named, with a date. Not "according to IRS guidance" — the specific publication, and the day it was last checked against the primary source.
There is a fourth one, which is a policy rather than a feature: corrections happen in public. A silent fix is a lie told slowly.
One of these errors was mine
A check of my own calculator turned up the exact kind of bug I had spent the week criticising. The standard deduction for Head of Household was being read from the single-filer column. In 2026 those two numbers are not close: $24,150 against $16,100.
Nothing about the output looked wrong. Every figure the page produced was internally consistent — which is precisely why it survived.
It is fixed, and the correction is noted on the methodology page. A policy that only applies to other people's code is not a policy.
The test vectors
| Net profit | Net SE earnings (×0.9235) | OASDI (12.4%) | Medicare (2.9%) | Additional (0.9%) | Total |
|---|---|---|---|---|---|
| $400 | $369.40 | $45.81 | $10.71 | $0.00 | $56.52 |
| $500 | $461.75 | $57.26 | $13.39 | $0.00 | $70.65 |
| $60,000 | $55,410.00 | $6,870.84 | $1,606.89 | $0.00 | $8,477.73 |
| $200,000 | $184,700.00 | $22,878.00 | $5,356.30 | $0.00 | $28,234.30 |
| $300,000 | $277,050.00 | $22,878.00 | $8,034.45 | $693.45 | $31,605.90 |
Two of those rows are doing specific work. The $200,000 row sits just above the 2026 wage base ($184,700 of net earnings against a $184,500 cap) — it proves the cap applies at the right point and not one dollar late. The $300,000 row is the first one where the Additional Medicare Tax fires at all.
Round numbers are the enemy here. They sit comfortably in the middle of every range and pass every check.
The whole calculation
const WAGE_BASE_2026 = 184500; const ADDL_MEDICARE_THRESHOLD = { single: 200000, mfj: 250000 }; function selfEmploymentTax(netProfit, w2Wages = 0, filingStatus = 'single') { const net = Math.max(0, netProfit) * 0.9235; const ssRoom = Math.max(0, WAGE_BASE_2026 - w2Wages); const oasdi = Math.min(net, ssRoom) * 0.124; const medicare = net * 0.029; const threshold = ADDL_MEDICARE_THRESHOLD[filingStatus] ?? ADDL_MEDICARE_THRESHOLD.single; const additional = Math.max(0, net + w2Wages - threshold) * 0.009; return { oasdi, medicare, additional, total: oasdi + medicare + additional }; } Eleven lines. The hard part was never the code — it was being certain about the three constants and the order of operations.
Why zero dependencies
The calculators are single HTML files. No framework, no build step, no analytics script, no cookie banner. Part of that is performance, most of it is auditability: view-source is the complete program. If you want to know whether the number on the page comes from the formula on the page, you can check in about ninety seconds.
The cost is real. No components, no reuse, every page hand-built. For a product whose entire value is one number a user can verify, I think it is the right trade.
On working with an AI assistant
I write this code with an AI assistant. The useful way to describe the split is narrow: the assistant types, I verify. It does not doubt a number. Hand it a wage base from the previous year and it will use it, in clean and confident code. So every constant comes from a primary source I read myself, and the code is not allowed to disagree with it.
What I would tell anyone shipping a YMYL tool
- Take parameters from primary sources, never from a blog. Every stale number I found was traceable to someone copying someone else.
- Publish test vectors. They cost an afternoon and they convert "trust us" into "check it yourself".
- Test at the boundaries, not the middle. The cap, the threshold, the first dollar over each. Round numbers hide everything.
- Be suspicious of your own arithmetic. The most dangerous output is a number that looks plausible.
If you spot an error in mine, the correction address is on the methodology page. I would rather be corrected in public than be right in silence.
