Skip to content
Aipiter, homeCreate my account

Practical guide

Gross margin: formula and a worked product example

Gross margin is the difference between net sales and the cost of the goods or services sold. Divide it by net sales to compare products as a percentage. Use the same costing method across product lines, then check the effect of returns and discounts before deciding why the margin has changed.

Start with net sales

The Aipiter teamPublished

Compare products on the same cost basis

Include returns and discounts in net sales. Use the same method to assign cost of sales to each line.

If you count warehouse or delivery costs for one product but omit them for another, the difference may reflect a different calculation rather than a better margin.

Start with net sales

Take returns and discounts off sales, excluding VAT. Match the sales period to the costs you compare.

Subtract the cost of sales

Match costs with what you sold. Stock still on hand is separate from the cost of this period’s sales.

Why has the margin changed?

Look at both euros and percentage by product. Check volume, selling price, discounts, unit costs and product mix.

Worked example

One product line makes €800 in gross margin

The figures are for one period and exclude VAT.

Worked example
ItemExample value
Net sales€2,000
Cost of sales€1,200
Gross margin€800 · 40% of sales

Turn the amount into a percentage

If the price drops while costs stay fixed, recalculate the margin per unit before extending the discount.

Common questions

Does gross margin equal net profit?

The final result also reflects other income and expenses.

Is gross margin the same as markup?

Margin percentage divides by sales. Markup measures the difference against cost.

Compare product lines on the same basis

Record what you included in cost and check both the amount and percentage.

Create my account