Home › Margin With Sales Tax

Margin Calculator With Sales Tax

By · Updated Nov 10, 2026 · Editorial policy

Margin is worked out on the price before sales tax. Take the tax out of a tax-inclusive price, see your true margin, or set a price for a target margin and add the tax.

Margin when your price includes or excludes sales tax

Price before tax$0your revenue
Sales tax$0passed on, not yours
Customer pays$0
Profit per unit$0
Margin0%on the pre-tax price
Markup0%
If tax were counted as revenue0%overstated margin

Price for a target margin, plus sales tax

Price before tax$0cost ÷ (1 − margin)
Sales tax$0
Price including tax$0

Why margin is worked out on the pre-tax price

Sales tax you collect is passed on to the tax authority, so it isn’t part of your revenue. Your margin and markup should be worked out on the price before tax:

Example: an item costs $30 and the shelf price is $54 including 8% tax. The pre-tax price is $54 ÷ 1.08 = $50.00, the tax is $4.00 and profit is $20.00, a 40% margin. Counting the tax as revenue would show 44.44%, which overstates what you keep.

Target example: for a 35% margin on a $26 cost, the pre-tax price is $26 ÷ 0.65 = $40.00. With 7% tax the customer pays $42.80.

Sales tax rules (what is taxable, which rate applies, and whether prices may be shown tax-inclusive) vary by location. This calculator does the arithmetic only and is not tax advice.

Formulas as of November 10, 2026: standard pricing arithmetic, no external rates. Results are estimates, rounded to the cent; your accountant’s treatment of costs and taxes may differ.

FAQ

Should I include sales tax when calculating margin?

No. Sales tax you collect is passed on, so calculate margin on the price before tax. A $54 tax-inclusive price at 8% is $50 of revenue.

How do I remove sales tax from a price?

Divide the tax-inclusive price by 1 plus the tax rate. $54 ÷ 1.08 = $50.00 before 8% tax.

Cite this page: Pierre Mentor, “Margin Calculator With Sales Tax,” MarkupCalc.com, updated Nov 10, 2026, https://markupcalc.com/margin-with-sales-tax-calculator/