Tax-exclusive vs tax-inclusive pricing
In the United States, sales tax is often added at checkout, so the sticker price and final price are different. In many VAT systems, the consumer-facing price already includes tax. That means one calculator should handle both directions: adding tax to a subtotal and removing tax from an all-in total.
Those two flows look similar but use different math. To add tax, you multiply the subtotal by the rate and add the result. To remove tax, you divide the final price by 1 plus the rate. That is the right way to isolate the pre-tax base instead of simply subtracting the percentage from the total.
Worked example
If a subtotal is $250 and the tax rate is 8.5%, the tax amount is $21.25 and the total becomes $271.25. If a price of $120 already includes 20% VAT, divide $120 by 1.20 to get a pre-tax subtotal of $100. The VAT portion is the remaining $20.
Best use cases
- Check checkout totals before buying.
- Back out VAT from supplier or marketplace invoices.
- Model tax-inclusive price points for ecommerce or retail.
- Compare how discounts and tax interact on the final bill.