How to Calculate VAT on an Invoice (Calculator and Rounding)

Add VAT to a price or take it out of a total, line by line or on the invoice total, with HMRC rounding rules, mixed rates, discounts and a calculator.

In short

  1. Start from the price before VAT for each line
  2. Multiply by the VAT rate: 20%, 5% or 0% in the UK
  3. Round the VAT the same way on every invoice
  4. Show the total before VAT, the VAT and the total
  5. Take VAT out of a VAT-inclusive price with the VAT fraction

The formula: VAT = price before VAT × rate, and total = price before VAT + VAT. To take VAT out of a price that includes it, multiply by the VAT fraction, rate ÷ (100 + rate): one sixth at 20% and one twenty-first at 5% (VAT Notice 700, 7.3.1).

VAT calculator

Price before VAT
VAT
Total including VAT

The two calculations

Adding VAT: £1,250.00 before VAT × 20% = £250.00 VAT, so the total is £1,500.00.

Taking VAT out: £1,500.00 including VAT × 1/6 = £250.00 VAT, so the price before VAT is £1,250.00. Taking 20% off the total (£300) is the most common mistake: 20% of a VAT-inclusive price is more than the VAT in it.

VAT rateVAT fraction (VAT in a VAT-inclusive price)Divide the total by
20%1/61.20
5%1/211.05
21% (Netherlands)21/1211.21

UK fractions from VAT Notice 700, 7.3.1; the 21% row uses HMRC’s method, rate ÷ (100 + rate).

Line by line or on the total: rounding

HMRC lets invoice traders round the total VAT on an invoice down to a whole penny. If you work VAT out line by line, round each line either down to the nearest 0.1p or to the nearest 1p or 0.5p, and use the same method every time (VAT Notice 700, 17.5). The methods can differ by a penny or two. Three lines of £33.33 at 20%:

MethodWorkingVAT
Each line to the nearest penny£6.666 rounds to £6.67, three times£20.01
On the total, rounded down£99.99 × 20% = £19.998, rounded down£19.99

Both are allowed. Pick one and keep to it so your invoices and your VAT return agree.

Different rates on one invoice

Show the VAT rate against each line and the VAT for each rate. Zero-rated or exempt lines must show clearly that no VAT is due and have their own total (VAT Notice 700, 16.5). Example for a home: loft insulation installed, £900 at 0% (energy-saving materials are zero-rated until 31 March 2027 under VAT Notice 708/6), plus repairs to the loft hatch, £150 at 20% = £30 VAT. Total £1,080.

Discounts

Other countries use the same arithmetic with their own rates: Dutch BTW, Canadian GST and HST, Australian GST, UAE VAT at 5%. The UK VAT invoice generator does the sums for you, and what a VAT invoice must show lists the other details.

Sources checked 9 October 2026: HMRC VAT Notice 700 (last updated 25 June 2026), VAT Notice 708/6.

Last reviewed 2026-10-17

Questions

How do I calculate 20% VAT?

Multiply the price before VAT by 0.2. £1,250 × 0.2 = £250 VAT, so the total is £1,500.

How do I work out the VAT from a total that includes VAT?

Divide the total by 6 at 20%, or by 21 at 5%. £1,500 ÷ 6 = £250 VAT, leaving £1,250 before VAT. Taking 20% off the total gives the wrong answer.

Do I round VAT up or down?

HMRC lets invoice traders round the total VAT on an invoice down to a whole penny. Line by line, you can round down to 0.1p or to the nearest 1p or 0.5p, as long as you use the same method every time.

Is VAT calculated before or after a discount?

After a discount everyone gets. For a discount for paying early, VAT is due on the amount actually paid.

Ready to create your invoice?

Free, no signup, instant PDF download. Professional invoices in 60 seconds.

More invoicing guides

How to Invoice as a Freelancer (No Company Needed) How to Make an Invoice in Word (Template, Formulas and PDF) How to Send an Invoice by Email (Templates and Subject Lines) How to Write an Invoice for Cash Payment (Paid in Cash Wording) How to Charge a Late Payment Fee (Wording and Legal Limits) How to calculate GST on Canadian invoices

Free invoice templates