Sales · 5 min read

How to Calculate Sales Tax and VAT

Add a rate to a net price — or pull the tax out of a gross total

Sales tax and value-added tax (VAT) are a percentage of the net (pre-tax) price. This tutorial walks through adding tax at checkout and extracting tax from a tax-included sticker, using the same $49.99 at 8.25% defaults as the Sales Tax Calculator. Jurisdiction, exemptions, and rounding at the register sit outside this identity.

Written by the My Calculator Stack editorial team. About our methods

Rates, bases, and rounding rules vary by jurisdiction. This page does not decide what is taxable, whether a price is VAT-inclusive, or what you owe. It is not tax advice.

1.Sales tax and VAT are a percent of the net price, added at checkout or already in the sticker

In a typical U.S. sales-tax setup the shelf price is net (pre-tax); tax is added at the register. In many VAT systems the sticker is gross (tax-included) and you may need the net and the tax component. Both use the same rate r on the net amount. A tip is a gratuity, not a tax. A discount usually applies before tax — this page does not stack coupons.

2.Add tax with net × (1 + rate); extract tax with gross ÷ (1 + rate)

Let P be the net price, G the gross (tax-in) total, and r the rate in percent. Tax T = P × r/100. Gross G = P + T = P(1 + r/100). To extract tax from a gross amount, reverse that: P = G / (1 + r/100) and T = G − P. A 20% VAT on a €50 net price is €10 tax and €60 gross; a €60 VAT-inclusive price at 20% hides a €50 net.

\[ \begin{aligned}T &= P \times \tfrac{r}{100},\quad G = P\left(1+\tfrac{r}{100}\right) \\P &= \frac{G}{1+\tfrac{r}{100}},\quad T = G - P\end{aligned} \]

3.Worked example: $49.99 at 8.25% is $4.12 tax and $54.11 total

The Sales Tax Calculator defaults to a $49.99 pre-tax price at 8.25%. Tax = 49.99 × 0.0825 = $4.124175, which rounds to $4.12 on the dollar. Total = 49.99 + 4.124175 = $54.114175 ≈ $54.11. Extracting from that gross: 54.114175 / 1.0825 = $49.99, and tax is again $4.12. The two modes are inverses when the rate is the same.

\[ T=49.99\times 0.0825=4.124,\quad G=54.114 \]

4.Toggle add-tax versus extract-tax-from-gross

Set the price and the rate, then switch Add tax (price is net) or Extract tax (price is gross). The stack shows net versus tax on one dollar scale. This is a teaching widget — no exemptions, no rounding rules, no full calculator chrome. Open the Sales Tax Calculator when you want the standalone add-tax tool.

Inline playground

Tax / net / gross

4.12 tax · 54.11 gross

Net 49.99

49.99 × 0.0825 = 4.12; gross = 54.11

$49.99 net + $4.12 tax = $54.11 gross at 8.25%.

Teaching aid only — add-tax treats the price as net; extract treats it as tax-included. Rates and rounding vary by jurisdiction.

Open the full Sales Tax calculator →

5.Open the Sales Tax Calculator

The Sales Tax Calculator uses the add-tax identity, the same $49.99 / 8.25% example, and How it works plus FAQ on one page. Browse other sales tools if you need a discount before tax, or a tip after the bill.

Try it yourself

Open the related calculator and put these formulas to work.