Home › E-commerce Calculators › Profit Margin Calculator
Profit Margin Calculator
Enter what a product costs you and what you sell it for to get gross profit, margin and markup.
How to use the Profit Margin Calculator
- Enter cost, selling price.
- Results update instantly as you type.
- Use “Copy link to these results” to share or save your numbers.
Formula
Margin = (Price − Cost) ÷ Price; Markup = (Price − Cost) ÷ Cost
Example
With cost of $30.00, selling price of $50.00: gross profit = $20.00; profit margin = 40.00%; markup = 66.67%.
How to read the result
Margin is a share of the selling price and markup is a share of cost, so markup is always the larger number.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by price; markup divides profit by cost. A 50% markup equals a 33.3% margin.
What costs should I include?
For gross margin include product and landed costs. For contribution margin also include fees, shipping and ad cost per order.
Last reviewed 2026-11-24 · How we build and check our tools