Gross margin formula, per product

The gross margin formula for each product: what is left of the selling price after the cost of the goods.

Gross margin is the share of a sale you keep after paying for the goods. It is a percentage of the selling price.

The gross margin formula

Gross profit = selling price − cost of the goods
Gross margin = gross profit / selling price × 100

How to calculate gross margin

An order sells for $55.50. The goods in it cost $21.38.

55.50 − 21.38 = $34.12 gross profit
34.12 / 55.50 × 100 = 61.5% gross margin

The shop keeps $34.12 of this sale to pay for postage, fees, wages and rent. What is left after those is net profit.

Margin and markup are different numbers

Markup is the same profit measured against the cost, not the price.

Markup = gross profit / cost × 100
34.12 / 21.38 × 100 = 159.6% markup

CostPriceMarkupMargin
$10$12.5025%20%
$10$1550%33.3%
$10$20100%50%
$10$30200%66.7%

A 50% markup is a 33.3% margin. If a supplier or a buyer quotes one of these, check which one they mean.

Use the right cost

The margin is only as good as the cost behind it.

  • Include freight and duty. A bottle bought for $10 that costs $2 to bring in has a cost of $12. See landed cost.
  • Use the cost of the units you sold, not today’s supplier price. Your costing method decides this. See cost of goods sold.
  • For a bundle, add up the cost of every part.
  • Take discounts and refunds off the selling price before you work out the margin.

What to do with it

  • Rank products by gross profit in dollars, not only by margin. A 70% margin on a product that sells twice a month pays less rent than a 35% margin on one that sells daily.
  • Set a floor. Decide the lowest margin you will accept and check it before agreeing a wholesale price or a promotion.
  • Watch for a falling margin on a steady price. It means your costs went up.

Gross margin and gross profit

Gross profit is an amount of money. Gross margin is that amount as a percentage of the selling price. A product that sells for $40 and costs $24 has a gross profit of $16 and a gross margin of 40%.

Gross margin and net margin

Gross margin takes off only the cost of the goods. Net margin takes off everything else as well: rent, wages, marketing, fees and tax. A business can have a healthy gross margin and still lose money.

What counts as a good gross margin

It depends on what you sell. Goods that are cheap to make and easy to brand carry high margins. Goods that anyone can sell carry low ones. Compare a product with your other products and with last year, not with a number from another trade.

In ShipBerry

The Gross profit report shows net sales, the cost of the products sold, gross profit and margin for each order and product. An order with a missing cost is listed for review, so it is not counted as pure profit. Cost and margin can be hidden from team members who do not need them.

Last updated 30 November 2026 · More on costing