What gross margin means
Gross margin is the share of the selling price you keep after the direct cost of what you sold. The formula is margin = (price − cost) ÷ price. Sell something for $30 that cost you $18 and your gross profit is $12, a margin of 40%.
Margin is always measured against the price, which is what makes it useful: it tells you how much of every dollar of revenue is left to pay for rent, software, wages and ads, and then to keep as profit. It is also why margin can never reach 100% unless the product cost nothing, and why a negative margin means each sale loses money.
The calculator works in three directions. Give it cost and price to see the margin. Give it cost and a target margin to get the price: price = cost ÷ (1 − margin). Or give it a selling price and target margin to find the most you can pay a supplier: cost = price × (1 − margin).
Worked example
A candle maker's costs are $18 a candle: wax, wick, jar, label and an allocated share of their time. Three questions they might ask:
- At $30, what's my margin? (30 − 18) ÷ 30 = 40%, with a markup of 66.7%.
- What should I charge for a 45% margin? 18 ÷ (1 − 0.45) = $32.73. Not 18 × 1.45 = $26.10, which is a 45% markup and only a 31% margin.
- A shop will retail it at $40 and wants a 60% margin. What can I sell to them for? 40 × (1 − 0.6) = $16.00.
Margin before platform fees is only half the picture for online sellers. On eBay, that $30 candle pays $4.48 in fees, so the $12 gross profit becomes $7.52 and the margin falls to 25.1%. Put the fee into cost (or use the profit per unit calculator) to see the margin you really earn.
Margin across a product range
When you sell more than one product, your overall margin is not the average of the product margins. It is total gross profit divided by total revenue, so products that bring in more revenue weigh more. Say a shop sells 100 units of a $20 item at a 50% margin and 100 units of a $50 item at a 25% margin. The simple average is 37.5%, but revenue is $7,000 and gross profit $2,250, a blended margin of 32.1%.
That matters when a high-revenue, low-margin product grows fastest: sales rise while the business-wide margin falls, and the money left for overheads grows more slowly than revenue suggests. Work out margin per product, then look at the mix.
Margin benchmarks and pitfalls
There's no universal "good" margin. Grocery retail runs on thin gross margins and high volume; handmade goods, digital products and software often need 60% or more to cover the time and overheads behind them. Rather than a benchmark, compare your margin with what your fixed costs need: the break-even calculator shows how many sales your margin requires.
- Don't confuse margin and markup. A 50% markup is a 33.3% margin. The converter has a full table.
- Include landed cost. Freight, duty and packaging belong in cost; leaving them out flatters the margin.
- Discounts come straight out of margin. A 20% sale on a 40% margin product halves the profit per unit.