Add VAT to a net price, or extract VAT from a VAT-inclusive total, at any rate. Handy for invoicing, cross-border pricing and checking prices under value added tax.
Add VAT: gross = net × (1 + rate%). Remove VAT: net = gross ÷ (1 + rate%). The reverse uses division, because VAT was calculated on the net, not the gross.
In the EU and many countries VAT is already in the shelf price, so businesses reclaim input VAT and remit only the margin. Splitting net/VAT correctly is required for invoices.
Subtracting the rate from the gross to get net. A €120 inclusive price at 20% is €100 net, not €96.
VAT vs GST? Same consumption-tax idea, different name and filing; the math is identical.
Which rate do I use? Use the rate for the item type and country — reduced rates apply to food, books and similar in many places.