Profit Margin Calculator
The profit margin calculator gives profit, margin and markup from your cost and selling price, and the price you need for a target margin. Margin is profit divided by price; markup is profit divided by cost. For example, $20 cost and $35 price gives a 42.9% margin and a 75% markup.
How the Profit Margin Calculator works
Profit = price − cost
Margin = profit ÷ price
Markup = profit ÷ cost
Price for target margin = cost ÷ (1 − target margin)
Worked example
Example seller numbers: total cost per unit $20.00, selling price $35.00, target margin 40%.
| Profit per unit | $15.00 |
| Profit margin | 42.9% |
| Markup | 75.0% |
| Price for target margin | $33.33 |
How to use the Profit Margin Calculator
- Enter your price and costs in "Your numbers"
- Fill in the remaining fields for your business
- Read your result: profit, margin and breakdown update instantly
- Use Copy link to save or share your numbers
Profit Margin Calculator FAQ
How do I calculate profit margin?
Subtract total cost from price to get profit, divide by price and multiply by 100.
What's the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost.
Sources
This calculator uses standard formulas only and no platform fee rates. Formulas are explained in our methodology.
Related calculators
€
Ecommerce Profit CalculatorNet profit and margin per order on any platform.
=Break-Even CalculatorUnits and revenue needed to cover fixed costs.
×ROAS CalculatorROAS, break-even ROAS, ACoS and profit after ads.
EEtsy Profit CalculatorEtsy listing, transaction, processing and Offsite Ads fees.
Related guides

Profit & marginsHow to Calculate Profit MarginHow to calculate profit margin: the formula, gross vs net margin, ecommerce examples and how to find the price for a tar…

Profit & marginsProfit Margin vs MarkupProfit margin vs markup explained with examples and a conversion table, so you never under-price by mixing them up.…

Profit & marginsWhat Is a Good Profit Margin for Ecommerce?There is no single good ecommerce margin. Learn how to work out the margin your store needs from overheads, ad costs and…