Add VAT to a price excluding tax, or remove VAT from a price that already includes it. The result appears instantly, at the 21%, 10% and 4% rates, or at whichever rate you set in the rate control.
Open the VAT calculatorThe two operations and their formula
Every VAT line on an invoice is solved with two calculations. The first, when you start from the price excluding tax:
Total with VAT = net amount × (1 + rate)
The second, when the price in front of you already includes VAT:
Net amount = total ÷ (1 + rate) and VAT amount = total − net amount
The “1 + rate” is the trick: you multiply or divide by a single number, without adding anything separately.
| VAT rate | Add: multiply by | Extract: divide by |
|---|---|---|
| 21 % | 1,21 | 1,21 |
| 10 % | 1,10 | 1,10 |
| 4 % | 1,04 | 1,04 |
Worked example, there and back
A quote of €1,500 excluding VAT, at the standard 21% rate:
| Operation | Calculation | Result |
|---|---|---|
| Net amount | — | 1.500 € |
| VAT amount | 1.500 × 0,21 | 315 € |
| Invoice total | 1.500 × 1,21 | 1.815 € |
| Back again: net amount | 1.815 ÷ 1,21 | 1.500 € |
| Back again: VAT amount | 1.815 − 1.500 | 315 € |
With other rates the mechanism is identical: a €200 service at 10% is €220 (VAT of €20), and a €30 book at 4% is €31.20 (VAT of €1.20).
Check an invoice in three steps
- VAT amount: net amount × rate. If the result does not match the one on the invoice, the error is usually here.
- Total: net amount + VAT amount. It must come out as exactly the amount you are going to charge or pay.
- Back: total ÷ (1 + rate). It has to return the net amount from the first step, to the cent.
If all three match, the invoice is right. If the third one fails, it is almost always because someone subtracted the percentage instead of dividing.
Why subtracting 21% does not work
It is the most repeated invoicing mistake. If you subtract 21% from a total of €121, you get €95.59. But the real net amount is €100, because VAT was calculated on 100 and not on 121:
| Method | Calculation | Net amount obtained |
|---|---|---|
| Correct | 121 ÷ 1,21 | 100,00 € |
| Incorrect | 121 − 21 % | 95,59 € |
The difference is €4.41 on an invoice with a round net amount. Multiply that across every invoice in the quarter and you understand why form 303 does not add up.
Which VAT rate to apply
| Rate | When it is usually used |
|---|---|
| 21 % | Standard rate: most goods and services, electronics, clothing, leisure, professional services. |
| 10 % | Reduced rate: hotels and restaurants, passenger transport, housing, prescription glasses. |
| 4 % | Super-reduced rate: bread, milk, eggs, fruit, vegetables, pulses, olive oil, books, medicines. |
This is general guidance. Your case depends on the activity and the product; confirm it with your adviser or with the AEAT. In the Canary Islands VAT does not apply, but IGIC does (standard rate of 7%), while Ceuta and Melilla have their own IPSI.
Discounts, rounding and withholdings
- The discount comes before VAT. Apply the discount to the net amount and calculate the tax on the result. If you apply it to the total, the VAT amount will not square.
- Round at the end. On an invoice, calculate the VAT amount as net amount × rate, round to the cent and add. Rounding at each step accumulates cents of deviation.
- The IRPF withholding is not VAT. On many professionals' invoices a 7% or 15% withholding appears: it is subtracted from the total to be collected, but it is another tax and goes on another line.
- Exempt is not 0%. Some activities have no VAT (healthcare, insurance, financial services): it is not charged and it cannot be deducted. A 0% rate does allow you to deduct input VAT.
The most expensive mistake: confusing margin with VAT
The VAT is not yours. If you charge €1,815 at 21%, €315 belongs to the tax authority. Setting it aside when you are paid avoids the quarterly surprise: it is money that is only passing through your account.
Frequently asked questions
How do I calculate the VAT on an invoice?
Multiply the net amount by the rate (100 × 0.21 = 21) and add: the total is €121. The calculator does the sum in one step and shows you the net amount, the VAT amount and the total separately.
How do I remove VAT from a price that already includes it?
Divide by 1 + the rate. At 21%, divide by 1.21. Do not subtract 21% from the total: that gives a result lower than the real net amount.
Why does it not add up if I subtract the percentage?
Because the percentage was calculated on the net amount, not on the total. When you subtract it from the total you are applying the rate to an amount that already included it. Division is the only correct way to undo it.
Is VAT calculated before or after the discount?
After. First you apply the discount to the net amount and then you calculate VAT on the reduced amount. The calculator accepts a discount and does both things in order.
Which VAT applies in the Canary Islands, Ceuta and Melilla?
In the Canary Islands IGIC applies (standard rate of 7%, with its own reduced rates); in Ceuta and Melilla, IPSI. For the Canary Islands case it is enough to enter 7% in the tax rate control.
Can I use a rate other than 21, 10 or 4?
Yes. The rate control goes from 0% to 30% in steps of 0.5%, so you can try any rate within that range: useful for international transactions or to check a specific rate before invoicing.
Is the IRPF withholding subtracted from the VAT?
No. They are independent items: VAT is added to the net amount and the IRPF withholding is subtracted from the total to be collected. They go on different lines of the invoice and are settled on different forms.
Calculate yours
Choose “Add VAT” or “Extract VAT”, set the rate and, if you need it, a discount on the net amount. It returns the net amount, the VAT amount and the total, with no sign-up and nothing sent to any server.
Calculate the VAT on my invoice
Continue with these guides
- How to calculate VAT: adding and extracting (with examples)
- Self-employed contributions 2026: brackets and how to calculate them
- Deductible expenses for the self-employed
- Self-employed contributions calculator
- Payment gateway fee calculator
Rates and criteria according to the Spanish tax agency and Law 37/1992 on VAT. You can check the rates in force at the AEAT office. Last reviewed: November 2026. Informational guide, not individual tax advice.