Free tool Selling price calculator with profit margin
With this selling price calculator you enter your costs and the margin you want, and it gives you the price with fees and tax. Also, it works the other way around: it tells you the margin your current price leaves you.
Free Fees and tax Margin and markup
By Robert Riera, founder of ScaleUp Agency Updated November 2026
Work out your selling price and your margin
Enter your costs and the margin you want, and we give you the price. You can also do it the other way around: check the margin your current price leaves you.
Your result
Enter your cost and the margin you want, and you will see your selling price here.
Enter your cost and your price, and you will see the margin it leaves you here.
Your profit per unit is the most you could pay in ads for each sale without losing money. With that number, work out your ad spend in the advertising budget calculator.
Want your prices and your ads working together?
Margin and markup are not the same. For example, if you buy at 100 and sell at 150, you make 50: that is a 50% markup on cost, but a 33% margin on price. Sales tax is not profit, so margin is always calculated on the price before tax.
How the selling price calculator works
Many businesses add a percentage to their cost and think that is their margin. It is not. That is why the selling price calculator divides instead of adding.
1. Total cost per unit
First, add what the product costs you and any per unit costs, such as packaging or shipping.
total cost = cost + other costs
2. Price before tax
Then, divide total cost by 1 minus your margin and your fee. That way, the payment fee comes out of the price, not out of your profit.
price = total cost ÷ (1 minus margin minus fee)
3. Final price
Next, add sales tax or VAT to the price before tax, if it applies where you sell.
final price = price × (1 + tax)
Example: with a $40 cost, $5 shipping, a 4% fee and a 30% margin, the price before tax is $68.18. These are sample values.
Margin or markup: the mix-up that costs the most money
Markup is calculated on cost and margin is calculated on price. For example, if you buy at 100 and sell at 150, you make 50: that is a 50% markup, but a 33% margin.
The mix-up gets expensive when you decide how much to pay for ads, discounts or fees, because all of them come out of the price. That is why the calculator shows you both.
- Tax is not margin. You collect it, but you pass it on to the government, so margin is calculated on the price before tax.
- Fees belong in the price. If the marketplace charges a percentage of the sale, add it to the calculation, not to your cost.
- Your profit per unit is your ad ceiling. If a customer costs you more than that in ads, you lose money on every sale.
Questions about the selling price calculator
How do I calculate the selling price of a product?
Add up your total cost per unit and divide it by 1 minus the margin you want and the fee. For example, with a $45 cost and a 30% margin without fees, the price before tax is 45 divided by 0.7, that is, $64.29.
What is the difference between margin and markup?
Markup is profit over cost and margin is profit over price. So a 50% markup equals a 33% margin.
Is sales tax part of the margin?
No. You collect the tax, but it is not yours, so margin is always calculated on the price before tax. In the “Check my margin” tab you can enter the tax included in your price and the calculator removes it.
How do I include payment or marketplace fees?
Enter them in the fee field. Since they are charged on the price, the calculator takes them out of the price and not out of the cost, which is the right way to do it.
What margin should my business have?
It depends on your industry, your competition and your fixed costs. At the very least, your profit per unit has to cover what it costs you to win each customer. So compare it with your cost per sale in the advertising budget calculator.
More free tools
With your price clear, you can work out how much to spend on ads and whether they make a profit. You can see all of them in free marketing tools.
Advertising budget calculator
How much to spend per month on Google, Meta or TikTok to hit your sales goal.
Use the toolWhatsApp link generator
Your click to chat link with a ready message and a QR code to download.
Use the toolROAS calculator
How much you sell for every dollar in ads, and whether the campaign makes a profit.
Use the toolWant your prices and your ads working together?
If the selling price calculator showed you a tight margin, tell us what you sell. See our ecommerce website design or digital marketing consulting services, or read website or online store.
