VAT Calculator

Calculate Spanish VAT (IVA) on any amount: add VAT to a base price, or work out the base price from an amount that already includes VAT.

When should you use this calculator?

This VAT calculator lets you both add tax to a VAT-free price and work out the price without VAT from an amount that already includes it. It is useful for freelancers and businesses issuing invoices, and for anyone who wants to check the breakdown of a receipt or quote.

How it is calculated

To add VAT to a price, multiply the base amount by (1 + VAT rate/100): for example, with a base of €100 and a 21% rate, the total is 100 — 1.21 = €121. To do the reverse calculation, that is, to work out the base amount from a figure that already includes VAT, you must divide that total by (1 + VAT rate/100), not simply subtract the percentage: €121 · 1.21 = €100 base, with €21 of VAT.

Practical example

An example covering both directions: an invoice of €250 without VAT, at the general 21% rate, gives €52.50 of VAT and a total of €302.50. If instead we start from a final price of €302.50 that already includes VAT and want to know the base, we divide €302.50 by 1.21, getting €250 base and €52.50 of VAT again - exactly the reverse calculation.

Legal and tax context

Spain has three VAT rates: the general rate of 21%, applied to most goods and services; the reduced rate of 10%, for items such as hospitality, passenger transport or certain foods; and the super-reduced rate of 4%, reserved for essential goods such as bread, milk, fruit, vegetables and books. In addition, retailers under the equivalence surcharge regime apply an extra surcharge (usually 5.2%, 1.4% or 0.5% depending on the product's VAT rate) on top of the usual VAT.

Common mistakes

A very common mistake is calculating the VAT to remove from a final price by directly subtracting the VAT rate percentage from the total, instead of dividing by (1 + rate/100): on €121, subtracting 21% (€25.41) wrongly gives €95.59, instead of the correct €100 base. Another frequent mistake is defaulting to the general rate without checking whether the product or service actually has a reduced or super-reduced rate assigned, which inflates the final price incorrectly.

Practical tips

When issuing an invoice as a freelancer or business, output VAT (charged to the customer) is declared quarterly through model 303, deducting input VAT (paid on business purchases and expenses), with an annual summary in model 390. The difference between output and input VAT is the amount paid to the tax authority (or claimed back, if input VAT exceeds output VAT).

In intra-community transactions between businesses registered in the VIES system, the reverse charge mechanism usually applies (the buyer declares and pays the VAT in their own country, instead of the seller charging it), which requires different handling from a regular domestic invoice. For invoices with several VAT rates across different lines, equivalence surcharge, or intra-community transactions, it's worth consulting a tax advisor to avoid errors in the return.

Other calculators you may find useful

If you found this calculator useful, you might also want to check out:

Frequently asked questions

What VAT rates exist in Spain?

There are three rates: the general rate of 21% (most goods and services), the reduced rate of 10% (hospitality, transport, some foods) and the super-reduced rate of 4% (bread, milk, fruit, vegetables, books and medicines, among others).

How is VAT calculated on a product?

To add VAT to a price without tax, multiply the base price by (1 + VAT rate/100). To find out how much VAT is included in a price, divide the total amount by (1 + VAT rate/100) to get the base, then subtract that from the total to get the VAT amount.

What is the difference between a price with and without VAT?

The price without VAT (base price) is the value of the good or service before tax. The price with VAT is the final amount paid by the consumer, including the corresponding VAT amount.

How does VAT affect freelancers on their invoices?

Freelancers must charge the corresponding VAT on their invoices and can deduct the VAT paid on their professional purchases and expenses. The difference between the two is settled quarterly with the Tax Agency via model 303.

How do I calculate the VAT to remove from a final price without making a mistake?

Divide the total amount by (1 + VAT rate/100), don't multiply it by the percentage. For example, with a total of €121 at 21%, the base is 121 · 1.21 = €100, and the VAT is €21.

What is the equivalence surcharge?

It's a special regime for retailers who sell directly to end consumers, where an extra surcharge (5.2%, 1.4% or 0.5% depending on the product's VAT rate) is applied on purchases from suppliers, in exchange for not having to file periodic VAT returns.

How does VAT work on a sale to another EU country?

Between businesses registered in the VIES system, the reverse charge usually applies: the seller doesn't charge VAT and the buyer self-assesses it in their own country. Sales to individuals in other EU countries follow different rules depending on sales volume.

Which forms do I need to file to declare VAT as a freelancer?

Model 303 is the quarterly self-assessment of output VAT minus input VAT; model 390 is the annual informative summary of the whole year, filed at the start of the following year.

Do all products and services have the same VAT rate?

No. The rate depends on the product or service: most are taxed at the 21% general rate, but hospitality, passenger transport or certain foods have the 10% reduced rate, and essential goods like bread, milk or books are taxed at the 4% super-reduced rate.

Can I use this calculator for several invoice lines with different rates?

The calculator solves one amount and one VAT rate at a time. For an invoice with several lines at different rates, calculate each line separately with its corresponding rate and add up the results.