Available
PRICING AND MARGINS

Selling price calculator with tax

Set the selling price with a margin or markup and see the effect of commissions, discounts and a tax rate you type.

  • Instant calculation
  • No sign-up
  • Your data stays in your browser

Enter your figures

Change the amounts and the result updates.
Selling price including tax
67.69
Price before tax: 61.54
  • Cost · 40.00
  • Profit · 21.54
  • Tax · 6.15
Total cost40.00
Commission0.00
Profit per unit21.54
Actual margin35.00%
Actual markup53.85%
Tax6.15
The commission is calculated on the price before tax. Tax is shown separately and is not part of the profit. The tax rate is the percentage you type; this tool does not know any country’s rules.

This version applies the tax percentage you type. It does not know the tax rules of any country: check the rate and how it is calculated with official sources or your adviser.

KEY FORMULAS

How it is calculated

  • Total costUnit cost + additional costs
  • Price before tax (target margin)Total cost ÷ (1 − commission − margin)
  • Price before tax (markup)Total cost × (1 + markup)
  • Price including taxPrice before tax × (1 + tax rate)

Pricing a product or service means deciding how much of what you charge covers the cost, how much the sales channel takes, how much is profit and how much is tax. This calculator separates those four parts. You enter the cost, any additional costs, the margin or markup you are aiming for, the commission and the discount if there are any, and you get the price before tax, the tax, the price including tax and the profit per unit.

It also works the other way round. If you already have a price, the calculator tells you what margin it really leaves.

The tax rate is simply the percentage you type. The calculator does not know the rates or rules of any country, so the initial value is only an editable illustration. Enter 0 if you want to ignore tax.

How to use the calculator

  • Unit cost: what each unit costs you, before tax.
  • Additional costs per unit: shipping, packaging or any other cost you pay on each sale.
  • Method: choose between margin on sales (the percentage of the price you want to be profit) and markup on cost (the percentage you add to the cost). They are different measures, and the calculator does not carry a value over from one to the other when you switch method.
  • Commission: if you sell through a channel that charges a percentage. It is calculated on the price before tax (see the mistakes section).
  • Planned discount: if you want to advertise a list price with a reduction.
  • Tax rate: editable; enter 0 for no tax.

To check a price you have already set, use the “Analyse a price” mode: enter the price, say whether it includes tax, and add the cost and the commission.

What a price is made of

Part What it is
Cost What you pay for the product
Additional costs Shipping, packaging and similar, per unit
Commission What the sales channel keeps, if any
Profit What is left after the above
= Price before tax The sum of the four parts
Tax Added to the price before tax. It is not part of the margin or the profit
= Price including tax The price the customer pays

Margin or markup: choose the base before calculating

With the margin on sales method, the calculator uses:

Price before tax = Total cost ÷ (1 − commission − margin)

Total cost is the cost plus the additional costs. Commission and margin are subtracted together because both are percentages of the same price. That is why their sum must be below 100%. With a 15% commission, an 85% margin cannot be reached.

With the markup on cost method:

Price before tax = Total cost × (1 + markup)

The real margin that remains after the commission is then shown:

Real margin = (Price − Total cost − Commission) ÷ Price

In both cases:

  • Commission (amount) = commission (%) × price before tax
  • Profit per unit = price − total cost − commission
  • Tax = price before tax × tax rate
  • Price including tax = price before tax × (1 + tax rate)

If you want to dig into the difference between the two bases, the profit margin calculator explains it with an equivalence table.

Three worked examples

The examples use a 10% tax rate purely as an illustration, and plain numbers with no currency.

Example 1: margin on sales, no extras

An item costs 40 and you want a 35% margin.

  • Price before tax: 40 ÷ (1 − 0.35) = 40 ÷ 0.65 = 61.54
  • Profit: 61.54 − 40 = 21.54
  • Equivalent markup: 21.54 ÷ 40 = 53.85%
  • Tax: 61.54 × 0.10 = 6.15
  • Price including tax: 67.69

The profit is 21.54 whether or not the customer pays the tax. That 6.15 of tax is not yours.

Example 2: markup on cost with additional costs

A product costs 25, with 3 of shipping and packaging per unit. You apply a 50% markup.

  • Total cost: 25 + 3 = 28
  • Price before tax: 28 × 1.50 = 42.00
  • Profit: 42 − 28 = 14.00
  • Real margin: 14 ÷ 42 = 33.33%
  • Tax (10%): 4.20 → price including tax: 46.20

A 50% markup is equivalent to a 33.33% margin, not 50%.

Example 3: with a channel commission and a discount

A product costs 30, plus 2 of additional costs. You sell it on a platform that charges a 15% commission and you want a 20% margin.

  • Total cost: 32
  • Price before tax: 32 ÷ (1 − 0.15 − 0.20) = 32 ÷ 0.65 = 49.23
  • Commission: 49.23 × 0.15 = 7.38
  • Profit: 49.23 × 0.20 = 9.85
  • Check: 32 + 7.38 + 9.85 = 49.23
  • Tax (10%): 4.92 → price including tax: 54.15

If you want to advertise this product with a 10% discount and still collect 49.23 before tax, the list price must be 49.23 ÷ 0.90 = 54.70 before tax, which is 60.17 including tax. Raising the price by 10% is not enough: 49.23 × 1.10 would give 54.15, and after a 10% discount you would collect only 48.74, less than planned.

Tax is added at the end

Tax is added on top of the price before tax and does not change the margin. The examples use 10% as an illustrative figure, and the calculator lets you change the rate. Which rate applies depends on the transaction and on the rules where you operate; check it with the official tax information for your country or with your adviser.

Analysing a price you already have

Suppose you sell the product from example 3 at 54.15 including tax.

  1. Price before tax: 54.15 ÷ 1.10 = 49.23.
  2. Commission (15%): 7.38.
  3. Profit: 49.23 − 32 − 7.38 = 9.84 (the difference of one cent comes from rounding the price to 54.15).
  4. Real margin: 20.00%.

If you cut it to 45 before tax, the commission would be 6.75, the profit 6.25 and the margin would fall to 13.89%. A discount is not simply taken off the margin; it also reduces the base you are paid on.

Common mistakes when setting a price

Confusing margin with markup

If you want a 50% margin and apply a 50% markup, you get 33.33%. For a 50% margin, the markup you need is 100%.

Applying the margin to the price with tax

With the price including tax from example 1 (67.69) and a cost of 40, the calculation would give a margin of 40.91%. That margin does not exist: the tax is not yours. Margin is always calculated on the price before tax.

Forgetting commissions, shipping or returns

A margin calculated only with the product cost overstates the profit. Every cost you pay per unit sold must go into the calculation.

Discounting without recalculating

Cutting the price by 10% does not cut the profit by 10%: it can cut it by much more. Always calculate on the price you actually sell at.

Assuming every channel calculates commission the same way

The calculator takes the commission as a percentage of the price before tax. Some channels may apply it to a different base. Check your channel’s terms before relying on the result.

Treating the tax you collect as income

The tax you collect from the customer is not profit for the business. To see how tax is split on an invoice with several lines, use the tax base calculator.

From the calculated price to the published price

The calculator’s price is a floor, not an order. If you decide to round it or adjust it to the market, enter the final price again in “Analyse a price” mode and check the margin that remains. That margin must then cover your overheads. To see how the result of a whole period is split, there is the gross and net margin calculator.

Official sources: the tax rate and how it is applied depend on your country; consult your tax authority’s official information. More on how we review the content in Methodology.

FREQUENTLY ASKED QUESTIONS

Frequently asked questions

Is the margin calculated on the cost or on the price?

With “Target margin” it is calculated on the selling price before tax. If you prefer a percentage on the cost, use “Markup on cost”.

What should I put under “Additional costs”?

Any cost you pay for each unit sold that is not already in the unit cost: shipping, packaging, personalisation…

Why does the price jump when I add a commission?

Because the commission is paid on the selling price, not on the cost. Margin and commission are taken together from 100% of the price, so their sum must be below 100%.

Can I analyse a price I already have?

Yes, with “Analyse a price”: enter the price, say whether it includes tax, then the cost and the commission, and the calculator shows the real margin it leaves.

Which tax rate should I use?

The calculator applies the percentage you type and knows no country’s rules. The initial value is only an editable illustration; check the right rate with official sources or your adviser.