Skip to content
OverCalculator
  1. Home
  2. Financial
  3. Margin and Sales Tax Calculator
Financial

Margin and Sales Tax Calculator

Calculate a pre-tax selling price, sales tax amount, customer gross price, profit, and markup from cost, target margin, and a US-style sales tax rate.

Published

Gross price
Customer gross price
$133.23
Net price before tax
$123.08
Sales tax amount
$10.15
Profit before tax
$43.08
Markup on cost
53.85%
Target margin
35%

$123.08 net price plus $10.15 sales tax gives a $133.23 customer price.

Your cost before profit and sales tax.
$
Profit as a percentage of the net selling price before sales tax.
%
Tax rate applied to the net price and collected from the customer.
%

Results update as you type.

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:

net price before tax=cost1margin100\text{net price before tax} = \frac{\text{cost}}{1 - \frac{\text{margin}}{100}}

Sales tax is calculated on that net price:

sales tax amount=net price before tax×sales tax rate100\text{sales tax amount} = \text{net price before tax} \times \frac{\text{sales tax rate}}{100}

The customer total is:

gross price=net price before tax+sales tax amount\text{gross price} = \text{net price before tax} + \text{sales tax amount}

Profit and markup are:

profit before tax=net price before taxcost\text{profit before tax} = \text{net price before tax} - \text{cost}

markup=profit before taxcost×100%\text{markup} = \frac{\text{profit before tax}}{\text{cost}} \times 100\%

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:

net price before tax=$80135100=$800.65=$123.08\text{net price before tax} = \frac{\$80}{1 - \frac{35}{100}} = \frac{\$80}{0.65} = \$123.08

Sales tax:

sales tax amount=$123.08×8.25100=$10.15\text{sales tax amount} = \$123.08 \times \frac{8.25}{100} = \$10.15

Customer gross price:

gross price=$123.08+$10.15=$133.23\text{gross price} = \$123.08 + \$10.15 = \$133.23

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

Frequently asked questions

Is sales tax included in gross margin?
Usually no. Gross margin is measured on the seller's revenue before sales tax because the tax is collected from the customer and remitted to a state or local tax authority. This calculator therefore calculates margin on the pre-tax selling price and reports sales tax as a separate pass-through amount.
What does the customer gross price mean?
The customer gross price is the pre-tax selling price plus the sales tax amount. It is the total the customer pays at checkout or on the invoice, assuming the entered tax rate applies to the whole taxable price and no shipping, exemptions, or local rounding adjustments are added.
How does this differ from the VAT margin calculator?
The formula is similar because both add tax after solving the net price. The difference is business context: this page uses US sales-tax language, where tax is commonly added at checkout and rates can combine state, county, city, and district components. The VAT page is framed around VAT-inclusive pricing.
Can I use this for tax-inclusive advertised prices?
You can use the result as a tax-inclusive total, but the calculator does not reverse a tax-included price. It starts with cost and target margin, finds the pre-tax selling price, then adds sales tax. If you already know the total customer price, use a sales tax calculator to back out tax.
What limitations should I remember?
The calculator assumes one tax rate applies to the entire pre-tax selling price. Real sales-tax obligations can depend on nexus, product taxability, exemptions, customer location, marketplace rules, and filing requirements. Use the arithmetic for pricing scenarios, then confirm compliance with official state guidance or a tax professional.

Related calculators

Margin and Sales Tax Calculator updated at