How to calculate profit margin: formula and examples
Learn the profit margin formula, compare margin with markup and use a free calculator to find profit and target selling price.
Profit margin is the share of the selling price left after costs. The formula is: profit margin = profit / selling price × 100. A R$100 sale with R$70 in total costs creates R$30 profit and a 30% margin. Use the profit margin calculator to also find markup and target price.
The basic formula is simple: net profit divided by selling price. If you sell for R$100 and keep R$20 after all costs, your net margin is 20%.
Margin versus markup
Markup starts from cost. Margin starts from selling price. If a product costs R$60 and you sell for R$100, the markup is 66.7%, but the margin is 40%. They describe the same sale from different angles.
This difference matters because many marketplaces charge fees over the sale price, not over the cost. Pricing only with markup can hide the real margin.
Costs that must enter the margin
- Product or material cost.
- Packaging and labels.
- Marketplace commission and payment fees.
- Freight subsidies and shipping adjustments.
- Taxes and invoice costs.
- Discounts, coupons, returns and losses.
- Your time, if the product requires manual work.
How to avoid false profit
Use a calculator before setting price. The Shopee margin calculator helps simulate product cost, commission, freight, tax and target margin. Even outside Shopee, the logic helps structure the pricing calculation.
Sources consulted
We use official or institutional sources for external concepts and data. Examples, comparisons and editorial conclusions are produced by Custo Real Brasil.
Calculate with your own numbers
Monthly fixed cost calculator
Add rent, payroll, utilities, software and recurring commitments to see monthly, yearly and revenue-share totals.
Profit margin calculator
Calculate profit, margin, markup and the required selling price from total cost and target margin.
Shopee margin calculator
Estimate net profit, margin and minimum price considering product, packaging, commission, freight, taxes and other costs.
FAQ
Is margin the same as markup?
No. Margin compares profit with selling price. Markup compares price with cost. Confusing both can make prices too low.
What is net margin?
Net margin is what remains after product cost, fees, tax, freight, packaging and other selling costs.
Why can a product sell a lot and still not make money?
Because fees, discounts, returns and logistics can consume the apparent profit.