How is gross profit margin calculated?
The formula is simple: Gross Profit Margin = ((Revenue − COGS) / Revenue) × 100. COGS covers the direct costs of producing or sourcing what you sell — raw materials, production labour, supplier invoices, and shipping or packaging directly attributable to the product. Operating costs such as marketing, rent and management salaries are excluded; those belong in net profit margin.
Gross margin is the most direct read on your pricing power and sourcing efficiency. When it falls, either your selling price is under pressure or unit costs are rising. Track margin per product or category to separate the two — a blended figure hides the mix of profitable and unprofitable SKUs.
How is markup calculated?
Markup divides profit by cost: Markup = (Selling price − Cost) / Cost × 100. A product costing $600 and selling for $1,000 earns $400, which is a 66.7% markup (400 / 600) and a 40% margin (400 / 1,000). Markup is always higher than margin because its denominator, cost, is smaller than the selling price.
How to find the selling price from a target margin
The correct formula is Selling price = Cost / (1 − Target margin). For a $600 cost and a 40% margin, the price is 600 / 0.60 = $1,000. The classic mistake is adding 40% to cost: 600 × 1.40 = $840, which yields a 28.6% margin, about $160 less per unit than planned. The "Price from target margin" tab shows the right price and what the mistake would cost you.
Converting margin to markup
Markup = Margin / (1 − Margin) and Margin = Markup / (1 + Markup). So a 20% margin equals a 25% markup, 25% equals 33.3%, and 50% equals 100%. The table above lists common values and, once you enter a cost, the selling price for each row.
How margin sets your break-even ROAS
If you run ads, your margin is also your threshold: Break-even ROAS = 1 / Margin. At a 40% margin, ads must return at least 2.5 times their cost in revenue; at 20% the bar rises to 5. Subtract shipping and marketplace fees and it climbs further. Use the ROAS Calculator for the full picture.
Industry reference ranges
There is no universal target; it varies with the business model. As rough guidance: e-commerce and retail typically land in the 20-50% band, services and agencies around 40-60%, and SaaS or digital products in the 70-90% range. Treat these as orientation rather than hard claims — your own period-over-period trend is a more meaningful benchmark than any industry average.