TaxVatCalculator

How to calculate VAT

By the TaxVatCalculator editorial team · Last updated 16 November 2026 · 8 min read

Two directions, one rule: the rate always applies to the net amount. Everything else is rounding discipline.

Key takeaways

  • The rate always applies to the net amount, in both directions.
  • One-step multiplication avoids intermediate rounding errors.
  • Two rates on one invoice means two line calculations, not one blended rate.
  • Verify by reversing the operation: net × (1 + rate) must return the gross.

The three formulas you need

Every VAT calculation is one of three operations, and they all share a single principle: the rate is applied to the net amount.

You wantFormulaAt 20%
The tax on a net pricenet × rate250 → 50
The gross from a net pricenet × (1 + rate)250 → 300
The net from a gross pricegross ÷ (1 + rate)300 → 250

Adding VAT to a net price

Multiply the net by the rate to get the tax, then add it to the net. A net of 250 at 20% produces 50 of tax and a gross of 300.

The one-step form, net × 1.20, is better practice because it avoids rounding an intermediate figure. On a single line the difference is a cent at most; across a thousand invoice lines it becomes a reconciliation problem.

Extracting VAT from a gross price

Divide instead of multiplying. A gross of 300 at 20% gives a net of 250 and tax of 50. The reason this is division rather than subtraction is covered in the reverse VAT guide: the rate applies to the net, and the net is smaller than the gross.

A worked invoice

Consider an invoice with three lines at different rates — a realistic mix for a retailer selling books, standard goods and children's clothing.

LineNetRateTaxGross
Books120.005%6.00126.00
Standard goods400.0020%80.00480.00
Children's clothing80.000%0.0080.00
Invoice total600.0086.00686.00

Note that the invoice total's effective rate is 14.33%, not 20% and not the average of the three rates. That is why a blended rate applied to the total produces a figure that cannot be reconciled line by line, and why tax authorities expect the breakdown.

Two rates on one invoice

Calculate each line on its own net amount and add the tax totals at the end. If a line mixes categories — a gift set containing both a book and a toy, for instance — the treatment depends on local rules for composite supplies, which is a question for the tax authority rather than for arithmetic.

Discounts, shipping and rounding

A discount applied before tax reduces the net and therefore the tax. A discount applied after tax reduces the amount payable but not the tax already accounted for. Shipping is taxable in most VAT systems when it is part of the supply, but the treatment varies, so check the local rule.

Rounding deserves its own rule: round once, at the level you report. If you round the net, then compute tax from the rounded net, then round again, the figures stop adding up. Keep full precision internally and round only the displayed values.

Verifying the result

Two checks catch almost every error. First, multiply the net by one plus the rate and confirm you return to the gross, to within one cent. Second, divide the tax by the net and confirm you get the rate back. If either check fails, the wrong direction was used or rounding happened in the wrong place.

Common mistakes

Which rate applies is a different question

The calculator applies whatever rate you give it. Deciding which rate is legally correct depends on the product, the customer's status, the place of supply and the registrations involved. Those are questions for the tax authority or a licensed accountant, and no calculator can answer them from an amount alone.

A useful habit: write the rate and its legal basis next to the calculation. If the basis cannot be named, the rate is a guess.

Inclusive versus exclusive pricing

An exclusive price is quoted before tax; an inclusive price is what the customer actually pays. Business-to-business quotes are usually exclusive, because the buyer can reclaim the tax and wants to compare net costs. Consumer prices in the EU and UK are normally inclusive, because the shelf price must be what the customer pays.

Mixing the two conventions in one document is the single most common source of invoice disputes. If a quote says 1,000 and the invoice says 1,200, the question is not who is right about arithmetic but which convention the quote used. Stating "excluding VAT" or "including VAT" on every document removes the ambiguity permanently.

A second worked example, in reverse

Suppose a customer is quoted 1,200 including 20% VAT and asks what the net price is. Divide 1,200 by 1.20 to get 1,000; the tax is 200. Now suppose they ask for a 10% discount on the gross. Applying the discount to the gross gives 1,080, which corresponds to a net of 900 and tax of 180 — the tax falls with the price, as it should.

Applying the discount to the net instead gives 900 net, 180 tax and 1,080 gross — the same result. The two routes agree because the rate is unchanged. They stop agreeing the moment a discount crosses a rate boundary, which is why line-level calculation matters.

Frequently asked questions

What is the formula for VAT?

Tax = net × rate; gross = net × (1 + rate); net = gross ÷ (1 + rate). All three use the same rate applied to the net.

Should consumer prices include VAT?

In the EU and UK, consumer prices are normally shown including VAT. Business-to-business quotes are often shown net, with VAT added on the invoice.

How do I handle two rates on one invoice?

Calculate each line on its own net amount, then add the tax totals. Never apply a blended rate to the invoice total.

How should I round the tax?

Round once, at the level you report. Keep full precision through intermediate steps so net plus tax equals gross.

Does the calculator work with negative amounts?

It is designed for positive invoice amounts. Credits are better handled by calculating the positive figure and reversing the sign.

Check your numbers with the free calculator

Open the VAT calculator