Skip to content

About

Python client and offline tax tables for CalcBloc: 2026 income tax brackets and social security rates for 29 countries, with official sources.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

calcbloc: income tax brackets, social security rates and tax tables for Python

PyPI Python versions Tests Code licence: MIT Data licence: CC BY 4.0

Official 2026 tax tables in Python: income tax brackets, social security and payroll contribution rates, thresholds and allowances for the US, UK, Canada, Australia, much of Europe and more. Every figure carries its official source and the date it was checked.

CalcBloc is a product of itmarkerz technologies.

calcbloc gives you two ways in:

  • Offline tables. The CalcBloc open dataset (calcbloc.com/data) ships inside the package. Load a country's tax tables with no network, no API key and no rate limit.
  • A typed API client. calcbloc.Client wraps the CalcBloc tax tables API: the latest tables (JSON or CSV), plus take-home pay, employer cost and two-country salary comparisons computed by the same engines as the calculators on calcbloc.com.

Pure Python, Python 3.9+, no runtime dependencies (the client uses urllib from the standard library), fully typed (py.typed).

Install

pip install calcbloc

Not yet published. The package is not on PyPI yet. Until it is, install from a clone: pip install . in the repository root.

Three examples

All output below is real, produced from the data bundled with this version.

1. US federal income tax brackets for 2026

from calcbloc import tables, tax_from_bands

us = tables.load("us", "2026")
single = tables.section(us, "federal-income-tax-single")
print(single["title"], "|", single["basis"])
for band in single["rows"]:
    span = f"${band['from']:,} to ${band['to']:,}" if band["to"] is not None else f"over ${band['from']:,}"
    print(f"{band['rate']:>4.0%}  {span}")

print(tax_from_bands(single, 75_000))   # federal income tax on $75,000 of taxable income
print(single["source"]["url"])
Federal income tax brackets: Single | Taxable income, per year
 10%  $0 to $12,400
 12%  $12,400 to $50,400
 22%  $50,400 to $105,700
 24%  $105,700 to $201,775
 32%  $201,775 to $256,225
 35%  $256,225 to $640,600
 37%  over $640,600
11212.0
https://www.irs.gov/pub/irs-drop/rp-25-32.pdf

The result matches the IRS rate schedule in Rev. Proc. 2025-32: $5,800 plus 22% of the excess over $50,400.

2. Ireland's Universal Social Charge, band by band

from calcbloc import band_breakdown, tables, tax_from_bands

usc = tables.section(tables.load("ireland", "2026"), "usc")
for band in band_breakdown(usc, 50_000):
    print(f"{band.rate:.1%} on EUR {band.amount:,.2f} = EUR {band.tax:,.2f}")
print(round(tax_from_bands(usc, 50_000), 2))
0.5% on EUR 12,012.00 = EUR 60.06
2.0% on EUR 16,688.00 = EUR 333.76
3.0% on EUR 21,300.00 = EUR 639.00
8.0% on EUR 0.00 = EUR 0.00
1032.82

This is Revenue's own worked example (Sadhbh, EUR 50,000) from Calculating your USC, to the cent.

3. German social security rates, with their sources

Every table also has a flat rows list (the same rows as the CSV download), each with its own tax year, effective dates, official source URL and retrieval date:

from calcbloc import tables

de = tables.load("germany")
for row in de["rows"]:
    if row["group"] == "employee" and row["unit"] == "rate":
        print(f"{row['rate']:6.2%}  {row['section']}: {row['label']}")

pension = next(r for r in de["rows"] if r["section_id"] == "pension-insurance")
print(pension["source_url"], pension["retrieved_at"])
18.60%  Pension insurance (Rentenversicherung): Contribution rate (employee and employer each pay half)
 2.60%  Unemployment insurance (Arbeitslosenversicherung): Contribution rate (employee and employer each pay half)
14.60%  Health insurance (Krankenversicherung): General contribution rate (employee and employer each pay half)
 2.90%  Health insurance (Krankenversicherung): Average additional contribution rate (Zusatzbeitrag; each fund sets its own, shared equally)
 3.60%  Long-term care insurance (Pflegeversicherung): Contribution rate (employee and employer each pay half; see Saxony below)
 0.60%  Long-term care insurance (Pflegeversicherung): Surcharge for childless members (employee only)
 0.25%  Long-term care insurance (Pflegeversicherung): Reduction per child (employee share)
 1.00%  Long-term care insurance (Pflegeversicherung): Saxony: extra employee share (employer pays correspondingly less)
https://www.gesetze-im-internet.de/rvbeitrsbek_2026/BJNR1230A0025.html 2026-10-17

Offline tables

from calcbloc import tables

tables.list_countries()              # ['us', 'uk', 'australia', ...] from the bundled manifest
tables.years("uk")                   # ['2026-27', '2025-26'], current year first
tables.regions("canada")             # [{'code': 'ab', 'name': 'Alberta', 'slug': 'alberta'}, ...]
tables.load("uk")                    # current tax year
tables.load("nz")                    # short code, ISO code ("NZ") or name ("New Zealand") work too
tables.load("uk", "2025-26", region="scotland")
tables.load("us", 2026, region="california")   # region by code or slug
tables.manifest()                    # countries, years, regions, page and API URLs, sources
tables.data_date()                   # when the bundled data was generated

A table has the same shape as the API's /api/v1/tax-tables/{country}/{year} response:

  • sections: titled groups such as income tax bands, employee and employer contributions. kind is "bands" (rows with from, to, rate) or "values" (rows with label, value, unit). Each section has a source (title, URL, retrieval date) and usually a basis saying what the figures apply to.
  • rows: every band and value as a flat record with source_url, retrieved_at, effective_from, effective_to and status (verified, under_review or not_applicable).
  • sources, effectiveFrom, effectiveTo, status, underReview, pageUrl and attribution.

Rates are decimals (0.2 is 20%). Money is in the country's currency, per year unless a label says otherwise. A regional table (US state, Canadian province, Scotland, a Swiss canton...) holds the regional figures only. Unknown countries, years or regions raise calcbloc.TableNotFoundError, with the same code the API uses (unsupported_country, unsupported_year, unsupported_region).

Applying brackets: tax_from_bands

tax_from_bands(section, income, above=0) applies a "bands" section progressively: each slice of income is taxed at the rate of its band. band_breakdown() returns the slices, and marginal_rate() returns the rate of the band an amount falls in. Use above= to stack one income on another (UK dividends sit on top of other taxable income).

These helpers are a convenience, not tax advice. They apply the bands to the amount you pass and nothing else: no allowances, credits, tapers, surcharges, filing rules or the authority's rounding. Check the section's basis (for example "Taxable income above the Personal Allowance, per year") to know which amount to pass. For a complete take-home pay figure, use the API's net-salary endpoint.

The API client

from calcbloc import Client

client = Client()                                   # no key needed: 300 requests a day, 20 a minute
table = client.tax_tables("ca", "latest", region="on")   # Canada; "canada" works too
csv_text = client.tax_tables("uk", "2026-27", format="csv")
countries = client.countries()                      # endpoints and parameters per country

client = Client(api_key="your-key")                 # free key: 5,000 a day (or set CALCBLOC_API_KEY)
pay = client.net_salary("uk", 45_000, region="scotland", pension_pct=5)
us_pay = client.net_salary("us", 120_000, region="ca", filing_status="mfj")
nz_pay = client.net_salary("nz", 80_000)            # New Zealand; "new-zealand" works too
cost = client.employer_cost("us", 85_000, region="tx", health_per_month=600)
both = client.compare("uk", "ie", 60_000, currency="GBP")

# API 1.8: bonus withholding and equity compensation
bonus = client.supplemental_withholding("us", 150_000, 20_000, type="bonus", region="ca")
emi = client.equity_tax("uk", "emi", 1_000, "2024-01-15", "2026-03-01", fmv_event=12, exercise_price=2)

# API 1.9: cross-border equity, tax facts, tax calendar, tariffs and import duty
split = client.cross_border_equity("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")
calendar = client.tax_calendar("au")                # without a country: every country
lines = client.tariffs("gb", "0901", origin="in")   # UK, EU (or a member state), US, India
deals = client.trade_agreements("gb", partner="in")
duty = client.import_duty("gb", "in", "0901210000", 1_000, proof_of_origin=True)

# API 1.10: tax treaties; take-home pay and employer cost for Denmark, Estonia and Poland
treaties = client.tax_treaties("in", partner="us")  # treaties are stored for India
dk_pay = client.net_salary("dk", 600_000, municipality="average", church=False, atp_hours="0")
ee_pay = client.net_salary("ee", 30_000, funded_pension="0", pension_age=False)
pl_cost = client.employer_cost("pl", 120_000, accident_rate_pct=1.67, commuter=False)
pl_cost["verification"]                             # "official-example", "law-text" or None

Since API 1.10, take-home pay and employer cost responses carry verification: "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 None for the countries with their own engine. With a value, the first note says how the calculation was checked and links the official sources; client.countries() gives the same field on each net-salary and employer-cost entry.

client.tax_treaties() (API 1.10) returns a TaxTreatiesResponse: 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.

The API 1.8 and 1.9 methods return the API's JSON as a dict (every field documented at calcbloc.com/developers, plus the attribution block). Import duty results are estimates, not customs rulings.

In API calls, countries are given by their short code: ISO 3166-1 alpha-2 in lower case, with the UK as uk (gb also works), such as nz, de or ae. English names and the older keys (new-zealand, germany) still work, and responses carry the older key in country. The offline calcbloc.tables loader accepts the same identifiers.

Country-specific parameters are passed as keyword arguments by their API names (filing_status, pension_pct, student_loan...); client.countries() and the OpenAPI file list them, with allowed values and defaults. Unknown parameters are refused by the API, so typos never pass silently. The US filing_status values are single, mfj and hoh (common spellings such as married are accepted as mfj). region is required for take-home pay in the US and Canada and for employer cost in the US, Australia and Canada; without it the API answers 400 missing_parameter with the valid codes.

Not supported yet: cross-border salary withholding (multi-country payroll), and the double-tax relief amount (client.tax_treaties() lists the treaty rates without computing anything).

Errors raise typed exceptions built from the API's {"error": {"code", "message", "docs"}} body:

from calcbloc import AuthenticationError, CalcBlocError, Client, RateLimitError

try:
    Client(api_key="your-key").net_salary("norway", 600_000)
except RateLimitError as e:
    print("retry in", e.retry_after, "seconds")
except AuthenticationError as e:          # invalid_key (401): the key is wrong or revoked
    print(e.code)
except CalcBlocError as e:
    print(e.status, e.code, e.message)    # 400 unsupported_country: Norway has tax tables only

Countries marked tables_only in client.countries() have tax tables but no calculation engine yet; the calculation endpoints answer them with 400 unsupported_country. client.last_rate_limit holds the X-RateLimit-* headers of the last response. Pass transport= to Client to plug in your own HTTP layer (proxy, retries, caching or tests).

Free use and API keys

  • Offline tables need no key and no network. calcbloc.tables and tax_from_bands read the data 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 Client(api_key="cb_..."), or in the CALCBLOC_API_KEY environment variable, which Client() reads by default. The client sends it in the X-API-Key header; keys in the URL are refused by the API because URLs end up in logs.
Access Per day Per minute
No key (per IP address) 300 20
Free key 5,000 60

Every response carries X-RateLimit-Limit (the daily limit) and X-RateLimit-Remaining. When the free allowance without a key is used up, the client raises RateLimitError with a message that says so (quoting the daily limit the API last reported), links to the keys page and shows how to set the key. With a key, the message gives that key's limit. For higher volumes or use without attribution, see calcbloc.com/developers.

Offline or API?

Offline tables API
Network, key, limits None HTTPS; 300 requests a day and 20 a minute per IP address without a key, 5,000 a day with a free key
Tax tables Snapshot dated tables.data_date() Always the latest published figures
CSV download No (JSON) format="csv"
Take-home pay, employer cost, compare No (only tax_from_bands on single sections) Yes

Upgrade the package to refresh the bundled snapshot, or call the API when you need today's figures.

Data licence and attribution

Copyright (c) 2026 itmarkerz technologies. CalcBloc is a product of itmarkerz technologies.

  • Code: MIT licence (see LICENSE).

  • Data (the bundled tables and everything the API returns): CC BY 4.0 (see DATA_LICENSE.md). Show this credit, with a link, wherever you display the figures:

    Data by CalcBloc (calcbloc.com/data)

    The canonical, most recent version of each table is its country page on calcbloc.com.

Each table carries an attribution block and a pageUrl for the matching tax tables page on calcbloc.com. API use is also covered by the API terms.

Country coverage

Bundled data generated 2026-11-27: 217 countries, 422 tables (204 of them regional). This table is generated from manifest.json by scripts/sync_tables.py.

Country Code Current tax year Years bundled Regional tables Last checked Tax tables page
United States us 2026 2026 51 2026-11-22 United States tax tables
United Kingdom uk 2026-27 2026-27, 2025-26 2 2026-11-22 United Kingdom tax tables
Australia australia 2026-27 2026-27 - 2026-11-27 Australia tax tables
New Zealand new-zealand 2026-27 2026-27 - 2026-11-22 New Zealand tax tables
Canada canada 2026 2026 13 2026-11-22 Canada tax tables
Ireland ireland 2026 2026 - 2026-11-22 Ireland tax tables
India india 2026-27 2026-27 - 2026-11-22 India tax tables
Germany germany 2026 2026 - 2026-11-22 Germany tax tables
Spain spain 2026 2026 21 2026-11-22 Spain tax tables
Netherlands netherlands 2026 2026 - 2026-11-22 Netherlands tax tables
France france 2026 2026 - 2026-11-27 France tax tables
Singapore singapore 2026 2026 - 2026-11-22 Singapore tax tables
United Arab Emirates uae 2026 2026 - 2026-11-21 United Arab Emirates tax tables
Italy italy 2026 2026 21 2026-11-22 Italy tax tables
Portugal portugal 2026 2026 2 2026-11-27 Portugal tax tables
Switzerland switzerland 2026 2026 26 2026-11-22 Switzerland tax tables
Denmark denmark 2026 2026 5 2026-11-22 Denmark tax tables
Sweden sweden 2026 2026 21 2026-11-22 Sweden tax tables
Austria austria 2026 2026 - 2026-11-27 Austria tax tables
Poland poland 2026 2026 - 2026-11-22 Poland tax tables
Luxembourg luxembourg 2026 2026 - 2026-11-27 Luxembourg tax tables
Czechia czechia 2026 2026 - 2026-11-22 Czechia tax tables
Norway norway 2026 2026 - 2026-11-22 Norway tax tables
Finland finland 2026 2026 19 2026-11-22 Finland tax tables
Slovenia slovenia 2026 2026 - 2026-11-22 Slovenia tax tables
Romania romania 2026 2026 - 2026-11-22 Romania tax tables
Hungary hungary 2026 2026 - 2026-11-22 Hungary tax tables
Slovakia slovakia 2026 2026 - 2026-11-22 Slovakia tax tables
Greece greece 2026 2026 - 2026-11-22 Greece tax tables
Latvia latvia 2026 2026 - 2026-11-21 Latvia tax tables
Croatia croatia 2026 2026 21 2026-11-22 Croatia tax tables
Estonia estonia 2026 2026 - 2026-11-21 Estonia tax tables
Bulgaria bulgaria 2026 2026 - 2026-11-27 Bulgaria tax tables
Lithuania lithuania 2026 2026 - 2026-11-21 Lithuania tax tables
Malta malta 2026 2026 - 2026-11-22 Malta tax tables
Cyprus cyprus 2026 2026 - 2026-11-22 Cyprus tax tables
Iceland iceland 2026 2026 - 2026-11-22 Iceland tax tables
Ukraine ukraine 2026 2026 - 2026-11-22 Ukraine tax tables
Liechtenstein liechtenstein 2026 2026 - 2026-11-22 Liechtenstein tax tables
Serbia serbia 2026 2026 - 2026-11-22 Serbia tax tables
Türkiye turkey 2026 2026 - 2026-11-27 Türkiye tax tables
Japan japan 2026 2026 - 2026-11-27 Japan tax tables
South Korea south-korea 2026 2026 - 2026-11-21 South Korea tax tables
Mexico mexico 2026 2026 - 2026-11-21 Mexico tax tables
Brazil brazil 2026 2026 - 2026-11-27 Brazil tax tables
Chile chile 2026 2026 - 2026-11-22 Chile tax tables
Colombia colombia 2026 2026 - 2026-11-22 Colombia tax tables
Argentina argentina 2026 2026 - 2026-11-26 Argentina tax tables
Costa Rica costa-rica 2026 2026 - 2026-11-22 Costa Rica tax tables
Saudi Arabia saudi-arabia 2026 2026 - 2026-11-22 Saudi Arabia tax tables
Qatar qatar 2026 2026 - 2026-11-22 Qatar tax tables
Kuwait kuwait 2026 2026 - 2026-11-22 Kuwait tax tables
Bahrain bahrain 2026 2026 - 2026-11-22 Bahrain tax tables
Oman oman 2026 2026 - 2026-11-22 Oman tax tables
Israel israel 2026 2026 - 2026-11-22 Israel tax tables
South Africa south-africa 2026-27 2026-27 - 2026-11-22 South Africa tax tables
Indonesia indonesia 2026 2026 - 2026-11-22 Indonesia tax tables
China china 2026 2026 - 2026-11-22 China tax tables
Malaysia malaysia 2026 2026 - 2026-11-22 Malaysia tax tables
Thailand thailand 2026 2026 - 2026-11-22 Thailand tax tables
Vietnam vietnam 2026 2026 - 2026-11-22 Vietnam tax tables
Philippines philippines 2026 2026 - 2026-11-26 Philippines tax tables
Pakistan pakistan 2026-27 2026-27 - 2026-11-22 Pakistan tax tables
Bangladesh bangladesh 2026-27 2026-27 - 2026-11-22 Bangladesh tax tables
Sri Lanka sri-lanka 2026-27 2026-27 - 2026-11-26 Sri Lanka tax tables
Nepal nepal 2083-84 2083-84 - 2026-11-26 Nepal tax tables
Jordan jordan 2026 2026 - 2026-11-26 Jordan tax tables
Tunisia tunisia 2026 2026 - 2026-11-26 Tunisia tax tables
Algeria algeria 2026 2026 - 2026-11-26 Algeria tax tables
Paraguay paraguay 2026 2026 - 2026-11-26 Paraguay tax tables
Bolivia bolivia 2026 2026 - 2026-11-26 Bolivia tax tables
El Salvador el-salvador 2026 2026 - 2026-11-26 El Salvador tax tables
Honduras honduras 2026 2026 - 2026-11-26 Honduras tax tables
Jamaica jamaica 2026 2026 - 2026-11-26 Jamaica tax tables
Trinidad and Tobago trinidad-and-tobago 2026 2026 - 2026-11-26 Trinidad and Tobago tax tables
Egypt egypt 2026 2026 - 2026-11-26 Egypt tax tables
Nigeria nigeria 2026 2026 - 2026-11-26 Nigeria tax tables
Kenya kenya 2026 2026 - 2026-11-26 Kenya tax tables
Morocco morocco 2026 2026 - 2026-11-26 Morocco tax tables
Ghana ghana 2026 2026 - 2026-11-26 Ghana tax tables
Peru peru 2026 2026 - 2026-11-26 Peru tax tables
Uruguay uruguay 2026 2026 - 2026-11-26 Uruguay tax tables
Ecuador ecuador 2026 2026 - 2026-11-26 Ecuador tax tables
Panama panama 2026 2026 - 2026-11-26 Panama tax tables
Dominican Republic dominican-republic 2026 2026 - 2026-11-26 Dominican Republic tax tables
Guatemala guatemala 2026 2026 - 2026-11-26 Guatemala tax tables
Kazakhstan kazakhstan 2026 2026 - 2026-11-26 Kazakhstan tax tables
Georgia georgia 2026 2026 - 2026-11-26 Georgia tax tables
Armenia armenia 2026 2026 - 2026-11-27 Armenia tax tables
Azerbaijan azerbaijan 2026 2026 - 2026-11-26 Azerbaijan tax tables
Uzbekistan uzbekistan 2026 2026 - 2026-11-26 Uzbekistan tax tables
Russia russia 2026 2026 - 2026-11-26 Russia tax tables
Tanzania tanzania 2026 2026 - 2026-11-26 Tanzania tax tables
Uganda uganda 2026-27 2026-27 - 2026-11-26 Uganda tax tables
Rwanda rwanda 2026 2026 - 2026-11-26 Rwanda tax tables
Ethiopia ethiopia 2026-27 2026-27 - 2026-11-26 Ethiopia tax tables
Mauritius mauritius 2026-27 2026-27 - 2026-11-26 Mauritius tax tables
Botswana botswana 2026-27 2026-27 - 2026-11-26 Botswana tax tables
Montenegro montenegro 2026 2026 - 2026-11-26 Montenegro tax tables
North Macedonia north-macedonia 2026 2026 - 2026-11-26 North Macedonia tax tables
Albania albania 2026 2026 - 2026-11-26 Albania tax tables
Bosnia and Herzegovina bosnia-and-herzegovina 2026 2026 - 2026-11-26 Bosnia and Herzegovina tax tables
Moldova moldova 2026 2026 - 2026-11-26 Moldova tax tables
Kosovo kosovo 2026 2026 - 2026-11-26 Kosovo tax tables
Andorra andorra 2026 2026 - 2026-11-26 Andorra tax tables
Monaco monaco 2026 2026 - 2026-11-26 Monaco tax tables
San Marino san-marino 2026 2026 - 2026-11-26 San Marino tax tables
Hong Kong hong-kong 2026-27 2026-27 - 2026-11-26 Hong Kong tax tables
Taiwan taiwan 2026 2026 - 2026-11-26 Taiwan tax tables
Macao macao 2026 2026 - 2026-11-26 Macao tax tables
Cambodia cambodia 2026 2026 - 2026-11-26 Cambodia tax tables
Brunei brunei 2026 2026 - 2026-11-26 Brunei tax tables
Côte d’Ivoire cote-divoire 2026 2026 - 2026-11-26 Côte d’Ivoire tax tables
Senegal senegal 2026 2026 - 2026-11-26 Senegal tax tables
Cameroon cameroon 2026 2026 - 2026-11-26 Cameroon tax tables
Zambia zambia 2026 2026 - 2026-11-26 Zambia tax tables
Zimbabwe zimbabwe 2026 2026 - 2026-11-26 Zimbabwe tax tables
Namibia namibia 2026-27 2026-27 - 2026-11-26 Namibia tax tables
Bahamas bahamas 2026 2026 - 2026-11-26 Bahamas tax tables
Barbados barbados 2026 2026 - 2026-11-26 Barbados tax tables
Belize belize 2026 2026 - 2026-11-26 Belize tax tables
Guyana guyana 2026 2026 - 2026-11-26 Guyana tax tables
Suriname suriname 2026 2026 - 2026-11-26 Suriname tax tables
Haiti haiti 2026-27 2026-27 - 2026-11-26 Haiti tax tables
Kyrgyzstan kyrgyzstan 2026 2026 - 2026-11-26 Kyrgyzstan tax tables
Tajikistan tajikistan 2026 2026 - 2026-11-26 Tajikistan tax tables
Maldives maldives 2026 2026 - 2026-11-26 Maldives tax tables
Bhutan bhutan 2026 2026 - 2026-11-27 Bhutan tax tables
Myanmar myanmar 2026-27 2026-27 - 2026-11-26 Myanmar tax tables
Madagascar madagascar 2026 2026 - 2026-11-26 Madagascar tax tables
DR Congo dr-congo 2026 2026 - 2026-11-26 DR Congo tax tables
Republic of the Congo congo 2026 2026 - 2026-11-26 Republic of the Congo tax tables
Malawi malawi 2026-27 2026-27 - 2026-11-26 Malawi tax tables
Fiji fiji 2026 2026 - 2026-11-26 Fiji tax tables
Papua New Guinea papua-new-guinea 2026 2026 - 2026-11-26 Papua New Guinea tax tables
Samoa samoa 2026 2026 - 2026-11-26 Samoa tax tables
Tonga tonga 2026-27 2026-27 - 2026-11-26 Tonga tax tables
Vanuatu vanuatu 2026 2026 - 2026-11-26 Vanuatu tax tables
Solomon Islands solomon-islands 2026 2026 - 2026-11-26 Solomon Islands tax tables
Eswatini eswatini 2026-27 2026-27 - 2026-11-26 Eswatini tax tables
Lesotho lesotho 2026-27 2026-27 - 2026-11-26 Lesotho tax tables
Seychelles seychelles 2026 2026 - 2026-11-26 Seychelles tax tables
Cabo Verde cabo-verde 2026 2026 - 2026-11-26 Cabo Verde tax tables
Gabon gabon 2026 2026 - 2026-11-26 Gabon tax tables
Burundi burundi 2026-27 2026-27 - 2026-11-27 Burundi tax tables
Djibouti djibouti 2026 2026 - 2026-11-26 Djibouti tax tables
Jersey jersey 2026 2026 - 2026-11-26 Jersey tax tables
Bermuda bermuda 2026-27 2026-27 - 2026-11-26 Bermuda tax tables
Cayman Islands cayman-islands 2026 2026 - 2026-11-26 Cayman Islands tax tables
Faroe Islands faroe-islands 2026 2026 - 2026-11-27 Faroe Islands tax tables
Greenland greenland 2026 2026 - 2026-11-27 Greenland tax tables
Gibraltar gibraltar 2026-27 2026-27 - 2026-11-27 Gibraltar tax tables
Isle of Man isle-of-man 2026-27 2026-27 - 2026-11-27 Isle of Man tax tables
Guernsey guernsey 2026 2026 - 2026-11-27 Guernsey tax tables
Antigua and Barbuda antigua-and-barbuda 2026 2026 - 2026-11-26 Antigua and Barbuda tax tables
Saint Kitts and Nevis saint-kitts-and-nevis 2026 2026 - 2026-11-26 Saint Kitts and Nevis tax tables
Saint Lucia saint-lucia 2026 2026 - 2026-11-26 Saint Lucia tax tables
Saint Vincent and the Grenadines saint-vincent-and-the-grenadines 2026 2026 - 2026-11-26 Saint Vincent and the Grenadines tax tables
Dominica dominica 2026 2026 - 2026-11-26 Dominica tax tables
Grenada grenada 2026 2026 - 2026-11-27 Grenada tax tables
Aruba aruba 2026 2026 - 2026-11-27 Aruba tax tables
Curaçao curacao 2026 2026 - 2026-11-27 Curaçao tax tables
Belarus belarus 2026 2026 - 2026-11-26 Belarus tax tables
Cuba cuba 2026 2026 - 2026-11-26 Cuba tax tables
Nicaragua nicaragua 2026 2026 - 2026-11-27 Nicaragua tax tables
Turkmenistan turkmenistan 2026 2026 - 2026-11-27 Turkmenistan tax tables
Timor-Leste timor-leste 2026 2026 - 2026-11-27 Timor-Leste tax tables
Benin benin 2026 2026 - 2026-11-26 Benin tax tables
Togo togo 2026 2026 - 2026-11-26 Togo tax tables
Burkina Faso burkina-faso 2026 2026 - 2026-11-26 Burkina Faso tax tables
Mali mali 2026 2026 - 2026-11-26 Mali tax tables
Niger niger 2026 2026 - 2026-11-26 Niger tax tables
Sierra Leone sierra-leone 2026 2026 - 2026-11-26 Sierra Leone tax tables
Liberia liberia 2026 2026 - 2026-11-27 Liberia tax tables
Guinea guinea 2026 2026 - 2026-11-27 Guinea tax tables
The Gambia gambia 2026 2026 - 2026-11-27 The Gambia tax tables
Somalia somalia 2026 2026 - 2026-11-27 Somalia tax tables
Palestine palestine 2026 2026 - 2026-11-27 Palestine tax tables
Laos laos 2026 2026 - 2026-11-27 Laos tax tables
Kiribati kiribati 2026 2026 - 2026-11-26 Kiribati tax tables
Marshall Islands marshall-islands 2026-27 2026-27 - 2026-11-26 Marshall Islands tax tables
Micronesia micronesia 2026 2026 - 2026-11-27 Micronesia tax tables
Palau palau 2026 2026 - 2026-11-27 Palau tax tables
Nauru nauru 2026-27 2026-27 - 2026-11-27 Nauru tax tables
Tuvalu tuvalu 2026 2026 - 2026-11-27 Tuvalu tax tables
Cook Islands cook-islands 2026 2026 - 2026-11-27 Cook Islands tax tables
Niue niue 2026-27 2026-27 - 2026-11-27 Niue tax tables
Puerto Rico puerto-rico 2026 2026 - 2026-11-27 Puerto Rico tax tables
US Virgin Islands us-virgin-islands 2026 2026 - 2026-11-27 US Virgin Islands tax tables
Guam guam 2026 2026 - 2026-11-27 Guam tax tables
British Virgin Islands british-virgin-islands 2026 2026 - 2026-11-26 British Virgin Islands tax tables
Turks and Caicos Islands turks-and-caicos-islands 2026 2026 - 2026-11-27 Turks and Caicos Islands tax tables
Anguilla anguilla 2026 2026 - 2026-11-27 Anguilla tax tables
New Caledonia new-caledonia 2026 2026 - 2026-11-27 New Caledonia tax tables
French Polynesia french-polynesia 2026 2026 - 2026-11-27 French Polynesia tax tables
Mauritania mauritania 2026 2026 - 2026-11-26 Mauritania tax tables
Chad chad 2026 2026 - 2026-11-26 Chad tax tables
Central African Republic central-african-republic 2026 2026 - 2026-11-27 Central African Republic tax tables
South Sudan south-sudan 2026-27 2026-27 - 2026-11-27 South Sudan tax tables
Comoros comoros 2026 2026 - 2026-11-27 Comoros tax tables
Guinea-Bissau guinea-bissau 2026 2026 - 2026-11-27 Guinea-Bissau tax tables
Sudan sudan 2026 2026 - 2026-11-27 Sudan tax tables
Angola angola 2026 2026 - 2026-11-27 Angola tax tables
Mozambique mozambique 2026 2026 - 2026-11-27 Mozambique tax tables
French Southern Territories french-southern-territories 2026 2026 - 2026-11-27 French Southern Territories tax tables
Pitcairn Islands pitcairn-islands 2026 2026 - 2026-11-27 Pitcairn Islands tax tables
American Samoa american-samoa 2026 2026 - 2026-11-27 American Samoa tax tables
Northern Mariana Islands northern-mariana-islands 2026 2026 - 2026-11-27 Northern Mariana Islands tax tables
Montserrat montserrat 2026 2026 - 2026-11-27 Montserrat tax tables
Falkland Islands falkland-islands 2026 2026 - 2026-11-27 Falkland Islands tax tables
Saint Helena saint-helena 2026-27 2026-27 - 2026-11-27 Saint Helena tax tables
Sint Maarten sint-maarten 2026 2026 - 2026-11-27 Sint Maarten tax tables
Caribbean Netherlands caribbean-netherlands 2026 2026 - 2026-11-27 Caribbean Netherlands tax tables
Saint-Barthélemy saint-barthelemy 2026 2026 - 2026-11-27 Saint-Barthélemy tax tables
Saint-Martin saint-martin 2026 2026 - 2026-11-27 Saint-Martin tax tables
Saint Pierre and Miquelon saint-pierre-and-miquelon 2026 2026 - 2026-11-27 Saint Pierre and Miquelon tax tables
Wallis and Futuna wallis-and-futuna 2026 2026 - 2026-11-27 Wallis and Futuna tax tables

Coming later (tables under review, not yet published): Belgium.

How the data is tested

The test suite checks every bundled table (each row has a source URL and a retrieval date, bands are well formed) and reproduces figures published by tax authorities with tax_from_bands:

pip install -e ".[test]"
pytest

Updating the bundled data

The tables come from the calcbloc-data repository. With it checked out next to this one:

python scripts/sync_tables.py                 # copies ../calcbloc-data/tables, validates, refreshes this README
python scripts/sync_tables.py --source PATH   # or set CALCBLOC_DATA_TABLES
python scripts/sync_tables.py --check         # exit 1 if the bundled data is out of date

Tables are stored gzip-compressed inside the package (the JSON is unchanged once decompressed), so every country, year and region fits in under 1 MB.

Links

About

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 (JavaScript, PHP, R, Google Sheets, the MCP server and the dataset itself) are in the itmarkerz GitHub organization.

About

Python client and offline tax tables for CalcBloc: 2026 income tax brackets and social security rates for 29 countries, with official sources.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages