IVA / VAT Calculator: How It Works Across Mexico, Spain, and Latin America
VAT (Value Added Tax) — called IVA (Impuesto al Valor Agregado) in Spanish-speaking countries — is a consumption tax applied at each stage of the supply chain and ultimately borne by the end consumer. Unlike a sales tax applied only at the point of sale, IVA is collected incrementally: each business in the chain charges IVA on its sales (IVA débito / output VAT) and claims back the IVA paid on its purchases (IVA crédito / input VAT). Only the net difference is remitted to the tax authority.
This calculator handles the two most common operations: adding IVA to a base price (for issuing invoices) and extracting IVA from a gross price (for reconciliation or receipt analysis).
The Two Core Formulas
Adding IVA to a base (net) amount:
Gross (tax-inclusive) = Base x (1 + IVA rate)
Example at 16% (Mexico standard): Base = MXN 500. Gross = 500 x 1.16 = MXN 580. IVA amount = MXN 80.
Extracting IVA from a gross (tax-inclusive) amount:
Base = Gross / (1 + IVA rate)
IVA amount = Gross x (IVA rate / (1 + IVA rate))
Example at 16%: Gross = MXN 580. Base = 580 / 1.16 = MXN 500. IVA = 580 x (0.16 / 1.16) = MXN 80.
A common mistake: dividing the gross by the IVA rate directly (580 x 0.16 = 92.80) overstates the IVA. The correct denominator is (1 + rate), not 1.
IVA Rates by Jurisdiction (2026)
| Country | Standard Rate | Reduced Rate | Zero Rate | Authority |
|---|---|---|---|---|
| Mexico | 16% | 8% (northern border zone) | 0% (basic food, medicine, exports) | SAT (Ley del IVA) |
| Spain | 21% | 10% (food, hospitality) | 4% (basic food, books, medicine) | Agencia Tributaria (Ley 37/1992) |
| Colombia | 19% | 5% (certain goods) | 0% (basic food, medicine) | DIAN |
| Argentina | 21% | 10.5% (certain food) | 0% (basic necessities) | AFIP |
| Chile | 19% | — | Exports at 0% | SII |
| European Union (avg) | ~21.5% | Varies by member state | Exports at 0% | EC VAT Directive |
Mexico's 8% border rate applies to the Franja Fronteriza Norte (Baja California, parts of Sonora, Chihuahua, Coahuila, Nuevo León, and Tamaulipas) and is a targeted economic stimulus measure.
B2B vs B2C: How IVA Works in Practice
B2C (Business to Consumer): The business charges the consumer the gross price (base + IVA) and remits the IVA to the tax authority. The consumer bears the full tax cost and cannot recover it.
B2B (Business to Business): The selling business charges IVA on the invoice. The buying business pays the gross amount but claims the IVA back as input credit on its own tax return. In an efficient supply chain, IVA is fiscally neutral for registered businesses — they are collection agents, not taxpayers.
IVA saldo a favor (credit balance): When a business's input IVA (on purchases) exceeds its output IVA (on sales) in a period — common for exporters or fast-growing businesses with heavy capex — it accumulates an IVA credit that can be applied against future obligations or, in some cases, refunded.
Retención de IVA (Reverse Charge) in Mexico
Mexico applies withholding (retención) on IVA in specific transactions. Instead of the seller collecting and remitting IVA, the buyer withholds part or all of the IVA at source. The LIVA requires retention in:
- Services provided by physical persons (personas físicas) to legal entities (personas morales): buyer retains 2/3 of IVA (approximately 10.67% on a 16% transaction).
- Independent transportation services: buyer retains 4% of IVA.
- Certain agricultural services.
Example: A freelancer (persona física) invoices MXN 10,000 + IVA to a company (persona moral). Standard IVA: MXN 1,600. Retained by client: MXN 1,066.67 (2/3). Net IVA transferred to freelancer: MXN 533.33. The freelancer must declare the full MXN 1,600 on their IVA return and can credit the MXN 533.33 already withheld.
CFDI 4.0 and Electronic Invoicing in Mexico
Since 2022, all Mexican electronic invoices (CFDI — Comprobante Fiscal Digital por Internet) must comply with version 4.0 of the SAT schema. IVA must appear as a separate line item with the attribute type "IVA", the applicable rate (0.160000 for 16%, 0.080000 for 8%, or 0.000000 for zero-rated), and the calculated amount. Key rules:
- Tax base (base imponible) must be stated separately from the IVA amount.
- Zero-rated transactions (tasa cero) must still include the IVA element at rate 0.000000 — they cannot simply omit the tax element.
- Exempt transactions (exentas) use a different classification and do not include an IVA element.
- The CFDI must include the RFC (Registro Federal de Contribuyentes) of both parties, the use of the CFDI (uso CFDI), and the payment regime.
Common IVA Calculation Mistakes
Mixing tax-inclusive and tax-exclusive prices: If your cost is tax-inclusive and your selling price is tax-exclusive (or vice versa), your margin calculation will be wrong. Establish a consistent convention for all internal calculations.
Applying the wrong rate to the wrong good: In Spain, a restaurant meal is subject to the 10% reduced rate, not the 21% standard rate. Catering for corporate events may differ again. Check the applicable rate for each product/service category.
Treating IVA as revenue: IVA collected from customers is not income — it is a tax liability. Recording gross receipts (including IVA) as revenue inflates top-line figures and creates accounting errors.
Ignoring IVA on inter-company transactions: Internal transactions between legal entities in a group are subject to IVA at arm's length prices, even if the group nets out the cash.
Worked Example: Freelancer Issuing an Invoice in Mexico
A UX designer (persona física, Régimen Simplificado de Confianza / RESICO) delivers a project to a tech company (persona moral). Agreed fee: MXN 50,000 before tax.
- Base: MXN 50,000
- IVA at 16%: MXN 8,000
- Gross on invoice: MXN 58,000
- IVA retained by client (2/3): MXN 5,333.33
- IVA transferred to designer: MXN 2,666.67
- ISR withheld by client (at 10%): MXN 5,000
- Net received by designer: MXN 58,000 - 5,333.33 (IVA retained) - 5,000 (ISR) = MXN 47,666.67
On the designer's monthly IVA return: output IVA = MXN 8,000. Credit for withheld IVA = MXN 5,333.33. Net IVA to pay to SAT: MXN 2,666.67 (the portion the client already passed along).
Worked Example: Retailer Pricing to Hit a MXN 99.99 Sticker Price
A retailer in Mexico wants a shelf price (tax-inclusive) of exactly MXN 99.99. At 16% IVA:
- Base = 99.99 / 1.16 = MXN 86.20
- IVA = 99.99 - 86.20 = MXN 13.79
The retailer records MXN 86.20 as revenue and MXN 13.79 as IVA payable. Cost-of-goods and margin calculations should use the MXN 86.20 base, not the MXN 99.99 gross.
Zero-Rated vs Exempt: A Critical Distinction
Zero-rated and exempt transactions are often confused but have different tax implications for the supplier:
Zero-rated (tasa cero / 0%): IVA applies at 0%. The supplier can still claim input VAT credit on purchases related to zero-rated sales. In Mexico, exports and basic food (alimentos en estado natural) are zero-rated. In Spain, exports and certain intra-EU supplies are zero-rated.
Exempt (exento): IVA does not apply. The supplier cannot claim input VAT on costs related to exempt supplies. In Mexico, medical services, education, and residential lease income are typically exempt. In Spain, financial services, insurance, and education are exempt.
The distinction matters most for businesses with mixed taxable/exempt activities. A clinic that provides both taxable diagnostic services (equipment rental) and exempt medical care must apportion input VAT — only recovering the portion attributable to taxable activities. Getting this apportionment wrong results in either over-claiming (creating a tax liability) or under-claiming (leaving money owed to the business).