Money · Independent · 23 Oct 2026

ejosterberg/open-sales-tax

Open-source US sales tax calculation API. Free, self-hostable, contributor-driven. https://opensalestax.org

← Money
OpenSalesTax: US sales tax API. Self-hosted sales tax calculation engine.

In simple English

This program calculates US sales tax for any ZIP code and purchase amount. It helps online stores charge the right amount of tax without paying for expensive commercial services. You run it on your own server using Docker or Python. It uses free public tax data, so you need to check rates against official state websites before filing your taxes.

What it is

An open-source US sales tax calculation API that covers fifty states, Washington DC, and Puerto Rico. It combines public data from the Streamlined Sales Tax project with state-specific modules to return tax rates and breakdowns.

What it is good for

Solo builders and small business owners who sell goods across the United States and need an API to calculate sales tax on checkouts without paying monthly fees to commercial providers.

Stars15
LicenceApache-2.0
Latestv0.59.0 (2026-05-17)checked 23 Oct 2026
Last code change2026-10-14
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Runs on your own server for free with no per-request charges or API limits.
  • Pre-built database dumps let you set up all states in under two minutes.
  • Provides detailed tax breakdowns split by state, county, city, and special districts.
Watch for
  • Requires a running PostgreSQL database and familiarity with the command line.
  • Does not constitute official tax or legal advice, so you must verify rates.
  • Some states with complex local rules like Colorado and Louisiana have incomplete local stacking.
Replaces

Paid commercial sales tax APIs like TaxJar or Avalara

Works well with

A shopping cart or checkout API running on PostgreSQL

Similar repositories
  • taxjar/taxjar-python30 stars

    Python bindings for the commercial TaxJar service rather than a free self-hosted tax database.

Also reviewed on Repo Radar
  • btcpayserver/btcpayserver7.8k stars

    Payment software you run yourself that takes Bitcoin into a wallet whose keys you hold.

  • hledgerorg/hledger4.8k stars

    Double-entry accounting over plain text files, with command-line, terminal, web and editor interfaces.

  • akaunting/akaunting10k stars

    Self-hosted invoicing and expense tracking, with the double-entry accounting sold separately as an add-on.

Install
git clone https://github.com/ejosterberg/open-sales-tax.git
cd open-sales-tax
docker compose --profile postgres up -d
docker compose run --rm api alembic upgrade head
docker compose run --rm api python -m opensalestax data restore

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Commerce & Finance › Payments & Billing › Sales Tax.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.