Accounting software

Markup vs margin: how to price products for profit

Written by The StoreChart team6 min read

In short

Markup is profit as a percentage of cost, and margin is profit as a percentage of price. A product that costs 60 and sells for 100 has a markup of 66.7% and a margin of 40%. To price for a target margin, divide the cost by 1 minus the margin, and include shipping and fees in the final figure.

Pricing looks simple until you calculate the percentages. Many store owners add 30% to the cost and believe they have a 30% margin, but the real number is lower. The reason is that markup and margin are two different calculations, and in everyday conversation both are called "profit percentage". This guide explains the difference, gives formulas and examples, shows how to convert between the two, and explains how to build a price that includes shipping and fees. It is part of the accounting software guide.

Markup and margin

Both measures use the same data, but divide by a different number:

  • Markup: (price minus cost) divided by cost. It shows how much you added on top of the cost.
  • Margin: (price minus cost) divided by price. It shows how much of every sale is left as profit. It is sometimes called gross margin, see gross profit.

For example, a product costs 60 and sells for 100. The profit is 40. The markup is 40 divided by 60, which is 66.7%. The margin is 40 divided by 100, which is 40%.

Conversion table

At the same price, markup is higher than margin. The table shows the match:

MarginEquivalent markup
20%25%
30%42.9%
40%66.7%
50%100%
60%150%

The conversion formula: markup equals margin divided by (1 minus margin).

How to calculate a price

There are two ways to set a price, and the results differ:

  1. From a markup: multiply the cost by (1 + markup). A cost of 60 and a 30% markup give a price of 78, and a margin of only 23.1%.
  2. From a margin: divide the cost by (1 minus margin). A cost of 60 and a 30% margin give a price of 85.7.

If your target is set as a margin, use the second way. Then the number in your profit report is the number you planned.

What goes into the cost

The product cost alone does not tell you whether your pricing works:

  • Product cost: on imports it includes freight, customs and insurance. See landed cost.
  • Shipping the business pays: the shipping price charged to the customer does not always cover it.
  • Card processing fee: a percentage of every card transaction.
  • VAT: store prices include VAT (currently 18%), but every calculation is made on the price before VAT.

Example: from 40% to 29.5%

A product costs 60 and sells for 100 before VAT. The margin from price and cost is 40%. After shipping of 8 and a 2.5% card fee, which is 2.5, the profit is 100 minus 60, minus 8, minus 2.5, which is 29.5. The real margin is 29.5%. If the pricing was set by the first number, the business earns nearly a quarter less than it planned.

The figures in this article's examples are illustrative only and do not reflect actual customer data.

How to choose a target margin

There is no single margin that is right for every store, but three questions help you set a target:

  • How large are your fixed expenses? Payroll, rent, tools and ongoing marketing must be covered by profit.
  • How much does it cost to win a customer? If advertising per customer is expensive, a thin margin will not hold.
  • What is your return rate? A category with many returns needs a higher margin.

Set a target for each category separately, not for the whole store. A cheap accessory and an expensive main product behave differently.

Example: three products in one store

The same calculation gives a different picture for each product:

ProductCostPriceProfitMarginMarkup
Accessory15503570%233%
Main product20030010033.3%50%
Imported product801305038.5%62.5%

A 233% markup looks impressive, but an accessory that sells rarely earns less in total than a main product with a 50% markup. What matters is total profit, which is profit per unit times quantity. So check both the margin and how many units sell.

The figures in this article's examples are illustrative only and do not reflect actual customer data.

How to update prices

When a cost rises, do not rely on a feeling. Set a minimum price for each product from the lowest margin you will accept: a cost of 60 and a minimum margin of 25% give a minimum price of 80, because 60 divided by 0.75. Update prices by category rather than product by product, and check after a few weeks whether profit per order is back on target. On imports, landed cost moves with the exchange rate, so check it with every new shipment.

Sales and discounts

A discount looks small in percentage terms, but it hurts profit far more, because the cost does not fall. Take a product that costs 60 and sells for 100:

DiscountPriceProfitMarginProfit drop
None1004040%-
10%903033.3%25%
20%802025%50%

A 10% discount removes a quarter of the profit. To earn the same total profit as before, you must sell a third more units. So work out the margin after the discount in advance, instead of discovering it at the end of the sale.

Returns and hidden costs

Profit on paper ignores what happens after the sale. A return cancels the profit on one sale, and the business is usually left with shipping it already paid. Damaged parcels, the overhead of handling inquiries and your team's time are costs too. So a margin calculated from price and cost is a starting point, and the real test is made against closed orders.

Break-even point

Once you know profit per unit, you can calculate how much you must sell to cover fixed expenses. Divide monthly fixed expenses by profit per unit. If fixed expenses are 6,000 and profit per unit is 29.5, you need to sell 204 units a month to avoid a loss. What counts as a fixed expense is covered in the profit and loss statement.

How to test your pricing in practice

Pricing is an assumption until you check it against real orders. Look at:

  • Profit per order: an order with negative profit points to a product priced too low or to expensive shipping.
  • Profit by category: one category may carry the store while another loses money.
  • A cost that changed: when a supplier raises a price, the old pricing is no longer right.

Profitability in StoreChart

StoreChart does not set selling prices. It calculates what comes out of the price you set. Every order shows revenue before VAT, product cost, shipping, card fee, profit and margin. Product cost uses a fixed price, weighted average or FIFO, and on imports it includes freight, customs and insurance. The profits screen also breaks results down by category and marks losing orders in red. Details are on the profitability page.

What is not included: WooCommerce and Shopify platform fees are not part of the profit calculation.

Common mistakes

  • Swapping markup and margin: a 30% markup is not a 30% margin.
  • Pricing from a VAT-inclusive price: part of the amount belongs to the state.
  • Forgetting shipping and fees: the real profit is lower than the profit on paper.
  • Forgetting to update the price after a cost change: a new cost affects only new orders, and the store price does not update itself.
  • Not checking after a few months: supplier prices move, and pricing has to follow.

Frequently asked questions

What is the difference between markup and margin?

Markup is calculated from cost: profit divided by cost. Margin is calculated from price: profit divided by price. The same profit gives a higher percentage as markup, so the two numbers are never the same.

How do I calculate a price from a target margin?

Divide the cost by 1 minus the margin. A cost of 60 and a 30% margin give a price of 85.7, because 60 divided by 0.7. Multiplying the cost by 1.3 would give 78, and a margin of only 23.1%.

What is a good profit margin for an online store?

There is no single right number. It depends on the category, shipping cost, returns and fixed expenses. The practical test is that profit covers your fixed expenses and still leaves something after everything.

Should I calculate profit on a price that includes VAT?

No. VAT is collected for the state and does not stay in the business, so calculate cost, profit and margin on the price before VAT.

Which costs must I include when pricing?

The product cost, including freight, customs and insurance on imports, the shipping the business pays and the card processing fee. Fixed expenses such as rent and payroll go into the break-even calculation.

Does StoreChart set selling prices?

No. You set the price yourself. StoreChart calculates the cost and shows profit and margin on every order after product cost, shipping and card fees, so you can see whether your pricing works.

See StoreChart with your own store data

Open an account, connect your store and see your own numbers.