Profit margin calculator
Price your products with confidence. Enter what an item costs you and what you sell it for to see the profit, the margin and the markup side by side. Or work backwards: enter your cost and the margin or markup you want, and the calculator tells you the selling price. It is useful for shops, online sellers, wholesalers and anyone who needs to explain the difference between margin and markup.
What do you know?
Enter the cost and the price or target to see the result.
How to use the Profit Margin Calculator
- 1
Choose what you know
Pick 'Cost and price' if you already have a selling price, or 'Target margin' or 'Target markup' to find the price.
- 2
Enter your cost
Type the full cost of one item, including purchase price, shipping and packaging.
- 3
Enter the price or target
Type the selling price, or the margin or markup percentage you want.
- 4
Read the results
See the selling price, profit per item, margin and markup update as you type.
Margin vs markup
Both compare profit with a base, but they use different bases. Margin divides profit by the selling price; markup divides profit by the cost. A product that costs 80 and sells for 100 has a profit of 20, a margin of 20% and a markup of 25%.
To hit a target margin, divide the cost by one minus the margin: a 30% margin on a cost of 700 needs a price of 700 ÷ 0.7 = 1,000. A margin can never reach 100%, because that would need an infinite price.
- profit = price − cost
- margin % = profit ÷ price × 100
- markup % = profit ÷ cost × 100
- price for margin = cost ÷ (1 − margin)
- price for markup = cost × (1 + markup)
When to use it
- Set shelf prices that keep a consistent margin across products.
- Check whether a supplier price increase still leaves enough profit.
- Convert a markup quoted by a wholesaler into the margin your accountant reports.
Limits
- Works per item; it does not include overheads such as rent or salaries. Use the break-even calculator for those.
- Taxes such as VAT are not added or removed; enter prices consistently with or without tax.
Privacy
All calculations run in your browser. Your prices and costs are never sent anywhere.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. The same sale always has a higher markup than margin.
What is a good profit margin?
It varies by industry. Groceries often run on thin margins, while clothing, cosmetics and digital products usually need much higher margins to cover returns and marketing.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 25% markup equals a 20% margin, and a 100% markup equals a 50% margin.
Why can't the margin be 100%?
A 100% margin would mean the cost is zero. For any cost above zero, the price would need to be infinite.
Should I include shipping in the cost?
Yes. Include every cost of getting one item to the customer, such as shipping, packaging and payment fees, for a realistic margin.
Which currency does it use?
Any. Enter amounts in the same currency and the results use it too.
Related tools
People also use
- PayPal Fee CalculatorSee the fee and payout on a payment, or what to charge to receive an exact amount.
- Customer Lifetime Value CalculatorGross-profit lifetime value of a customer from purchases or from subscription churn.
- Marketplace Fee CalculatorSeller fees, payout, profit and margin per order, and the price for a target margin.
- SKU GeneratorReadable, unique SKU codes for every combination of product variants, with CSV download.
Last updated November 19, 2026 · How we build and test our tools