π·οΈ Margin and Sales Tax Calculator
Set your margin price, then add US sales tax.
Final price with sales tax
Estimates for planning only, not financial advice.
US retail pricing runs margin first, sales tax second: set your profit price, then add tax at the register. A $60 cost at 35 percent margin prices at $92.31 before tax; 8 percent sales tax adds $7.38 for a $99.69 total. This calculator runs both steps, keeps the tax amount visible, and reports the true margin on the pre-tax price.
The sequencing is not pedantry. Tax applies to the selling price, so building it into cost before applying margin undercharges the customer and quietly transfers part of your margin to the state. At retail volume, that leak compounds daily.
How to Use This Calculator
Enter the unit cost, the target margin percent, and the combined sales tax rate for the selling location. The calculator shows the pre-tax price, tax amount, and checkout total.
Enter the unit cost, net of any resale-exempt wholesale treatment.
Enter the target margin and the combined state-plus-local sales tax rate.
Read the checkout total. For VAT-style tax-included pricing, our margin and VAT calculator runs the equivalent math.
The Formula
The margin step uses division, not multiplication: cost / (1 - margin) inverts the margin definition correctly, while cost x (1 + margin) computes markup and underprices. At 35 percent on $60, the right price is $92.31 and the markup mistake gives $81, an $11.31 error per unit before tax is even added.
Worked Example
With the defaults: $60 cost, 35 percent margin, 8 percent sales tax. The pre-tax price is 60 / (1 - 0.35) = $92.31. Profit per unit is $32.31. The sales tax is 92.31 x 0.08 = $7.38. The checkout total is $99.69. The true margin on the pre-tax price is (92.31 - 60) / 92.31 = 35.0 percent; on the checkout total it would falsely read 39.8 percent.
Register and Pricing Discipline
| Practice | Correct handling | Common error |
|---|---|---|
| Tax base | Discounted selling price | Taxing the pre-discount price |
| Margin measurement | On pre-tax price | On checkout total |
| Wholesale purchases | Resale certificate, no tax paid | Paying tax, then charging it again |
| Rate changes | Verify annually | Stale rate under-collects |
Each row is a real audit finding. States test exactly these mechanics, and the penalties exceed the tax. For the pure margin algebra behind any price, cost, or margin unknown, our margin calculator solves it directly.
Psychological Pricing Note
The $99.69 total is no accident of the defaults: retailers work backward from charm prices. If the math gives $99.69 pre-tax at your target margin, consider whether $99.99 checkout pricing still clears your margin after tax, or whether the cost structure needs a nudge. Never cut margin to hit a price point without computing the new margin first; the calculator makes that a ten-second check.
My rule: price from margin, verify against psychology, and let the tax be the tax. The moment tax enters your margin thinking, both numbers get worse.
Tax-Exempt Sales and Resale Certificates
Not every sale is taxable. Wholesale buyers present resale certificates, and you collect no tax because they will collect it at retail. Nonprofits, government agencies, and manufacturers buying inputs often qualify for exemptions, each with its own certificate you must keep on file. Audits penalize missing certificates harshly: without the paper, the state treats the sale as taxable and bills you.
Nexus determines where you must collect. Physical presence still counts, but economic nexus thresholds, often $100,000 in sales or 200 transactions per state, now catch remote sellers. Marketplaces collect in most states under facilitator laws, but your direct website sales are your responsibility. Track nexus state by state as you grow; the penalties for collecting in the wrong place, or not collecting where required, compound fast. For multi-state rate lookup, our Missouri sales tax calculator shows how local stacking works in one state.
Pricing Strategy With Tax Included
How you present tax-inclusive pricing changes behavior. Charm prices like $19.99 work on the pre-tax number, but the register total breaks the spell; some retailers price at $21.06 so the out-the-door total lands on a round number. Test both: customers say they prefer tax-inclusive shelf prices, yet A/B tests often show pre-tax pricing wins on conversion because the visible number is lower.
For margin planning, always compute margin on the pre-tax price and treat collected tax as pass-through, never as revenue. Businesses that mentally book the tax-inclusive total as sales consistently underprice. When expanding to new states, model the local rate stack before setting prices: a 10 percent combined rate needs a meaningfully different price architecture than a 6 percent one. Our margin comparison calculator helps rank products once taxes are stripped out.
Estimates for planning only, not financial advice.Frequently Asked Questions
How do you calculate price with margin and sales tax?
First set the margin price: cost divided by one minus the margin. Then add sales tax on that price. A $60 cost at 35 percent margin prices at $92.31 before tax; 8 percent sales tax adds $7.38 for a $99.69 checkout total. Margin first, tax second, always in that order.
Is sales tax added before or after the margin?
After. Sales tax applies to the selling price the customer pays, so compute your margin price first. Adding tax to cost and then applying margin mixes a pass-through tax into your profit math and understates what the customer should pay.
What is the formula for margin plus sales tax?
Final price = cost / (1 - margin) x (1 + tax rate). With $60 cost, 35 percent margin, and 8 percent tax: 60 / 0.65 x 1.08 = $99.69. The calculator shows each step separately so the tax amount is visible for register programming.
How is this different from the VAT version?
The math is identical; the presentation differs. VAT is typically included in displayed prices, while US sales tax is added at checkout. Our margin and VAT calculator handles VAT-inclusive quoting, and this one handles the US add-at-register convention.
What sales tax rate should I use?
Your jurisdiction's combined state plus local rate where the sale occurs. State rates run 0 to about 7.25 percent, and local additions can push the total past 10 percent in some cities. Our Missouri sales tax calculator shows how state-plus-local stacking works in one example state.
Do I pay sales tax on my wholesale cost?
Generally no, if you buy for resale with a valid resale certificate. You collect tax from the retail customer and remit it. Paying sales tax on inventory and then charging it again on the sale is double taxation the resale exemption exists to prevent.
Should margin be calculated on the pre-tax or post-tax price?
Pre-tax. Sales tax passes through to the state; it is not your revenue. A $99.69 checkout on a $60 cost looks like 39.8 percent margin but the true margin is 35.0 percent on the $92.31 pre-tax price. Report and manage the pre-tax number.
How do discounts interact with sales tax?
Tax applies to the discounted price the customer actually pays, in most states. A 10 percent coupon on the $92.31 price drops the taxable amount to $83.08, and 8 percent tax on that is $6.65. Program the register to discount first, then tax.
What about shipping and sales tax?
It depends on the state: some tax shipping charges, some exempt them, and some tax handling but not shipping. If you pass shipping to customers, check your state's rule, since getting this wrong is a common audit finding for small retailers.
How often do sales tax rates change?
Local jurisdictions adjust rates regularly, often after elections. Review your rates at least annually and after any move or expansion. Tax automation software exists for this, but a retailer with one location can verify the current combined rate on the state revenue department's site in minutes.