Calculate take-home pay
calculate_take_home_payCalculate take-home pay from a UK salary for a tax year: income tax by band (England, Wales and Northern Ireland, or Scotland), employee National Insurance, student loan repayment and pension contributions, with yearly, monthly and weekly take-home and the employer National Insurance and total cost to the employer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxYear | No | UK tax year, e.g. "2026-27". Defaults to the current one. | |
| grossSalary | Yes | Gross annual salary in pounds | |
| studentLoanPlan | No | Student loan plan, if any (plan4 is Scotland, postgrad the postgraduate loan) | |
| scottishTaxpayer | No | True for a Scottish taxpayer (Scottish bands) | |
| pensionContributions | No | Employee pension contributions a year, in pounds |