If you have ever received a German job offer, you have seen two numbers: Brutto (gross) and Netto (net). The gap between them is usually 35–45%, and the rules behind it are surprisingly precise. The Federal Ministry of Finance publishes the exact wage tax algorithm every year as a flowchart, the Programmablaufplan (PAP), and every payroll system in the country follows it.
I implemented the 2026 version in plain JavaScript for the calculators on Calkoro and published the engine as an open-source package, net-salary-2026. This post walks through how the calculation works, using a €3,500 monthly salary in tax class I as the running example.
1. Social security comes first
Employees pay half of four social insurances, each as a percentage of gross salary up to a ceiling (Beitragsbemessungsgrenze):
| Insurance | Employee rate 2026 | Monthly ceiling |
|---|---|---|
| Pension (Rentenversicherung) | 9.3% | €8,450 |
| Unemployment (Arbeitslosenversicherung) | 1.3% | €8,450 |
| Health (Krankenversicherung) | 7.3% + half of the insurer's extra contribution | €5,812.50 |
| Long-term care (Pflegeversicherung) | 1.8%, or 2.4% if childless and 23+ | €5,812.50 |
For €3,500 that is €325.50 + €45.50 + €306.25 + €84.00 = €761.25.
const rv = round((Math.min(brutto, 101400 / 12) * 9.3) / 100); const kv = round((Math.min(brutto, 69750 / 12) * (7.3 + zusatz / 2)) / 100); 2. Taxable income is not gross minus social security
This is the part most hand-rolled calculators get wrong. Wage tax is calculated on an annual figure, and payroll does not subtract your actual contributions. Instead it subtracts:
- the employee lump sum (Arbeitnehmer-Pauschbetrag): €1,230
- the special expenses lump sum: €36
- a Vorsorgepauschale: a notional amount for pension, health, care and unemployment insurance, with its own rules (for example, the health part uses a reduced 7.0% rate because sick pay does not apply, and the unemployment part is capped together with health at €1,900)
For €42,000 a year this gives a taxable income (zvE) of €32,271.
const vsp = Math.ceil(vRV + Math.max(vKVPV, Math.min(1900, vKVPV + vALV))); const zvE = Math.floor(jahr - 1230 - 36 - vsp); 3. The income tax tariff is a piecewise polynomial
Section 32a of the Income Tax Act defines five zones. Between them the tax grows as a quadratic function, which is why German tax is described as "linear-progressive":
export function tarif2026(zvE) { const x = Math.floor(zvE); if (x <= 12348) return 0; if (x <= 17799) { const y = (x - 12348) / 10000; return Math.floor((914.51 * y + 1400) * y); } if (x <= 69878) { const z = (x - 17799) / 10000; return Math.floor((173.1 * z + 2397) * z + 1034.87); } if (x <= 277825) return Math.floor(0.42 * x - 11135.63); return Math.floor(0.45 * x - 19470.38); } €32,271 gives €4,866 a year, or €405.50 a month (payroll rounds down to the cent). That matches the official examples.
Tax classes change which function is applied: class III uses splitting (twice the tax on half the income), classes V and VI use a special table that taxes from the first euro.
4. Solidarity surcharge and church tax
The solidarity surcharge (5.5%) only applies once annual wage tax exceeds €20,350, with a phase-in zone above it, so most employees no longer pay it. Church tax is 8% (Bavaria, Baden-Württemberg) or 9% of wage tax, and only for registered church members. Both are calculated on a wage tax that takes child allowances into account, even though child allowances do not reduce the wage tax itself.
5. Putting it together
import { germanNetSalary } from 'net-salary-2026'; germanNetSalary({ gross: 3500 }); // { // net: 2333.25, // wageTax: 405.5, // solidaritySurcharge: 0, // socialSecurity: 761.25, // employerCost: 4240.25, // ... // } €3,500 gross becomes €2,333.25 net, and the employer pays €4,240.25 in total. The package also covers all six tax classes, child allowances, church tax by state, part-time comparison, company car benefit, unemployment benefit (Arbeitslosengeld) and parental allowance (Elterngeld). It also includes UK take-home pay for 2026/27 and Stamp Duty.
Try it
- Calculator in English: German salary calculator 2026
- Calculator in German: Brutto-Netto-Rechner
- Source code: github.com/fernandodealmeida569-blip/net-salary-2026
- npm:
npm install net-salary-2026
The rates change every January. If you spot a difference from your payslip, issues are welcome.


