calcbloc/calcbloc is the PHP package for CalcBloc tax data. It does two things:
- Offline tax tables. Official income tax brackets, social security rates, payroll thresholds and employer contributions for the countries listed below, bundled as JSON. No network and no API key. Every figure carries the official source it comes from and the date it was last checked.
- API client. A typed client for the CalcBloc API: tax tables for every country, year and region, plus net salary, employer cost and two-country salary comparison from the same engines as the calculators on calcbloc.com. API 1.8 and 1.9 add bonus/supplemental withholding, RSU and stock option tax (also split across countries), tax facts, tax calendars, tariffs, trade agreements and import duty; API 1.10 adds double taxation treaties (withholding rate limits, as published) and take-home pay and employer cost for Denmark, Estonia and Poland. Cross-border salary withholding (multi-country payroll) and the double-tax relief amount are not supported yet.
PHP 8.1 or later, no required dependencies.
CalcBloc is a product of itmarkerz technologies.
composer require calcbloc/calcblocNot yet published. The package is not on Packagist yet, so the command above does not work today. Until it is, add this repository as a VCS repository in your
composer.json.
The three examples below use only the bundled data. Their scripts are in examples/, and the output shown is what they print with the data in this release.
use CalcBloc\Tables;
$single = Tables::load('us', '2026')->section('federal-income-tax-single');
foreach ($single->rows as $band) {
printf("%-22s %5.1f%%\n",
'$' . number_format($band['from']) . ($band['to'] === null ? ' and over' : ' to $' . number_format($band['to'])),
$band['rate'] * 100);
}
printf("Tax on $85,000 taxable income: $%s\n", number_format(Tables::taxFromBands($single, 85000), 2));
printf("Source: %s (checked %s)\n", $single->source->url, $single->source->retrievedAt);$0 to $12,400 10.0%
$12,400 to $50,400 12.0%
$50,400 to $105,700 22.0%
$105,700 to $201,775 24.0%
$201,775 to $256,225 32.0%
$256,225 to $640,600 35.0%
$640,600 and over 37.0%
Tax on $85,000 taxable income: $13,412.00
Source: https://www.irs.gov/pub/irs-drop/rp-25-32.pdf (checked 2026-10-20)
use CalcBloc\Tables;
$table = Tables::load('germany');
foreach ($table->sectionsInGroup('employee') as $section) {
echo $section->title, "\n";
foreach ($section->rows as $row) {
$value = match ($row['unit']) {
'rate' => rtrim(rtrim(number_format($row['value'] * 100, 2), '0'), '.') . '%',
'money' => number_format($row['value'], 2) . ' ' . $table->currency,
default => (string) $row['value'],
};
printf(" %s: %s\n", $row['label'], $value);
}
}Pension insurance (Rentenversicherung)
Contribution rate (employee and employer each pay half): 18.6%
Contribution ceiling (Beitragsbemessungsgrenze), per year: 101,400.00 EUR
Contribution ceiling, per month: 8,450.00 EUR
Unemployment insurance (Arbeitslosenversicherung)
Contribution rate (employee and employer each pay half): 2.6%
Contribution ceiling, per year (same as pension insurance): 101,400.00 EUR
Health insurance (Krankenversicherung)
General contribution rate (employee and employer each pay half): 14.6%
Average additional contribution rate (Zusatzbeitrag; each fund sets its own, shared equally): 2.9%
Contribution ceiling, per year: 69,750.00 EUR
Contribution ceiling, per month: 5,812.50 EUR
Compulsory insurance threshold (Versicherungspflichtgrenze), per year: 77,400.00 EUR
Long-term care insurance (Pflegeversicherung)
Contribution rate (employee and employer each pay half; see Saxony below): 3.6%
Surcharge for childless members (employee only): 0.6%
Childless surcharge from age: 23
Reduction per child (employee share): 0.25%
Children counted for the reduction: 2nd to 5th child under 25
Saxony: extra employee share (employer pays correspondingly less): 1%
Contribution ceiling, per year (same as health insurance): 69,750.00 EUR
use CalcBloc\Tables;
$federal = Tables::load('canada', '2026')->section('federal-income-tax');
$ontario = Tables::load('canada', '2026', 'on')->section('provincial-income-tax'); // region code or slug
printf("Federal brackets: CAD %s\n", number_format($federal->taxOn(90000), 2));
printf("Ontario brackets: CAD %s\n", number_format($ontario->taxOn(90000), 2));Federal brackets: CAD 14,646.01
Ontario brackets: CAD 6,025.47
These are the amounts from the brackets alone, before non-refundable credits, the Ontario surtax and the Ontario Health Premium. Each of those is a separate section of the same tables.
use CalcBloc\Tables;
Tables::listCountries(); // list<CountryInfo>: code, name, currency, years, regions, pageUrl, apiUrl, lastVerified
Tables::load('uk'); // current tax year (same as 'latest')
Tables::load('nz'); // short code, ISO code ('NZ'), English name or key ('new-zealand')
Tables::load('uk', '2025-26'); // an earlier year, where bundled
Tables::load('uk', null, 'scotland'); // a region: US state, Canadian province, Scotland or Wales, and more
Tables::manifest(); // the raw data/manifest.jsonTables::load() returns a TaxTable:
| Property / method | What it holds |
|---|---|
country, countryName, year, currency, region |
Which table this is. |
effectiveFrom, effectiveTo, status, underReview |
When the figures apply and whether any section is under review. |
sections |
list<Section>: each has id, title, group (income-tax, employee, employer, other), kind (bands or values), rows, basis, note and its source (title, URL, check date). |
section($id), sectionsInGroup($group) |
Lookups. |
rows |
One flat row per band or value, each with source_url and retrieved_at (the same rows as the CSV download). |
sources, pageUrl, attribution |
Every official source, the table's page on calcbloc.com, and the credit line. |
toArray() |
The table in the exact shape of the API response. |
Band rows hold from, to (null = no upper limit) and rate as a decimal (0.2 = 20%). Value rows hold label, value and unit (rate, money, number or text).
Tables::taxFromBands($section, $income) (or $section->taxOn($income)) adds up the tax on each slice of income between a band's from and to. Pass income in the section's basis, which is usually taxable income per year. It applies no allowances, credits, reliefs, surcharges or rounding rules. For UK bands, for example, the basis is taxable income above the Personal Allowance. It is a convenience for working with the published brackets, not tax advice. For full take-home pay, use the net-salary endpoint.
Errors use the API's error codes: Tables::load('atlantis') throws a CalcBlocException with getErrorCode() === 'unsupported_country'. An unknown year gives unsupported_year, and an unknown region gives unsupported_region.
use CalcBloc\Client;
$client = new Client(); // no key (free allowance per IP address), or CALCBLOC_API_KEY; new Client(apiKey: 'cb_...') to pass one
$countries = $client->countries(); // list<ApiCountry>: years, regions, endpoints and their parameters
$table = $client->taxTables('canada', 'latest', 'on'); // TaxTable (same object as Tables::load())
$csv = $client->taxTables('us', '2026', 'ca', 'csv'); // CSV text, one row per band or value
$pay = $client->netSalary('uk', 50000, ['region' => 'scotland']); // CalculationResult
$pay->summary['netAnnual']; // plus results, breakdown, notes, calculatorUrl
$cost = $client->employerCost('germany', 65000); // CalculationResult: summary['totalCost'], ...
$both = $client->compare('uk', 'ireland', 60000, ['currency' => 'GBP']); // ComparisonResult
$us = $client->netSalary('us', 90000, ['region' => 'ca', 'filing_status' => 'mfj']); // short codes: 'nz', 'de', 'ae', ...
// API 1.8 and 1.9: these return the API's JSON as an array (fields documented at calcbloc.com/developers)
$bonus = $client->supplementalWithholding('us', 150000, 20000, ['type' => 'bonus', 'region' => 'ca']);
$emi = $client->equityTax('uk', 'emi', 1000, '2024-01-15', '2026-03-01', ['fmv_event' => 12, 'exercise_price' => 2]);
$split = $client->crossBorderEquity('rsu', 500, '2024-01-01', '2026-01-01', 'us:2024-01-01:2024-12-31,gb:2025-01-01:2026-01-01', ['fmv_event' => 80]);
$facts = $client->facts(['country' => 'uk', 'tax_type' => 'income.pit']);
$cal = $client->taxCalendar('au'); // null: every country
$lines = $client->tariffs('gb', '0901', ['origin' => 'in']); // UK, EU (or a member state), US, India
$deals = $client->tradeAgreements('gb', 'in');
$duty = $client->importDuty('gb', 'in', '0901210000', 1000, ['proof_of_origin' => true]); // an estimate, not a customs ruling
// API 1.10: tax treaties (an array: country, partner, count, treaties); Denmark, Estonia and Poland
$treaties = $client->taxTreaties('in', 'us'); // treaties are stored for India
$dk = $client->netSalary('dk', 600000, ['municipality' => 'average', 'church' => false, 'atp_hours' => '0']);
$ee = $client->netSalary('ee', 30000, ['funded_pension' => '0', 'pension_age' => false]);
$pl = $client->employerCost('pl', 120000, ['accident_rate_pct' => 1.67, 'commuter' => false]);
$pl->verification; // 'official-example', 'law-text' or nullAPI calls accept a country by its short code (ISO 3166-1 alpha-2 in lower case, with uk for the United Kingdom; gb also works), such as nz, de or ae, as well as its English name or the older key (new-zealand, germany). Responses still carry the older key in country. The offline Tables accept the same short codes, ISO codes (NZ) and English names (New Zealand), case-insensitively, next to the keys in the coverage table.
region is required for take-home pay in us and ca, and for employer cost in us, au and ca; without it the API answers HTTP 400 missing_parameter with the valid codes. The US filing_status values are single, mfj and hoh (married and married_joint are accepted for mfj, head_of_household for hoh).
Each country's parameters for net-salary and employer-cost (for example filing_status in the US or tax_class in Germany) are listed by countries() and in the OpenAPI description. Countries marked tablesOnly have tax tables but no calculation engine yet. The calculation endpoints answer them with HTTP 400 unsupported_country.
Since API 1.10, CalculationResult::$verification says how a calculation is checked: official-example where the golden tests reproduce a worked example published by the tax authority or social security institution (Estonia, Poland), law-text where no official example is published and the tests are worked by hand from the law (Denmark), and null for the countries with their own engine. With a value, the first note says how the calculation was checked and links the official sources. ApiCountry::verification('net-salary') gives the same per country.
taxTreaties() (API 1.10) lists, for each treaty, the maximum withholding rates in the source State on dividends, interest, royalties and fees for technical services (decimals, 0.15 = 15%) with their conditions, articles and wording, the relief method of each country, signature and entry-into-force dates, MLI status and the official source. Nothing is computed.
- Offline tables need no key and no network:
Tablesreads the JSON bundled in the package. - API calls work without a key for 300 requests a day and 20 a minute per IP address (see calcbloc.com/developers#limits), on every endpoint.
- Add a free API key for 5,000 requests a day (60 a minute). Get one instantly at calcbloc.com/developers/keys (enter your email address; the key is shown once).
- Set it with
new Client(apiKey: 'cb_...'), or in theCALCBLOC_API_KEYenvironment variable, whichnew Client()reads when no key is passed (pass''to call without a key even when the variable is set). The client sends it in theX-API-Keyheader. Keys in the URL are refused.
| Access | Per day | Per minute |
|---|---|---|
| No key (per IP address) | 300 | 20 |
| Free key | 5,000 | 60 |
When the free allowance without a key is used up, the client throws a RateLimitException whose message says so (with the daily limit from the API's X-RateLimit-Limit header once a response has carried it), links to the keys page and shows how to set the key. With a key, the message gives that key's limit.
Days reset at midnight UTC. $client->lastRateLimit() returns the X-RateLimit-* values of the last response (limit is the daily limit). Current limits and commercial terms are on the developer page. Responses can be cached for a day, so cache on your side, or use the offline tables when the bundled year is the one you need.
Every API error is a CalcBloc\CalcBlocException built from the API's error body {"error": {"code", "message", "docs"}}:
use CalcBloc\CalcBlocException;
use CalcBloc\RateLimitException;
try {
$client->netSalary('norway', 700000);
} catch (RateLimitException $e) {
sleep($e->getRetryAfter() ?? 60); // HTTP 429 rate_limited; without a key the message asks for a free key
} catch (CalcBlocException $e) {
$e->getErrorCode(); // "unsupported_country" (Norway has tax tables only), "invalid_key", "invalid_parameter", ...
$e->getStatus(); // 400 (also getCode())
$e->getDocs(); // link to the relevant documentation
}A request that gets no HTTP response at all (DNS, timeout, TLS) throws CalcBloc\TransportException (transport_error).
The client uses ext-curl when it is loaded and PHP streams otherwise. To use your own HTTP stack, implement CalcBloc\Http\Transport (one get() method), or wrap any PSR-18 client:
use CalcBloc\Client;
use CalcBloc\Http\Psr18Transport;
$client = new Client($apiKey, transport: new Psr18Transport($psr18Client, $psr17RequestFactory));Bundled tables (Tables) |
API (Client) |
|
|---|---|---|
| Network, key | None | HTTPS; 300 requests a day and 20 a minute per IP address without a key (see calcbloc.com/developers#limits), 5,000 a day with a free key |
| Content | Tax tables as of this release | Always the current published tables |
| Calculations | taxFromBands() on one set of brackets |
Full net salary, employer cost and comparison engines |
| Limits | None | See free use and API keys |
Tax figures change: budgets, mid-year changes and corrections. The tables are dated (lastVerified, and retrieved_at on every row). Update the package regularly, or call the API when you need the latest figures.
Generated from data/manifest.json by composer coverage-table. "Regions" counts the regional tables bundled (US states and DC, Canadian provinces and territories, UK nations, Spanish autonomous communities, Swiss cantons and so on).
| Country | Code | Currency | Tax years | Regions | Last checked | API endpoints |
|---|---|---|---|---|---|---|
| Albania | albania |
ALL | 2026 | - | 2026-11-26 | tax tables |
| Algeria | algeria |
DZD | 2026 | - | 2026-11-26 | tax tables |
| American Samoa | american-samoa |
USD | 2026 | - | 2026-11-27 | tax tables |
| Andorra | andorra |
EUR | 2026 | - | 2026-11-26 | tax tables |
| Angola | angola |
AOA | 2026 | - | 2026-11-27 | tax tables |
| Anguilla | anguilla |
XCD | 2026 | - | 2026-11-27 | tax tables |
| Antigua and Barbuda | antigua-and-barbuda |
XCD | 2026 | - | 2026-11-26 | tax tables |
| Argentina | argentina |
ARS | 2026 | - | 2026-11-26 | tax tables |
| Armenia | armenia |
AMD | 2026 | - | 2026-11-27 | tax tables |
| Aruba | aruba |
AWG | 2026 | - | 2026-11-27 | tax tables |
| Australia | australia |
AUD | 2026-27 | - | 2026-11-27 | tax tables, net-salary, employer-cost, compare |
| Austria | austria |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Azerbaijan | azerbaijan |
AZN | 2026 | - | 2026-11-26 | tax tables |
| Bahamas | bahamas |
BSD | 2026 | - | 2026-11-26 | tax tables |
| Bahrain | bahrain |
BHD | 2026 | - | 2026-11-22 | tax tables |
| Bangladesh | bangladesh |
BDT | 2026-27 | - | 2026-11-22 | tax tables |
| Barbados | barbados |
BBD | 2026 | - | 2026-11-26 | tax tables |
| Belarus | belarus |
BYN | 2026 | - | 2026-11-26 | tax tables |
| Belize | belize |
BZD | 2026 | - | 2026-11-26 | tax tables |
| Benin | benin |
XOF | 2026 | - | 2026-11-26 | tax tables |
| Bermuda | bermuda |
BMD | 2026-27 | - | 2026-11-26 | tax tables |
| Bhutan | bhutan |
BTN | 2026 | - | 2026-11-27 | tax tables |
| Bolivia | bolivia |
BOB | 2026 | - | 2026-11-26 | tax tables |
| Bosnia and Herzegovina | bosnia-and-herzegovina |
BAM | 2026 | - | 2026-11-26 | tax tables |
| Botswana | botswana |
BWP | 2026-27 | - | 2026-11-26 | tax tables |
| Brazil | brazil |
BRL | 2026 | - | 2026-11-27 | tax tables |
| British Virgin Islands | british-virgin-islands |
USD | 2026 | - | 2026-11-26 | tax tables |
| Brunei | brunei |
BND | 2026 | - | 2026-11-26 | tax tables |
| Bulgaria | bulgaria |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Burkina Faso | burkina-faso |
XOF | 2026 | - | 2026-11-26 | tax tables |
| Burundi | burundi |
BIF | 2026-27 | - | 2026-11-27 | tax tables |
| Cabo Verde | cabo-verde |
CVE | 2026 | - | 2026-11-26 | tax tables |
| Cambodia | cambodia |
KHR | 2026 | - | 2026-11-26 | tax tables |
| Cameroon | cameroon |
XAF | 2026 | - | 2026-11-26 | tax tables |
| Canada | canada |
CAD | 2026 | 13 | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Caribbean Netherlands | caribbean-netherlands |
USD | 2026 | - | 2026-11-27 | tax tables |
| Cayman Islands | cayman-islands |
KYD | 2026 | - | 2026-11-26 | tax tables |
| Central African Republic | central-african-republic |
XAF | 2026 | - | 2026-11-27 | tax tables |
| Chad | chad |
XAF | 2026 | - | 2026-11-26 | tax tables |
| Chile | chile |
CLP | 2026 | - | 2026-11-22 | tax tables |
| China | china |
CNY | 2026 | - | 2026-11-22 | tax tables |
| Colombia | colombia |
COP | 2026 | - | 2026-11-22 | tax tables |
| Comoros | comoros |
KMF | 2026 | - | 2026-11-27 | tax tables |
| Cook Islands | cook-islands |
NZD | 2026 | - | 2026-11-27 | tax tables |
| Costa Rica | costa-rica |
CRC | 2026 | - | 2026-11-22 | tax tables |
| Croatia | croatia |
EUR | 2026 | 21 | 2026-11-22 | tax tables |
| Cuba | cuba |
CUP | 2026 | - | 2026-11-26 | tax tables |
| Curaçao | curacao |
XCG | 2026 | - | 2026-11-27 | tax tables |
| Cyprus | cyprus |
EUR | 2026 | - | 2026-11-22 | tax tables |
| Czechia | czechia |
CZK | 2026 | - | 2026-11-22 | tax tables |
| Côte d’Ivoire | cote-divoire |
XOF | 2026 | - | 2026-11-26 | tax tables |
| DR Congo | dr-congo |
CDF | 2026 | - | 2026-11-26 | tax tables |
| Denmark | denmark |
DKK | 2026 | 5 | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Djibouti | djibouti |
DJF | 2026 | - | 2026-11-26 | tax tables |
| Dominica | dominica |
XCD | 2026 | - | 2026-11-26 | tax tables |
| Dominican Republic | dominican-republic |
DOP | 2026 | - | 2026-11-26 | tax tables |
| Ecuador | ecuador |
USD | 2026 | - | 2026-11-26 | tax tables |
| Egypt | egypt |
EGP | 2026 | - | 2026-11-26 | tax tables |
| El Salvador | el-salvador |
USD | 2026 | - | 2026-11-26 | tax tables |
| Estonia | estonia |
EUR | 2026 | - | 2026-11-21 | tax tables, net-salary, employer-cost, compare |
| Eswatini | eswatini |
SZL | 2026-27 | - | 2026-11-26 | tax tables |
| Ethiopia | ethiopia |
ETB | 2026-27 | - | 2026-11-26 | tax tables |
| Falkland Islands | falkland-islands |
FKP | 2026 | - | 2026-11-27 | tax tables |
| Faroe Islands | faroe-islands |
DKK | 2026 | - | 2026-11-27 | tax tables |
| Fiji | fiji |
FJD | 2026 | - | 2026-11-26 | tax tables |
| Finland | finland |
EUR | 2026 | 19 | 2026-11-22 | tax tables |
| France | france |
EUR | 2026 | - | 2026-11-27 | tax tables, net-salary, compare |
| French Polynesia | french-polynesia |
XPF | 2026 | - | 2026-11-27 | tax tables |
| French Southern Territories | french-southern-territories |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Gabon | gabon |
XAF | 2026 | - | 2026-11-26 | tax tables |
| Georgia | georgia |
GEL | 2026 | - | 2026-11-26 | tax tables |
| Germany | germany |
EUR | 2026 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Ghana | ghana |
GHS | 2026 | - | 2026-11-26 | tax tables |
| Gibraltar | gibraltar |
GIP | 2026-27 | - | 2026-11-27 | tax tables |
| Greece | greece |
EUR | 2026 | - | 2026-11-22 | tax tables |
| Greenland | greenland |
DKK | 2026 | - | 2026-11-27 | tax tables |
| Grenada | grenada |
XCD | 2026 | - | 2026-11-27 | tax tables |
| Guam | guam |
USD | 2026 | - | 2026-11-27 | tax tables |
| Guatemala | guatemala |
GTQ | 2026 | - | 2026-11-26 | tax tables |
| Guernsey | guernsey |
GBP | 2026 | - | 2026-11-27 | tax tables |
| Guinea | guinea |
GNF | 2026 | - | 2026-11-27 | tax tables |
| Guinea-Bissau | guinea-bissau |
XOF | 2026 | - | 2026-11-27 | tax tables |
| Guyana | guyana |
GYD | 2026 | - | 2026-11-26 | tax tables |
| Haiti | haiti |
HTG | 2026-27 | - | 2026-11-26 | tax tables |
| Honduras | honduras |
HNL | 2026 | - | 2026-11-26 | tax tables |
| Hong Kong | hong-kong |
HKD | 2026-27 | - | 2026-11-26 | tax tables |
| Hungary | hungary |
HUF | 2026 | - | 2026-11-22 | tax tables |
| Iceland | iceland |
ISK | 2026 | - | 2026-11-22 | tax tables |
| India | india |
INR | 2026-27 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Indonesia | indonesia |
IDR | 2026 | - | 2026-11-22 | tax tables |
| Ireland | ireland |
EUR | 2026 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Isle of Man | isle-of-man |
GBP | 2026-27 | - | 2026-11-27 | tax tables |
| Israel | israel |
ILS | 2026 | - | 2026-11-22 | tax tables |
| Italy | italy |
EUR | 2026 | 21 | 2026-11-22 | tax tables |
| Jamaica | jamaica |
JMD | 2026 | - | 2026-11-26 | tax tables |
| Japan | japan |
JPY | 2026 | - | 2026-11-27 | tax tables |
| Jersey | jersey |
GBP | 2026 | - | 2026-11-26 | tax tables |
| Jordan | jordan |
JOD | 2026 | - | 2026-11-26 | tax tables |
| Kazakhstan | kazakhstan |
KZT | 2026 | - | 2026-11-26 | tax tables |
| Kenya | kenya |
KES | 2026 | - | 2026-11-26 | tax tables |
| Kiribati | kiribati |
AUD | 2026 | - | 2026-11-26 | tax tables |
| Kosovo | kosovo |
EUR | 2026 | - | 2026-11-26 | tax tables |
| Kuwait | kuwait |
KWD | 2026 | - | 2026-11-22 | tax tables |
| Kyrgyzstan | kyrgyzstan |
KGS | 2026 | - | 2026-11-26 | tax tables |
| Laos | laos |
LAK | 2026 | - | 2026-11-27 | tax tables |
| Latvia | latvia |
EUR | 2026 | - | 2026-11-21 | tax tables |
| Lesotho | lesotho |
LSL | 2026-27 | - | 2026-11-26 | tax tables |
| Liberia | liberia |
LRD | 2026 | - | 2026-11-27 | tax tables |
| Liechtenstein | liechtenstein |
CHF | 2026 | - | 2026-11-22 | tax tables |
| Lithuania | lithuania |
EUR | 2026 | - | 2026-11-21 | tax tables |
| Luxembourg | luxembourg |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Macao | macao |
MOP | 2026 | - | 2026-11-26 | tax tables |
| Madagascar | madagascar |
MGA | 2026 | - | 2026-11-26 | tax tables |
| Malawi | malawi |
MWK | 2026-27 | - | 2026-11-26 | tax tables |
| Malaysia | malaysia |
MYR | 2026 | - | 2026-11-22 | tax tables |
| Maldives | maldives |
MVR | 2026 | - | 2026-11-26 | tax tables |
| Mali | mali |
XOF | 2026 | - | 2026-11-26 | tax tables |
| Malta | malta |
EUR | 2026 | - | 2026-11-22 | tax tables |
| Marshall Islands | marshall-islands |
USD | 2026-27 | - | 2026-11-26 | tax tables |
| Mauritania | mauritania |
MRU | 2026 | - | 2026-11-26 | tax tables |
| Mauritius | mauritius |
MUR | 2026-27 | - | 2026-11-26 | tax tables |
| Mexico | mexico |
MXN | 2026 | - | 2026-11-21 | tax tables |
| Micronesia | micronesia |
USD | 2026 | - | 2026-11-27 | tax tables |
| Moldova | moldova |
MDL | 2026 | - | 2026-11-26 | tax tables |
| Monaco | monaco |
EUR | 2026 | - | 2026-11-26 | tax tables |
| Montenegro | montenegro |
EUR | 2026 | - | 2026-11-26 | tax tables |
| Montserrat | montserrat |
XCD | 2026 | - | 2026-11-27 | tax tables |
| Morocco | morocco |
MAD | 2026 | - | 2026-11-26 | tax tables |
| Mozambique | mozambique |
MZN | 2026 | - | 2026-11-27 | tax tables |
| Myanmar | myanmar |
MMK | 2026-27 | - | 2026-11-26 | tax tables |
| Namibia | namibia |
NAD | 2026-27 | - | 2026-11-26 | tax tables |
| Nauru | nauru |
AUD | 2026-27 | - | 2026-11-27 | tax tables |
| Nepal | nepal |
NPR | 2083-84 | - | 2026-11-26 | tax tables |
| Netherlands | netherlands |
EUR | 2026 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| New Caledonia | new-caledonia |
XPF | 2026 | - | 2026-11-27 | tax tables |
| New Zealand | new-zealand |
NZD | 2026-27 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Nicaragua | nicaragua |
NIO | 2026 | - | 2026-11-27 | tax tables |
| Niger | niger |
XOF | 2026 | - | 2026-11-26 | tax tables |
| Nigeria | nigeria |
NGN | 2026 | - | 2026-11-26 | tax tables |
| Niue | niue |
NZD | 2026-27 | - | 2026-11-27 | tax tables |
| North Macedonia | north-macedonia |
MKD | 2026 | - | 2026-11-26 | tax tables |
| Northern Mariana Islands | northern-mariana-islands |
USD | 2026 | - | 2026-11-27 | tax tables |
| Norway | norway |
NOK | 2026 | - | 2026-11-22 | tax tables |
| Oman | oman |
OMR | 2026 | - | 2026-11-22 | tax tables |
| Pakistan | pakistan |
PKR | 2026-27 | - | 2026-11-22 | tax tables |
| Palau | palau |
USD | 2026 | - | 2026-11-27 | tax tables |
| Palestine | palestine |
ILS | 2026 | - | 2026-11-27 | tax tables |
| Panama | panama |
USD | 2026 | - | 2026-11-26 | tax tables |
| Papua New Guinea | papua-new-guinea |
PGK | 2026 | - | 2026-11-26 | tax tables |
| Paraguay | paraguay |
PYG | 2026 | - | 2026-11-26 | tax tables |
| Peru | peru |
PEN | 2026 | - | 2026-11-26 | tax tables |
| Philippines | philippines |
PHP | 2026 | - | 2026-11-26 | tax tables |
| Pitcairn Islands | pitcairn-islands |
NZD | 2026 | - | 2026-11-27 | tax tables |
| Poland | poland |
PLN | 2026 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Portugal | portugal |
EUR | 2026 | 2 | 2026-11-27 | tax tables |
| Puerto Rico | puerto-rico |
USD | 2026 | - | 2026-11-27 | tax tables |
| Qatar | qatar |
QAR | 2026 | - | 2026-11-22 | tax tables |
| Republic of the Congo | congo |
XAF | 2026 | - | 2026-11-26 | tax tables |
| Romania | romania |
RON | 2026 | - | 2026-11-22 | tax tables |
| Russia | russia |
RUB | 2026 | - | 2026-11-26 | tax tables |
| Rwanda | rwanda |
RWF | 2026 | - | 2026-11-26 | tax tables |
| Saint Helena | saint-helena |
SHP | 2026-27 | - | 2026-11-27 | tax tables |
| Saint Kitts and Nevis | saint-kitts-and-nevis |
XCD | 2026 | - | 2026-11-26 | tax tables |
| Saint Lucia | saint-lucia |
XCD | 2026 | - | 2026-11-26 | tax tables |
| Saint Pierre and Miquelon | saint-pierre-and-miquelon |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Saint Vincent and the Grenadines | saint-vincent-and-the-grenadines |
XCD | 2026 | - | 2026-11-26 | tax tables |
| Saint-Barthélemy | saint-barthelemy |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Saint-Martin | saint-martin |
EUR | 2026 | - | 2026-11-27 | tax tables |
| Samoa | samoa |
WST | 2026 | - | 2026-11-26 | tax tables |
| San Marino | san-marino |
EUR | 2026 | - | 2026-11-26 | tax tables |
| Saudi Arabia | saudi-arabia |
SAR | 2026 | - | 2026-11-22 | tax tables |
| Senegal | senegal |
XOF | 2026 | - | 2026-11-26 | tax tables |
| Serbia | serbia |
RSD | 2026 | - | 2026-11-22 | tax tables |
| Seychelles | seychelles |
SCR | 2026 | - | 2026-11-26 | tax tables |
| Sierra Leone | sierra-leone |
SLE | 2026 | - | 2026-11-26 | tax tables |
| Singapore | singapore |
SGD | 2026 | - | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Sint Maarten | sint-maarten |
XCG | 2026 | - | 2026-11-27 | tax tables |
| Slovakia | slovakia |
EUR | 2026 | - | 2026-11-22 | tax tables |
| Slovenia | slovenia |
EUR | 2026 | - | 2026-11-22 | tax tables |
| Solomon Islands | solomon-islands |
SBD | 2026 | - | 2026-11-26 | tax tables |
| Somalia | somalia |
SOS | 2026 | - | 2026-11-27 | tax tables |
| South Africa | south-africa |
ZAR | 2026-27 | - | 2026-11-22 | tax tables |
| South Korea | south-korea |
KRW | 2026 | - | 2026-11-21 | tax tables |
| South Sudan | south-sudan |
SSP | 2026-27 | - | 2026-11-27 | tax tables |
| Spain | spain |
EUR | 2026 | 21 | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Sri Lanka | sri-lanka |
LKR | 2026-27 | - | 2026-11-26 | tax tables |
| Sudan | sudan |
SDG | 2026 | - | 2026-11-27 | tax tables |
| Suriname | suriname |
SRD | 2026 | - | 2026-11-26 | tax tables |
| Sweden | sweden |
SEK | 2026 | 21 | 2026-11-22 | tax tables |
| Switzerland | switzerland |
CHF | 2026 | 26 | 2026-11-22 | tax tables |
| Taiwan | taiwan |
TWD | 2026 | - | 2026-11-26 | tax tables |
| Tajikistan | tajikistan |
TJS | 2026 | - | 2026-11-26 | tax tables |
| Tanzania | tanzania |
TZS | 2026 | - | 2026-11-26 | tax tables |
| Thailand | thailand |
THB | 2026 | - | 2026-11-22 | tax tables |
| The Gambia | gambia |
GMD | 2026 | - | 2026-11-27 | tax tables |
| Timor-Leste | timor-leste |
USD | 2026 | - | 2026-11-27 | tax tables |
| Togo | togo |
XOF | 2026 | - | 2026-11-26 | tax tables |
| Tonga | tonga |
TOP | 2026-27 | - | 2026-11-26 | tax tables |
| Trinidad and Tobago | trinidad-and-tobago |
TTD | 2026 | - | 2026-11-26 | tax tables |
| Tunisia | tunisia |
TND | 2026 | - | 2026-11-26 | tax tables |
| Turkmenistan | turkmenistan |
TMT | 2026 | - | 2026-11-27 | tax tables |
| Turks and Caicos Islands | turks-and-caicos-islands |
USD | 2026 | - | 2026-11-27 | tax tables |
| Tuvalu | tuvalu |
AUD | 2026 | - | 2026-11-27 | tax tables |
| Türkiye | turkey |
TRY | 2026 | - | 2026-11-27 | tax tables |
| US Virgin Islands | us-virgin-islands |
USD | 2026 | - | 2026-11-27 | tax tables |
| Uganda | uganda |
UGX | 2026-27 | - | 2026-11-26 | tax tables |
| Ukraine | ukraine |
UAH | 2026 | - | 2026-11-22 | tax tables |
| United Arab Emirates | uae |
AED | 2026 | - | 2026-11-21 | tax tables |
| United Kingdom | uk |
GBP | 2026-27, 2025-26 | 2 | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| United States | us |
USD | 2026 | 51 | 2026-11-22 | tax tables, net-salary, employer-cost, compare |
| Uruguay | uruguay |
UYU | 2026 | - | 2026-11-26 | tax tables |
| Uzbekistan | uzbekistan |
UZS | 2026 | - | 2026-11-26 | tax tables |
| Vanuatu | vanuatu |
VUV | 2026 | - | 2026-11-26 | tax tables |
| Vietnam | vietnam |
VND | 2026 | - | 2026-11-22 | tax tables |
| Wallis and Futuna | wallis-and-futuna |
XPF | 2026 | - | 2026-11-27 | tax tables |
| Zambia | zambia |
ZMW | 2026 | - | 2026-11-26 | tax tables |
| Zimbabwe | zimbabwe |
ZWG | 2026 | - | 2026-11-26 | tax tables |
Countries marked "bundled only" are included in the data ahead of their pages on calcbloc.com. Client::countries() lists what the API serves today.
The test suite (PHPUnit, no network) checks:
- Official worked examples. Tax computed with
taxFromBands()from the bundled tables matches figures that tax authorities publish themselves:- Ireland, Universal Social Charge 2026: all four examples on Revenue's Calculating your USC page (for example, EUR 50,000 gives EUR 1,032.82).
- Singapore, resident income tax: every "Gross Tax Payable" amount in IRAS's Individual Income Tax rates table, up to SGD 199,150 on the first SGD 1,000,000.
- United States, federal income tax 2026: the tentative amounts in the IRS Publication 15-T (2026) percentage method tables, for single, married filing jointly and head of household filers.
- New Zealand, income tax 2026-27: the PAYE formulas in section 5.2 of Inland Revenue's payroll calculations and business rules specification.
- Schema. Every row of every bundled table has a
source_urland aretrieved_atdate. Sections are well formed, and bands are ascending, with decimal rates. - Integrity. The bundled files leave out the flat
rowsarray to keep the package small (about 2 MB for every country, year and region), and the loader rebuilds it. The checksums intests/data-integrity.jsonprove that the rebuilt tables are identical to the source files. - Client. Requests, headers, response parsing and every error path, against a fake transport.
composer install
composer test # PHPUnit
composer analyse # PHPStan, level 8The tables come from the calcbloc-data repository. With it checked out next to this one:
composer sync-tables # copies ../calcbloc-data/tables into data/
php bin/sync-tables.php --from /path/to/tables # or CALCBLOC_TABLES_DIR=/path/to/tables
php bin/coverage-table.php --countries countries.json --write README.md # refresh the coverage tableThe script reads the country list from manifest.json, checks every row for a source URL and date, and rewrites tests/data-integrity.json.
- Copyright: © 2026 itmarkerz technologies (code and data). CalcBloc is a product of itmarkerz technologies.
- Code: MIT.
- Data (
data/): CC BY 4.0 (full text indata/LICENSE). When you show or publish figures from it, credit "Data by CalcBloc (calcbloc.com/data)" with a link to calcbloc.com/data. - The canonical, most recent version of each table is its country page on calcbloc.com.
- API: free use requires a visible "Data by CalcBloc" link wherever the figures are shown. Every response includes an
attributionblock with the wording and the page to link to. See the API terms.
The tables are reference data compiled from official sources. They are not tax, legal or financial advice. Check the cited source before relying on a figure.
- API documentation and free keys: calcbloc.com/developers
- Data downloads and changelog: calcbloc.com/data
- OpenAPI 3.1 description: calcbloc.com/api/openapi.json
- Other packages: calcbloc-python, calcbloc-js, calcbloc-data
CalcBloc is built and maintained by itmarkerz technologies, a web and mobile app development company in Kerala, India. The open data behind this package is at calcbloc.com/data and the API documentation at calcbloc.com/developers. The other CalcBloc packages (Python, JavaScript, R, Google Sheets, the MCP server and the dataset itself) are in the itmarkerz GitHub organization.