What is a product's margin: gross, before ads or net?
The word “margin” covers three different things depending on what you subtract from the selling price. Mixing them up is the main reason stores “sell well” without ever generating cash. The calculator shows all three levels.
| Level | What is subtracted from the price excluding tax | What it is for |
|---|---|---|
| Gross margin | The product's cost of goods | Setting a price and comparing products with each other |
| Margin before ads | Cost of goods, shipping, payment fees and other costs | Knowing how much you can spend on advertising |
| Net margin | Everything above, plus the ad cost per sale | Knowing whether a sale really makes money |
A 60% gross margin can hide an 8% net margin. Only net margin tells you whether a sale makes you money: it is the figure the calculator puts first.
How to calculate gross margin and net margin
Selling price excluding tax − Cost of goods
If your price includes VAT, the price excluding tax is the price ÷ (1 + tax rate). With a $60 price and 20% tax included, the price excluding tax is $50. If sales tax is added at checkout, enter 0.
Gross margin − Shipping − Payment fees − Other costs
Margin before ads − Ad cost per sale (CPA)
CPA is ad spend divided by the number of sales it produced. To set it from your margin, use the CPA calculator.
Four oversights distort most margin calculations:
- Tax — Tax included in your price is passed on to the state. Calculating margin on a tax-inclusive price inflates it by the amount of the tax ($10 on a $60 price with 20% tax): enter the tax rate so the calculator removes it.
- Payment fees — They are charged on the amount the customer pays, tax included, often with a fixed part per transaction. Add the fixed part to other costs.
- Returns and refunds — A return gives the money back, sometimes without a resellable product. Provision for them: average cost of a return × share of orders returned.
- Advertising — A sale won through an ad costs more than the product. Without CPA, you only see the margin before ads.
Margin vs markup vs multiplier: what is the difference?
There are two ways to express a margin as a percentage, and they give different figures for the same dollar amount. In English, margin is measured against the selling price, markup against the cost of goods. French accounting uses “taux de marque” for the first and “taux de marge” for the second, which is why a French tool can show a different “margin” from an American one.
Gross margin ÷ Selling price excluding tax × 100
Always below 100%. This is the one you compare with the selling price and net margin.
Gross margin ÷ Cost of goods × 100
Can exceed 100%. This is the one you apply to get a price from a cost.
Selling price excluding tax ÷ Cost of goods
The multiplier also equals 1 + markup. A product bought for $20 and sold for $50 has a multiplier of 2.5.
Two conversions take you from one to the other: markup = margin ÷ (100 − margin), and margin = markup ÷ (100 + markup). The table shows the most common pairs.
| Margin | Markup | Price multiplier |
|---|---|---|
| 20% | 25% | 1.25 |
| 30% | 42.9% | 1.43 |
| 40% | 66.7% | 1.67 |
| 50% | 100% | 2.00 |
| 60% | 150% | 2.50 |
| 70% | 233.3% | 3.33 |
| 80% | 400% | 5.00 |
An example to set a price: for a product that costs you $20 and a 60% margin target, the price is 20 ÷ (1 − 0.60) = $50. Applying a 60% markup to cost would give only $32: the vocabulary gap costs $18 per sale.
Profit margin examples
Example 1 — a margin that withstands advertising
- Selling price: $60 (no tax included)
- Cost of goods: $24 → gross margin $36
- Shipping: $6
- Payment fees (3% of $60): $1.80 → margin before ads $28.20
- Ad cost per sale: $12
ResultNet margin $16.20 (27% of the price) — margin 60% — markup 150% — multiplier 2.50
Example 2 — a flattering gross margin, a fragile net margin
- Selling price: $35 (no tax included)
- Cost of goods: $18 → gross margin $17
- Shipping: $5
- Payment fees (3% of $35): $1.05 → margin before ads $10.95
- Ad cost per sale: $8
ResultNet margin $2.95 (8.4% of the price) — margin 48.6% — markup 94.4% — multiplier 1.94
The second product shows a markup close to 100%, which sounds reassuring. Yet only $2.95 is left per sale: a single return or a $12 CPA is enough to push it into a loss. This is why you judge a margin on net result, never on the gross margin rate alone.
In the first example, break-even ROAS is 60 ÷ 28.20 = 2.13: a campaign has to beat that multiple to make money. Check yours with the break-even ROAS calculator.
How to use the profit margin calculator
- 1
Pick your currency
Dollar, euro or pound: the maths is identical, only the display changes.
- 2
Enter the selling price and tax
The price the customer pays, then the tax rate it includes. Leave 0 for a tax-exclusive price or when sales tax is added at checkout.
- 3
Enter the cost of goods
What you pay the supplier or what production costs, excluding tax: it drives gross margin, margin, markup and multiplier.
- 4
Add the costs of the sale
The shipping you pay for, payment fees as a percentage, then other costs: packaging, fixed fee per transaction, provisioned returns.
- 5
Fill in the ad cost per sale
Your actual CPA from Google Ads or Meta Ads. Leave 0 if you do not advertise: net margin then equals margin before ads.
What net margin should an e-commerce product aim for?
There is no universal good margin: it depends on your fixed costs, your volume and what you want to reinvest. The grid below is a reference for reading the calculator's result against the price excluding tax. Adapt it to your situation.
| Net margin (% of price excluding tax) | What it means | Decision |
|---|---|---|
| Zero or negative | Every sale loses money | Fix the price, costs or CPA before selling more |
| Under 10% | Profitable but fragile | One return, a discount or a rise in CPC is enough to push you into a loss |
| 10% to 20% | Fair | You make money, with little cushion for surprises |
| 20% and above | Solid | Room to absorb returns or invest more in advertising |
Remember that a product's margin is not the store's margin: fixed costs (subscriptions, software, salaries, accounting) are paid out of the net margin of all sales combined. A 10% net margin per sale is enough only if volume covers those costs.
How to improve your margin in e-commerce
Every line of the calculator is a lever. Test them one at a time: the result updates as you type.
- Review the price — A 5% rise in the price excluding tax adds far more than 5% to net margin, because cost of goods does not move.
- Negotiate cost of goods — Bulk orders, an alternative supplier or longer payment terms: every dollar saved on cost is a dollar more of gross margin.
- Cut the shipping you pay for — A free-shipping threshold, renegotiated carrier rates, lighter products or more compact packaging.
- Raise average order value — Bundles and upsells spread shipping, fixed fees and ad cost over more revenue.
- Lower the ad cost per sale — A better product page, a more accurate feed, excluding queries that do not convert. The CPA calculator sets the ceiling not to cross.
- Limit returns — More accurate listings (sizes, dimensions, photos) reduce returns, and therefore the cost provisioned in other costs.
To turn margin into a campaign goal, move on to the break-even ROAS calculator, then estimate what your budget would deliver with the Google Ads cost calculator.
On Google Shopping, a margin only counts if the account stays active
A well-calculated net margin is worthless if your products stop showing. A Google Merchant Center suspension shuts down Shopping and Performance Max campaigns overnight, usually for reasons unrelated to price: incomplete business details, a vague return policy, prices that differ between site and feed, unproven claims on product pages.
GClimb reviews your store the way a Google reviewer would and lists the compliance issues to fix. Run the free store audit, or start with the Google Merchant Center compliance checklist.
Frequently asked questions
What is the difference between gross margin and net margin?
Gross margin is the selling price excluding tax minus the cost of goods. Net margin also subtracts shipping, payment fees, other costs and ad cost. With a $50 price excluding tax, a $20 cost of goods and $17.40 of shipping, fees and advertising, gross margin is $30 and net margin is $12.60.
What is the difference between margin and markup?
Margin is measured against the selling price, markup against the cost of goods. For a product bought for $20 and sold for $50, the profit is $30: the margin is 60% and the markup is 150%.
How do you calculate the price multiplier?
Divide the selling price excluding tax by the cost of goods. A product bought for $20 and sold for $50 has a multiplier of 2.5. To set a price, multiply the cost of goods by the multiplier you want, then add any tax.
How do you convert margin to markup?
Markup = margin ÷ (100 − margin) × 100. A 50% margin equals a 100% markup; a 20% margin equals a 25% markup. The other way round: margin = markup ÷ (100 + markup) × 100.
Should margin be calculated with or without tax?
Always without: tax collected on a sale belongs to the state, not to you. Calculating on a tax-inclusive price inflates margin by the amount of the tax. Enter the tax rate in the calculator and it removes the tax before any calculation.
What selling price gives a 50% margin?
Divide the cost of goods by 0.5, which means a price equal to twice the cost. A product that costs $20 sells for $40. That price gives you gross margin: then check that net margin stays positive after shipping, fees and advertising.
Why is my net margin so much lower than my gross margin?
Because gross margin ignores everything that is not the product: shipping, payment fees, returns and advertising. In a store that sells through Google Ads or Meta Ads, ad cost per sale can become the heaviest item. Enter your actual CPA to see the margin you really keep.