Margin and Sales Tax Calculator
The Margin and Sales Tax Calculator turns a cost and target margin into a customer checkout total under a US-style sales-tax workflow. Enter the cost of the item or job, the gross margin you want before tax, and the sales tax rate. The result includes the gross customer price as the main result, then shows the pre-tax net price, sales tax amount, profit before tax, markup on cost, and target margin.
This page is intentionally close to, but not the same as, the VAT version. Both calculators solve a margin-based net price and then add tax. The difference is framing and use case. Sales tax in the United States is often added at checkout, can vary by state and locality, and is usually presented separately on receipts. VAT systems often emphasize tax-inclusive shelf or invoice prices. Use the calculator whose labels match the quote, invoice, or accounting record you are preparing.
What the calculator does
The calculation method first converts the target margin into a pre-tax selling price. If the desired margin is 35%, cost must represent 65% of the selling price. Once that net selling price is known, the calculator multiplies it by the sales tax rate to find the tax collected from the customer. The main result is the pre-tax price plus that tax.
The profit line is measured before tax. That is important: collected sales tax is not a reward for the seller and should not be used to calculate gross profit. The markup line is displayed because many businesses set prices from cost, while financial reports discuss margin on revenue. If you only need tax on a known price, use the sales tax calculator. For margin without tax, use the margin calculator. For cost-plus pricing before tax, compare the markup calculator. For a VAT-specific version, use the vat calculator or the margin-and-VAT page.
Formula
The margin rate is entered as a percent and applied to the pre-tax selling price:
Sales tax is calculated on that net price:
The customer total is:
Profit and markup are:
Checking a margin and sales tax scenario
Use the calculator’s default-style scenario: $80 cost, 35% target margin, and 8.25% sales tax. A 35% margin means cost is 65% of the pre-tax selling price.
Net price before tax:
Sales tax:
Customer gross price:
The calculator also reports $43.08 of profit before tax, because $123.08 pre-tax revenue minus $80 cost leaves that amount. The equivalent markup on cost is 53.85%. The customer pays $133.23, but only $123.08 is the seller’s revenue for margin analysis; $10.15 is the collected tax amount.
Pricing use cases
Retailers can use this calculator to set register prices before entering items into a point-of-sale system. Contractors can use it to quote materials or taxable services while preserving a target margin on the job itself. Online sellers can use it for scenario planning when a marketplace, checkout provider, or tax engine later calculates the exact rate from the customer’s delivery address.
The calculator is also useful for explaining price changes to non-finance colleagues. A manager may ask why a product with an $80 cost and a 35% margin does not sell for $108 after adding 8.25% tax. The answer is that $108 would be an $80 cost plus 35% markup, not a 35% margin. To earn a 35% margin, the pre-tax price must be $123.08, so tax pushes the customer total to $133.23.
Caveats and compliance notes
Sales tax is more than a single arithmetic rate. Rates and rules can vary by state, locality, product category, exemption certificate, customer type, delivery address, and marketplace arrangement. A rate used for one store, customer, or product may not apply to another. The calculator does not determine taxability or filing obligations; it only shows the pricing impact after you enter a rate.
Rounding can also differ. This calculator displays amounts rounded to cents. Some systems calculate tax per line, some on the invoice total, and some follow state-specific rounding rules. If you sell multiple units, test the exact quantity in your point-of-sale or invoicing platform before publishing a price list.
Finally, avoid using the gross customer total as the revenue denominator for margin. Doing so would make tax appear to dilute the margin, even though the tax was never business revenue. Keep the net price before tax for margin reporting, the sales tax amount for remittance, and the gross price for the customer-facing total.
Method scope and source version
User-supplied US-style sales-tax rate; no jurisdictional rate is asserted. Evergreen method only; defaults/examples must not be represented as current market, legal, tax, or institutional data. The sources below support the stated method and definitions; they do not supply a live rate, quote, legal conclusion, lender offer, or institution-specific policy.
Sources
- Streamlined Sales Tax Governing Board, Remote seller state guidance — state-by-state sales-tax administration guidance.
- Tax Foundation, State and local sales tax rates — context on combined state and local sales-tax rates.
- Avalara, What is sales tax? — overview of sales-tax collection and remittance concepts.