CalcBloc tax and salary calculator

v0.5.0
io.github.itmarkerz/calcbloc-mcp Checked 3 hours ago Published 4 days ago

Take-home pay, employer cost and official tax tables for 217 countries, with sources.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

calculate_take_home_pay Calculate take-home pay

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: ee, pl, dk, sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in (217 countries with official tax tables; 15 with take-home pay calculations; 14 with employer cost; 15 in the cross-country comparison (France: take-home pay and compare only, no employer cost yet); 12 with supplemental (bonus) withholding; 5 with equity compensation tax (RSUs and stock options); 10 with cross-border equity estimates for mobile employees.) region…

ParameterTypeDescription
country *stringCountry 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.…
gross_salary *numberGross salary before tax in the country's currency. Annual for every country except Singapore (monthly); India: annual CTC/gross as described by list_countries.
optionsobjectCountry-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":…
regionstringRegion 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.
yearstringTax year, e.g. "2026" or "2026-27". Default: the current year. Calculations use the current year only.

calculate_employer_cost Calculate employer cost

Total cost of employing someone on a gross salary: the salary plus employer social security, payroll taxes, pension and other on-costs, with a breakdown, for the current tax year. Countries: ee, pl, dk, sg, nl, es, de, us, uk, au, nz, ca, ie, in. region is REQUIRED for: us, au, ca; optional for: es, de, in; a missing or unknown region returns the valid codes. Returns the tax year, official source URLs and the calcbloc.com page. Bonus and other supplemental pay (withholding vs final tax): calculate_supplemental_withholding (sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in). Equity compensation (R…

ParameterTypeDescription
country *stringCountry 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.…
gross_salary *numberGross salary before tax in the country's currency. Annual for every country except Singapore (monthly); India: annual CTC/gross as described by list_countries.
optionsobjectCountry-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":…
regionstringRegion code or name. Required for: us, au, ca. Examples: US "ca", Australia "nsw", Canada "on". list_countries with the country lists every code.
yearstringTax year, e.g. "2026" or "2026-27". Default: the current year. Calculations use the current year only.

compare_countries Compare take-home pay in two countries

The same gross salary in two countries: take-home pay, income tax and contributions on each side, converted at the European Central Bank reference rate, with a plain-English summary. Countries: ee, pl, dk, sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in. Use region_a / region_b for a US state, UK nation, Canadian province or Indian state (defaults apply otherwise and are stated in the answer). Returns each side's tax year and official sources. Bonus and other supplemental pay (withholding vs final tax): calculate_supplemental_withholding (sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in). Equity…

ParameterTypeDescription
country_a *stringCountry 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.…
country_b *stringCountry 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.…
gross_salary *numberAnnual gross salary, in `currency`.
currencystringCurrency of gross_salary: country A's or country B's (ISO code). Default: country A's.
region_astringRegion in country A: a US state ("ca"), UK nation ("scotland"), Canadian province ("on") or Indian state ("mh"). Defaults: New York, England, Ontario, Maharashtra.
region_bstringRegion in country B: a US state ("ca"), UK nation ("scotland"), Canadian province ("on") or Indian state ("mh"). Defaults: New York, England, Ontario, Maharashtra.

calculate_supplemental_withholding Calculate withholding on a bonus or other supplemental pay

Tax withheld on a supplemental payment (bonus, commission, RSU vest, stock option exercise or lump sum) paid on top of a regular salary, using the country's official withholding method (for example the IRS supplemental flat rate, HMRC cumulative PAYE, the CRA bonus method), line by line, next to the final tax the payment adds at the person's real rates, so over- or under-withholding shows. Countries: sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in. Types are limited for au (bonus, commission, lump_sum), ie (bonus, commission, rsu_vest, lump_sum); other countries take every type. region is REQUI…

ParameterTypeDescription
amount *numberThe supplemental payment (gross), in the country's currency.
country *stringCountry 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.…
gross_salary *numberRegular gross salary for the year, before the supplemental payment, in the country's currency (annual in every country).
optionsobjectCountry-specific options. Examples: US {"filing_status":"mfj","method":"aggregate","ytd_supplemental":900000} (filing_status: single | mfj | hoh; method: flat | aggregate), UK {"tax_code_number":1257,…
regionstringRegion code or name. Required for: us, ca; optional for: es, de, uk. Examples: US "ca" or "California", Canada "on", UK "scotland". list_countries with the country lists every code.
typestringKind of payment. Default: bonus. Types are limited for au (bonus, commission, lump_sum), ie (bonus, commission, rsu_vest, lump_sum); other countries take every type.

calculate_equity_tax Calculate tax on RSUs and stock options

Tax on equity compensation: income tax, social security and employer withholding when RSUs vest or stock options are exercised, and capital gains tax on a later sale (give sale_price and sale_date), with flags (such as AMT exposure) and the alternative outcomes the law allows (such as qualifying vs disqualifying disposition). Countries and instruments: us (rsu, nso, iso), uk (rsu, emi, csop, unapproved_option), au (ess_upfront, ess_deferred, rsu), ca (stock_option), in (esop, rsu). Required: country, instrument, units, grant_date, event_date, fmv_event, gross_salary; options also need exercise…

ParameterTypeDescription
country *stringCountry 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.…
event_date *stringVest date (RSUs), exercise date (options), or the acquisition or deferred taxing point (Australia ESS) (YYYY-MM-DD).
fmv_event *numberMarket value per share at vest or exercise, in the country's currency (India: FMV under rule 15(6)).
grant_date *stringGrant date (YYYY-MM-DD).
gross_salary *numberRegular annual gross salary in the country's currency (for the marginal rates and contribution ceilings).
instrument *stringEquity instrument; each country has its own: us (rsu, nso, iso), uk (rsu, emi, csop, unapproved_option), au (ess_upfront, ess_deferred, rsu), ca (stock_option), in (esop, rsu).
units *numberNumber of shares vesting or options exercised.
exercise_pricenumberExercise price per share (required for options; RSUs: any amount paid, default 0).
fmv_grantnumberMarket value per share at grant (UK EMI discount and CSOP limit, Canada 110(1)(d) and the vesting limit).
optionsobjectCountry-specific options. Examples: US {"filing_status":"mfj"}, UK {"readily_convertible":false,"emi_exercise_period_years":"10"}, Canada {"employer_type":"ccpc"}, India {"regime":"old","listed":true}…
regionstringRegion code or name. Required for: ca; optional for: us, uk. Examples: Canada "on" or "Ontario", US "ca" (state withholding; omit for federal only), UK "scotland".
sale_datestringSale date (YYYY-MM-DD), with sale_price.
sale_pricenumberSale price per share; with sale_date it adds the tax on the sale.

calculate_cross_border_equity Split equity income between countries (mobile employees)

For an employee who worked in several countries between grant and vest: splits an RSU vest or stock option exercise between those countries by workdays (OECD Commentary on Article 15) or the country's own official rule (US Treas. Reg. § 1.861-4, HMRC relevant period, Ireland, Singapore, Canada), then estimates each country's tax and withholding on its share. Tax estimates for: sg, nl, es, de, us, uk, au, ca, ie, in; the split works for every country. Flags where two countries tax the same income (relief by credit or exemption under the treaty); treaty rates and the relief amount are not compu…

ParameterTypeDescription
event_date *stringVest date (RSUs) or exercise date (options) (YYYY-MM-DD): the taxing event.
fmv_event *numberMarket value per share at the event, in `currency`.
grant_date *stringGrant date (YYYY-MM-DD): start of the sourcing period.
instrument *stringrsu (RSUs and share awards, taxed at vest) or stock_option (taxed at exercise). Each country maps it to its own instrument; override with options {"us":{"instrument":"iso"}}.
periods *arrayWhere the employee worked between grant and vest, e.g. [{country:"us",start:"2024-01-01",end:"2024-12-31",workdays:220},{country:"uk",start:"2025-01-01",end:"2025-06-30",workdays:120}].
units *numberShares vesting or options exercised.
currencystringCurrency of fmv_event and exercise_price (USD, EUR, GBP, AUD, NZD, CAD, INR or SGD). Default USD. Each country's share is converted at the ECB reference rate.
exercise_pricenumberExercise price per share, in `currency` (required for stock_option; RSUs: any amount paid, default 0).
grant_countrystringCountry where the employee worked at grant (Singapore's rule). Default: from the periods.
optionsobjectPer-country options of that country's equity or supplemental module, e.g. {"us":{"filing_status":"mfj","region":"ny"},"ca":{"region":"on"},"de":{"tax_class":3}}; also region and instrument. list_count…
residencestringTax residence at the event. Default: the country of the period that contains event_date.
salariesobjectRegular annual salary per country in that country's currency, e.g. {"us":150000,"uk":80000} (marginal rates and contribution ceilings; a missing country is estimated as if there were no other income t…
us_citizenbooleanUS citizen: the US taxes worldwide income whatever the residence. Default false.
vest_datestringVest date (YYYY-MM-DD), the end of the sourcing period, for options exercised after vesting. Default: event_date.

calculate_import_duty Calculate import duty and landed cost

Duties and taxes on one import, as of the tariff's version date: the third-country (MFN) duty or, with proof_of_origin, the lowest preferential duty under a trade agreement; extra duties in force for the origin (anti-dumping, countervailing, safeguard, US Section 301); excise (UK); import VAT (UK, or the EU member state's standard rate); US entry fees; and the landed cost. Destinations: gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Each line has its measure, legal instrument and source. A duty that cannot be compute…

ParameterTypeDescription
customs_value *numberCustoms value in the tariff's currency: CIF (price plus transport and insurance to the border) in GBP for the UK and EUR for the EU; the transaction value in USD for the US; INR for India.
hs_code *stringThe 10-digit commodity code of the importing tariff (a shorter prefix works when it matches one line only), e.g. "0901210000"; dots and spaces are ignored.
origin *stringCountry of origin of the goods (ISO code or name), e.g. "cn", "India".
additional_codeAdditional codes declared with the commodity code (up to 4): the exporter's code for exporter-specific anti-dumping or countervailing duties (e.g. 8A95).
destinationstringImporting country (required, or give importer): gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Names work too ("United Kin…
documentsDocument (certificate) codes declared with the goods (up to 10), e.g. D008 for the invoice that gives an EU exporter its own anti-dumping rate.
excise_codestringUK excise additional code where several apply (e.g. X311).
importerstringAlias of destination (the importing country).
proof_of_originbooleantrue when the goods have a valid proof of origin for a preference: the lowest preferential duty is used instead of MFN. Default false.
quantitynumberQuantity in unit, for specific duties and excise (give unit too).
transportstringUS only: how the goods arrive; vessel adds the harbor maintenance fee.
unitstringUnit of quantity: kg, g, tonne, 100 kg, l, hl, items, 1000 items, pairs, m, m2, m3, or the tariff's own unit (e.g. "% vol/hl").
vat_codestringUK VAT additional code for another VAT rate (e.g. VATZ zero rate, VATR reduced rate).

get_tariff Look up tariff lines by commodity code

The importing country's tariff lines for a commodity code or HS prefix: description, MFN duty, tariff preferences with their agreements and quotas, suspensions, extra duties (anti-dumping and others, grouped by exporter additional code), import VAT, excise and other charges, each in the tariff's own wording, as of the tariff's version date. Tariffs: gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). With origin, only the measures for that origin and the best preferential rate. Paginated: pass nextCursor as cursor for mor…

ParameterTypeDescription
hs_code *stringCommodity code: an HS prefix (2, 4, 6 or 8 digits) or the full 10-digit code, e.g. "0901" or "8471.30"; dots and spaces are ignored.
cursorstringnextCursor from the previous call, with the same destination, hs_code and origin.
destinationstringImporting country (required, or give importer): gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Names work too ("United Kin…
importerstringAlias of destination (the importing country).
limitintegerLines per page (1 to 25, default 10).
originstringCountry of origin (ISO code or name): keeps only the measures that apply to it and adds the best preferential rate.

list_trade_agreements List trade agreements and preference schemes

Every trade agreement and preference scheme in an importing country's tariff (free trade agreements, customs unions, GSP and DCTS tiers, US special programs): id, official title, type, parties, signing date and the origin countries it covers. With partner (an origin country) or agreement (an id from get_tariff), also the rules of origin and the official links. Tariffs: gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Agreements are directional: these are the preferences for imports into the destination.

ParameterTypeDescription
agreementstringOne agreement: its id (e.g. "eu-gb-tca", "gb-in-ceta") or words of its title.
destinationstringImporting country (required, or give importer): gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Names work too ("United Kin…
importerstringAlias of destination (the importing country).
partnerstringOnly agreements covering this origin country (ISO code or name).

get_tax_tables Get official tax tables

Official tax tables for a country and year: income tax bands, allowances, employee and employer social security rates and thresholds, and for many countries corporate, property, transfer and other taxes, each with its official source and the date it was checked. Available for all 217 countries, including those without calculations. Filter with group or sections for long tables.

ParameterTypeDescription
country *stringCountry 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.…
groupstringOnly sections of this group.
regionstringRegional table, e.g. a US state (ca), Canadian province (qc), UK nation (scotland), Swiss canton, Spanish community.
sectionsarrayOnly these section ids (from sectionIndex).
yearstringTax year, e.g. "2026" or "2025-26". Default: latest.

search_tax_facts Search tax facts

Every tax-table figure as a fact tagged with its tax type, jurisdiction and level of government, each with its value (rate, amount or bands), validity dates, status and official source. Filter by country, tax_type (a code or dotted prefix: income.pit, payroll.ss, consumption.), jurisdiction (gb-sct, us-ca, ca-on), level and year, across all 217 countries; for example every US state sales tax rate, or one country's income tax bands. Paginated: pass nextCursor as cursor.

ParameterTypeDescription
countrystringCountry short code or name. Default: every country.
cursorstringnextCursor from the previous call, with the same filters.
jurisdictionstringJurisdiction id, exact: gb, gb-sct, us-ca, ca-on (ISO 3166-1/3166-2 based).
levelstringTier of government that levies the tax.
limitintegerFacts per page (1 to 100, default 25).
tax_typestringTax type code or dotted prefix, e.g. income.pit, payroll.ss (every social security branch), consumption. (every consumption tax), consumption.sales.state. An unknown type returns the list of top-level…
yearstringTax year (e.g. "2026" or "2026-27"), or "latest" for each country's current year. Default: every year served.

get_tax_calendar Get the tax calendar

A country's tax calendar: the tax year in force (dates, calendar or fiscal, days remaining), when the next tax year starts, other tax periods, every change already enacted or officially announced for the next 24 months (effective date, what changes, status and the official source) and the last and next budget dates (next budget "not announced" unless the government has announced it). Nothing is estimated. Without country: one line per country (217 countries). With region (US state, Canadian province, UK nation…), that region's changes too.

ParameterTypeDescription
countrystringCountry short code or name. Omit for every country.
regionstringRegion code or name for a country with regional tax tables (us: state code; ca: province; uk: scotland or wales). Needs country.

get_tax_treaties Get double taxation treaty rates

A country's double taxation treaties (DTAs, DTAAs) as CalcBloc stores them, each read from an official copy (the partner country's tax authority or treasury): the maximum withholding tax the source country may charge on dividends (and the lower rate for a qualifying shareholding), interest, royalties and fees for technical services, each with its condition, article and the article's wording; each country's method of relief from double taxation (credit or exemption); signature and entry-into-force dates; whether the MLI modifies the treaty; and the source. Stored for India (its treaties with th…

ParameterTypeDescription
country *stringCountry whose treaties to list: short code or English name, e.g. "in" or "India".
partnerstringOnly the treaty with this country: ISO code or English name, e.g. "us", "uk" (or "gb"), "Singapore".

list_countries List supported countries

Countries CalcBloc covers (217 countries with official tax tables; 15 with take-home pay calculations; 14 with employer cost; 15 in the cross-country comparison (France: take-home pay and compare only, no employer cost yet); 12 with supplemental (bonus) withholding; 5 with equity compensation tax (RSUs and stock options); 10 with cross-border equity estimates for mobile employees.), their current tax year, and which tools work for each. With a country, also its regions (and whether they are required) and the country-specific options accepted by calculate_take_home_pay and calculate_employer_co…

ParameterTypeDescription
countrystringCountry code or name for details.