Calculate take-home pay
calculate_take_home_payCalculate net take-home pay from a gross salary after income tax and employee social security, with a line-by-line breakdown using official rates for 12 countries.
Instructions
Net (take-home) pay after income tax and employee social security for a gross salary, with a line-by-line breakdown, using official rates for the current tax year. Countries: sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in (41 countries with official tax tables; 12 with take-home pay calculations; 11 with employer cost; 12 in the cross-country comparison (France: take-home pay and compare only, no employer cost yet).) region is REQUIRED for: us, ca; optional for: es, de, uk, in; a missing or unknown region returns the valid codes. Returns the tax year, official source URLs and the calcbloc.com page. Not yet supported: equity compensation (RSUs, stock options), bonus and supplemental withholding, and cross-border (multi-country) withholding.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "<country>",
"gross_salary": "<gross_salary>"
},
"name": "calculate_take_home_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Tax year, e.g. "2026" or "2026-27". Default: the current year. Calculations use the current year only. | |
| region | No | Region code or name. Required for: us, ca. Examples: US "ca" or "California", UK "scotland", Canada "on", Spain "md", Germany "by". list_countries with the country lists every code. | |
| country | Yes | Country short code (ISO 3166-1 alpha-2 in lower case; the UK is "uk", "gb" also works), e.g. "us", "uk", "ca", "de", "in", "au", "nz", or the English name. Older keys such as "new-zealand" also work. See list_countries. | |
| options | No | Country-specific options. Examples: US {"filing_status":"mfj","children":2} (filing_status: single | mfj | hoh; "married" and "head_of_household" are accepted too), UK {"pension_pct":5,"student_loan":"plan2"} (student_loan: none | plan1 | plan2 | plan4 | plan5), Germany {"tax_class":3,"church":true}. Call list_countries with the country to see every option, its allowed values and its default. | |
| gross_salary | Yes | Gross salary before tax in the country's currency. Annual for every country except Singapore (monthly); India: annual CTC/gross as described by list_countries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| inputs | Yes | ||
| region | Yes | ||
| country | Yes | ||
| licence | Yes | ||
| results | Yes | ||
| sources | Yes | Official sources for the rates used. | |
| taxYear | Yes | ||
| currency | Yes | ||
| warnings | Yes | ||
| breakdown | Yes | ||
| netAnnual | Yes | ||
| disclaimer | Yes | ||
| attribution | Yes | Always "Data by CalcBloc"; show it with the figures. | |
| calcblocUrl | Yes | The calcbloc.com page for this result. | |
| countryName | Yes | ||
| grossSalary | Yes | ||
| taxTablesUrl | Yes | ||
| effectiveRate | Yes | Share of gross pay deducted, 0 to 1. | |
| salaryMeaning | Yes | ||
| attributionUrl | Yes | ||
| totalDeductions | Yes |