The quick answer

To add tax: gross = net × (1 + rate), so $149.50 at 8.875% sales tax becomes $162.77 after statutory half-up rounding. To remove it: net = gross ÷ (1 + rate). A £450 UK receipt at 20% VAT holds £375.00 of net and £75.00 of tax, not £360. Both directions run live in your browser.

Sales tax, VAT, and GST do the same job with different plumbing

Consumption taxes come in two shapes: the retail sales tax added at the till (the United States model) and VAT/GST, charged at every stage but reclaimed by registered businesses, used in more than 160 countries. A bookkeeper reconciling a stack of European receipts and an Etsy seller invoicing a German customer meet the same math; only the label on the tax differs.

Every one of those jobs comes down to two inverse operations:

  • Forward Calculation (Tax-Exclusive): Adding statutory sales tax to a net base price to establish the gross total.
  • Reverse Extraction (Tax-Inclusive): Backing out embedded tax from a gross receipt to isolate the pre-tax revenue and statutory tax liability.

This calculator performs both directions with statutory half-up rounding on fractional cents, so invoice totals match what an auditor expects. Type a net price and a rate to add the tax; type a gross total to strip it back out.

The two formulas: adding and extracting tax

Three formulas cover the whole relationship:

Calculation ModeStatutory FormulaApplied Example (at 20% Tax)
Forward (Exclusive → Gross)Tax = Net × (r ÷ 100) Total = Net + Tax$100.00 × 0.20 = $20.00 tax Total = $120.00
Reverse (Inclusive → Net)Net = Gross ÷ (1 + r ÷ 100) Tax = Gross − Net$120.00 ÷ 1.20 = $100.00 net Tax = $20.00
Effective Tax FractionFraction = r ÷ (100 + r)20 ÷ 120 = 16.667% of gross

A 20% rate does not mean 20% of the gross. Take a £240 tax-inclusive receipt and subtract 20% (£48) and you get £192. The correct net is £240 ÷ 1.20 = £200.00, with £40.00 of VAT. The subtract-20% shortcut misstates revenue by £8.00 on a single line, and scaled across a quarter's invoices it becomes a real compliance problem. The only correct extraction is gross ÷ (1 + rate).

Four worked tax scenarios

Scenario 1: United States Retail Purchase (NYC Combined Rate)

Input

Mode: Add Tax
Pre-tax price: $149.50
Tax rate: 8.875% (4.00% NY State + 4.50% NYC + 0.375% MCTD)

Output

Sales Tax: $13.27
Total with Tax: $162.77
Effective tax ratio: 8.875%

Calculation: Tax = $149.50 × 0.08875 = $13.268125, which rounds to $13.27 under statutory half-up rounding, giving a customer total of $149.50 + $13.27 = $162.77. (That 8.875% is the combined New York City rate: state + city + district stacked at checkout.)

Scenario 2: European Corporate Receipt (UK VAT Extraction)

Input

Mode: Extract Tax
Gross receipt total: £450.00
VAT rate: 20.00%

Output

Pre-tax net price: £375.00
Tax amount extracted: £75.00
Effective tax share of receipt: 16.67%

Calculation: Net = £450.00 ÷ 1.20 = £375.00 exactly; VAT = £450.00 − £375.00 = £75.00. The UK also runs a 5% reduced rate (a £105.00 gross invoice at 5% holds £100.00 net and £5.00 VAT) and a 0% zero rate (gross = net). Verify by multiplying back: £375.00 × 20% = £75.00. ✓

Scenario 3: Canadian Harmonized Sales Tax (Ontario HST)

Input

Mode: Add Tax
Service fee: $880.00 CAD
HST rate: 13.00% (5% Federal GST + 8% Provincial Sales Tax)

Output

Harmonized Sales Tax: $114.40 CAD
Invoice Total: $994.40 CAD
Tax ratio: 13.00%

Calculation: HST = $880.00 × 0.13 = $114.40. Invoice total = $880.00 + $114.40 = $994.40 CAD. Input tax credits (ITCs) allow commercial buyers to reclaim the full $114.40 against their periodic HST return.

Scenario 4: Zero-Rated and Reverse Charge Compliance

Input

Mode: Add Tax
Export consulting fee: $3,200.00
Tax rate: 0.00% (Zero-rated export)

Output

Sales Tax / VAT: $0.00
Total payable: $3,200.00
Pre-tax price: $3,200.00

Calculation: Tax = $3,200.00 × 0.00 = $0.00. In B2B cross-border professional services, the supply is typically zero-rated, with reverse charge notation required on the invoice face under VAT Directive 2006/112/EC.

Edge cases the calculator guards

ConditionModeBehavior / OutputRegulatory Context
Rate = 0.00%BothTax = $0.00; Total = PriceApplies in NOMAD states (OR, MT, NH, DE, AK) and zero-rated staple foods/medical goods.
Gross = $0.00BothTax = $0.00; Net = $0.00Zero base yields zero tax liability across all legal jurisdictions.
Negative PriceBothNegative Tax and TotalRepresents credit notes, product returns, or customer refund vouchers.
Rate > 100%ForwardTax exceeds original priceOccurs with selective excise/sin taxes (e.g. tobacco, luxury imports).
Fractional CentsBothHalf-up rounding to nearest centComplies with Streamlined Sales Tax (SST) Section 324 rounding rules.

Frequently Asked Questions

What is the difference between sales tax and Value Added Tax (VAT)?

Sales tax is a single-stage consumption tax collected exclusively at the final point of retail sale to the end consumer. Value Added Tax (VAT), also known as Goods and Services Tax (GST) in some jurisdictions, is a multi-stage tax levied on the incremental value added at each step of the production and distribution chain, with businesses claiming input credits for taxes paid on business purchases.

How do I extract VAT or sales tax from a gross (tax-inclusive) total?

To extract embedded tax from a gross price, divide by (1 + Tax Rate ÷ 100). For example, to extract 20% VAT from a £120 receipt: Net Price = £120 ÷ 1.20 = £100. The tax amount is £120 − £100 = £20. Never multiply by (1 − 0.20), as £120 × 0.80 = £96, which produces a £4 error.

What is the formula to add sales tax to a net (pre-tax) price?

Tax Amount = Pre-Tax Price × (Tax Rate ÷ 100). Total Gross Price = Pre-Tax Price + Tax Amount. For example, a $89.99 item with an 8.875% tax rate yields $7.99 in tax ($89.99 × 0.08875 = $7.9866 → rounded) and a total checkout price of $97.98.

Which US states have no state sales tax?

Five US states do not levy a general state-level sales tax (frequently remembered by the acronym NOMAD): New Hampshire, Oregon, Montana, Alaska, and Delaware. However, local municipalities in Alaska may impose local sales taxes.

Why does a 20% tax rate represent only 16.67% of the gross receipt?

Because tax rates are statutory percentages of the net pre-tax base, not the gross total. If net is $100 and tax is $20 (20%), the gross is $120. As a share of the gross receipt, the tax is $20 ÷ $120 = 16.67%. The conversion formula is: Gross Tax Share (%) = [Rate ÷ (100 + Rate)] × 100.

How should sales tax rounding be handled on fractional cents?

Under statutory tax rules (such as Section 324 of the SST Agreement and IRS guidelines), tax is computed on the aggregate taxable amount and rounded to the nearest whole cent using standard half-up rounding (values of 0.5 cents or greater round up to the next cent).

What is the difference between tax-inclusive and tax-exclusive pricing?

Tax-exclusive pricing displays the product cost before tax, with sales tax added separately at checkout (the standard commercial model in the United States and Canada). Tax-inclusive pricing displays the final price with all taxes already incorporated into the sticker price (mandated for consumer transactions across the European Union, UK, Australia, and New Zealand).

What is a reverse charge mechanism in VAT?

The reverse charge mechanism shifts the legal obligation to account for VAT from the seller to the buyer, common in B2B cross-border transactions within the EU and international service contracts. The invoice reflects a 0% tax rate with the buyer self-assessing tax on their periodic return.

Can sales tax apply to shipping and delivery charges?

Taxability of freight and handling depends on state statute. In states like California and New York, separately stated delivery charges via common carrier are generally non-taxable, whereas combined shipping and handling fees or vendor-delivered orders are frequently subject to full sales tax.

Does this sales tax calculator store my financial inputs?

No. All calculations run strictly in your web browser via client-side JavaScript. No prices, invoices, tax jurisdictions, or transaction figures are ever transmitted across the network, stored on servers, or tracked via cookies.

Calculators that pair well with tax work

Tax math rarely travels alone. Discounting, margin checks, and percentage change show up in the same workflow, and these four calculators cover the neighbours:

  • [Discount Calculator](/tools/finance-calculators/discount-calculator): Calculate promotional markdowns, final purchase prices, and stacked coupon discounts.
  • [Profit Margin Calculator](/tools/finance-calculators/profit-margin-calculator): Calculate gross profit, target selling prices, and markup percentages.
  • [Percentage Calculator](/tools/finance-calculators/percentage-calculator): Solve general part-whole percentages, percentage differences, and reverse values.
  • [Invoice Total Calculator](/tools/finance-calculators/invoice-total-calculator): Compute complete multi-line invoice sub-totals, discounts, taxes, and shipping.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.