Skip to the calculator
Rule Calculator

Sales Tax Calculator for your website

Tax and total from a pre-tax price, plus the reverse — the pre-tax price hidden inside a total you already paid. Set the values it should open on, then copy the iframe. Your visitors can change them; the widget recomputes against Rule Calculator and never touches your page.

Who puts this on their site

Ecommerce help pages and invoicing guides, where the rate is local and the reader’s is the only one that matters.

Free for commercial use. No key, no account, no tracking script, and nothing loaded from a third party — the iframe points at Rule Calculator and that is the only request it makes. The formula and its source travel with it, so the number on your page is one your readers can check.

Opening values

Set what the widget shows before anyone touches it. Leave a field as it is and it stays out of the URL.

Preview

Paste this

<iframe src="https://rulecalculators.com/embed/sales-tax" width="100%" height="660" style="border:1px solid #e5e5e5;border-radius:12px" loading="lazy" title="Sales Tax Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;color:#666;margin:6px 0 0"><a href="https://rulecalculators.com/calc/sales-tax" style="color:#666">Sales Tax Calculator</a> by <a href="https://rulecalculators.com" style="color:#666">Rule Calculator</a></p>

Free for commercial use. The one condition is the credit link inside the widget, which is how the calculator stays free. Want the numbers in your own markup instead? The same calculator is a JSON endpoint, or see the full Sales Tax Calculator page with its sources and working.