Margin and Sales Tax Calculator

Enter your cost, markup and sales tax rate to get the customer price, net price, profit and margin.

Updated

Enter to calculate Esc to clear

Margin and Sales Tax Calculator

Our Margin and Sales Tax Calculator builds a shelf price in one step. Enter what an item costs you, the markup you add and the sales tax rate, and it shows the price the customer pays, the net price before tax, your profit, your margin and the tax collected. It suits shop owners, online sellers and anyone checking that a tax-inclusive price still earns the margin they expect.

Quick answer

Net price is cost × (1 + markup) and the customer price is net price × (1 + tax). A 50 cost with a 30% markup and 15% tax gives 50 × 1.30 = 65, then 65 × 1.15 = 74.75.

  • Profit: net price − cost, here 15.
  • Margin: profit ÷ net price, 15 ÷ 65 ≈ 23.08%.
  • Sales tax: net price × tax rate, 65 × 15% = 9.75.
  • Tax is not profit: leave it out of the margin.

Margin and Sales Tax Formulas

Net = cost × (1 + mu)
Profit = net − cost
Margin = profit ÷ net
  × 100
Price = net × (1 + t)
  • mu: the markup as a decimal, such as 0.30.
  • t: the sales tax rate as a decimal, such as 0.15.
  • Net: your selling price before tax.
  • Price: what the customer pays, tax included.

How to Price an Item With Markup and Tax

A shop buys a pair of headphones for 50, adds a 30% markup and charges 15% sales tax:

  1. Net price. 50 × 1.30 = 65.
  2. Profit. 65 − 50 = 15.
  3. Margin. 15 ÷ 65 × 100 ≈ 23.08%.
  4. Sales tax. 65 × 0.15 = 9.75.
  5. Customer price. 65 + 9.75 = 74.75.
Customer pays 74.75 Cost 50 15 Net price 65 (margin base) Profit Tax 9.75
Tax sits on top of the net price. The 15 profit is 23.08% of the 65 net price; the 9.75 tax belongs to the tax office.

Markup, Margin and Price on a Cost of 100

With 8% sales tax:

MarkupMarginWith tax
10%9.09%118.80
20%16.67%129.60
30%23.08%140.40
40%28.57%151.20
50%33.33%162
100%50%216

Why Tax Stays Out of the Margin

Sales tax is money you collect for the government and pass on, so it is not part of your revenue. Measuring margin on the tax-inclusive price overstates it: on the headphones, (74.75 − 50) ÷ 74.75 gives about 33.11%, but the real margin is 23.08%. Keep margin and markup on the net price and add tax last.

Finding the Net Price From a Tax-Inclusive Price

Divide the price with tax by one plus the tax rate: 74.75 ÷ 1.15 = 65. The tax is the difference, 74.75 − 65 = 9.75. To price from a target margin instead of a markup, use our Margin and Markup Calculator; for VAT wording, use the Margin and VAT Calculator.

More Examples

Cost, markup, taxMarginPrice
350, 20%, 16%16.67%487.20
80, 45%, 10%31.03%127.60

The 350 item sells for 420 before tax (70 profit, 67.20 tax); the 80 jacket sells for 116 before tax (36 profit, 11.60 tax).

Key Terms

Markup
Profit ÷ cost × 100.
Margin
Profit ÷ net price × 100.
Net price
Selling price before tax.
Gross price
Net price plus sales tax.

How to Use the Margin and Sales Tax Calculator

  1. Enter the cost. Type what the item costs you, such as 50.
  2. Enter the markup. Type the markup percentage, such as 30.
  3. Enter the sales tax rate. Type the tax rate, such as 15. The price with tax, net price, profit, margin and tax appear as you type.

Example: cost 50 with a 30% markup is a net price of 65; adding 15% sales tax gives 65 × 1.15 = 74.75, and the margin is 15 ÷ 65 ≈ 23.08%.

Who Can Use This Calculator?

RetailersSet shelf prices with tax
Online sellersPrice listings by region
WholesalersQuote tax-inclusive prices
StudentsPractise markup and tax

Frequently Asked Questions (FAQs)

How do I calculate a price with markup and sales tax?

Multiply the cost by one plus the markup to get the net price, then multiply by one plus the tax rate. Cost 50, 30% markup and 15% tax gives 74.75.

Is margin calculated before or after sales tax?

Before. Margin is profit divided by the net price, because sales tax is collected for the government and is not your revenue.

How do I turn a markup into a margin?

Divide the markup by 100 plus the markup and multiply by 100. A 30% markup is about a 23.08% margin.

How do I remove sales tax from a price?

Divide the tax-inclusive price by one plus the tax rate. 74.75 at 15% tax is 74.75 ÷ 1.15 = 65 before tax.

Does sales tax change my profit?

No. Profit is net price minus cost, so the tax rate changes only what the customer pays.

Can I enter a 0% tax rate?

Yes. With no sales tax the price with tax equals the net price.

Is this the same as a VAT calculator?

The maths is the same when VAT is added on top of the net price; our Margin and VAT Calculator uses VAT wording.

Is the Margin and Sales Tax Calculator free?

Yes. It is free to use, with no sign-up and no limit on how many times you use it.

Sources

Try our Margin and Sales Tax Calculator to price any item with markup and tax in seconds.