Instantly compute net tax-exclusive price, VAT or sales tax, EU retail surcharge, and the critical pricing spread between gross profit margin (on selling price) and markup (on unit cost).
VAT Reverse-Calculation & Margin vs Markup Formulas
The two costliest arithmetic mistakes in commerce are subtracting the VAT percentage directly from a tax-inclusive price and confusing markup on cost with gross margin on sales:
2) Reverse Tax Extraction: Net = Total / (1 + TaxRate + SurchargeRate) [Never Total * (1 - 0.21)]
3) Target Gross Margin Pricing: Net = Cost / (1 - Margin% / 100)
4) Margin vs Markup: GrossMargin% = (Net - Cost) / Net | Markup% = (Net - Cost) / Cost
For EU/Spanish VAT schedules used in cross-border invoicing, official statutory benchmarks are published by AEAT (Spanish Tax Agency) under Law 37/1992.
Quick Comparison: Why 30% Markup Is Not a 30% Margin
| Pricing Scenario | Formula Applied | Real Gross Margin | Markup on Cost |
|---|---|---|---|
| $100 cost + 30% markup (at 20% VAT) | Net = $130.00 · Gross = $156.00 | 23.08% (not 30%) | 30.00% |
| $100 cost targeting 30% gross margin | Net = 100 / 0.70 = $142.86 · Gross = $171.43 | 30.00% | 42.86% |
| Extract net from $120 receipt (20% VAT) | 120 / 1.20 = $100.00 (not 120 * 0.80 = $96) | — | — |
| $100 cost targeting 50% gross margin | Net = 100 / 0.50 = $200.00 (doubles cost) | 50.00% | 100.00% |
FAQ
Why can't I just multiply a tax-inclusive price by 0.80 to remove 20% VAT?
Because 20% was added to the smaller net price ($100 × 1.20 = $120). Taking 20% off $120 subtracts $24 and leaves $96 instead of $100. Always divide by 1 + taxRate (1.20).
Should SaaS and ecommerce businesses track margin or markup?
Always anchor P&L targets on gross margin (profit divided by net revenue, excluding VAT/sales tax), because payment fees, discounts, and acquisition spend come out of selling price, not cost.
Does this calculator include VAT in gross margin?
No—collected VAT and sales tax pass straight through to tax authorities. Both gross margin and markup are properly computed from net tax-exclusive revenue.
Is any pricing data transmitted?
Zero network calls are made; all calculations stay inside your browser tab.