Net, VAT and gross
A net price is the amount before VAT. The VAT amount is the net price multiplied by the rate. The gross price is net plus VAT. At 20%, a net price of 100 becomes a VAT amount of 20 and a gross price of 120.
Rates and exemptions are local. A tool can apply the rate you type; it cannot know whether your product is standard-rated, reduced or exempt. Check the rule that applies before you rely on a figure for a tax return.
Removing VAT is a division
If a receipt shows 120 and the rate is 20%, the net price is 120 ÷ 1.20 = 100. Subtracting 20% of 120 gives 96, which is wrong, because the VAT was never 20% of the gross price.
The general form is: net = gross ÷ (1 + rate). At 5%, divide by 1.05. At 23%, divide by 1.23. The VAT calculator asks whether your starting amount already includes VAT so it can choose multiplication or division.
A receipt check
Suppose a gross total is 240 and the stated rate is 20%. Dividing by 1.20 gives a net of 200 and VAT of 40. If the receipt shows a different VAT line, either the rate is different or the gross includes something that is not VATable.
Mixed baskets need one calculation per rate. Do not average 20% and 5% into 12.5% unless the two net amounts happen to be equal.
Try it with your own figures.
The related tool uses the method described above. Check the result against the worked example before you rely on it.
Open VAT Calculator