All articles

Published November 28, 2026 · Agus Yulyastrawan, Founder Seawise Studio

How to Set a Selling Price: Markup vs Margin

How to set a selling price, the difference between markup and margin, the target margin formula, and how fees and discounts affect profit.

How to Set a Selling Price: Markup vs Margin

"Take a 40% profit" sounds clear, until two people calculate it and their answers differ by Rp16,000. The cause is almost always the same: one person is calculating markup, the other margin. The two are often treated as the same thing. They are not, and the gap comes straight out of profit. This article covers how to set a selling price, the difference between markup and margin, the right formulas, and the effect of discounts and selling fees.

Start with the full cost

A correct selling price starts with a correct cost. The cost per product is not only the supplier's price, but everything spent until the item is ready to sell:

  • The purchase price.
  • Shipping from the supplier, divided by the number of items.
  • Packaging, labels, and stickers.
  • Damaged or defective items that cannot be sold, spread across the ones that do sell.

When shipping and packaging are forgotten, the price looks profitable while the profit has already been spent before the item reaches the shelf.

Markup and margin are different

Both measure the same profit, but divide it by a different number.

  • Markup is profit divided by cost.
  • Margin is profit divided by selling price.

Example (illustrative figures): cost Rp60,000, sold at Rp90,000, profit Rp30,000.

Measure Formula Result
Markup Rp30,000 divided by Rp60,000 50%
Margin Rp30,000 divided by Rp90,000 33.3%

Same product, same profit, two very different numbers. Markup is always larger than margin, and margin can never reach 100%.

The most expensive mistake

Say you want a 40% margin, so you add 40% to the cost. Rp60,000 plus 40% is Rp84,000. The profit is Rp24,000, and the real margin is Rp24,000 divided by Rp84,000, only 28.6%.

For a 40% margin the correct price is Rp100,000. That Rp16,000 difference is lost on every sale, and the monthly report never reaches its target without anyone knowing why.

The formula for a target margin

If your target is written as a margin, the formula is:

Selling price = cost divided by (1 minus margin)

With a cost of Rp60,000 and a 40% target margin, the selling price is Rp60,000 divided by 0.6, which is Rp100,000.

This table helps read both at once:

Margin you want Markup you need
20% 25%
25% 33.3%
30% 42.9%
40% 66.7%
50% 100%

Do not forget selling fees

If you sell through a marketplace or accept payments that carry a fee, the fee is taken from the selling price, so it belongs in the formula:

Selling price = cost divided by (1 minus margin minus fee percentage)

Example (illustrative figures): cost Rp60,000, target margin 40%, platform fee 8%. The selling price is Rp60,000 divided by 0.52, about Rp115,400. If you still sell at Rp100,000, the margin left is not 40% but 32%.

Check the fee that applies on the platform you use, because it differs by category and changes often.

What a discount really does

A discount is taken off the selling price while the cost stays the same. That is why a discount eats far more profit than its percentage suggests.

Example (illustrative figures): a Rp100,000 product with a Rp60,000 cost gives Rp40,000 profit. A 20% discount brings the price to Rp80,000 and the profit to Rp20,000. The price falls by 20%, the profit falls by 50%. To earn the same profit, you have to sell twice as many.

Discounts are still useful for clearing old stock or winning new customers. The point is to calculate the profit per item after the discount before announcing the promotion.

Factors beyond the formula

The formula gives a floor, not a final price.

  • Market price. If the formula lands far above competitors for the exact same item, review the cost or the choice of product.
  • Psychological pricing. Rp99,000 and Rp100,000 feel different to a buyer, even though the gap is small.
  • The role of each product. Some items sell on a thin margin to bring people in, others carry the profit. What matters is the overall margin, not that every item has the same one.
  • Operating costs. Gross margin has to cover rent, wages, and electricity. Working that out is part of our data analysis service.

When a system helps

Pricing twenty products can be done on a calculator. With hundreds of products whose purchase prices change at every restock, the hard part is not the formula, it is knowing which products have slipped.

In TokoKu, the retail POS app we built, reports show cost of goods and gross profit from the sales recorded at the till, so a shrinking margin is visible without recalculating one by one. Signs that a business is ready to move beyond spreadsheets are covered in our article on POS apps for small businesses.

Frequently asked questions

Which should I use, markup or margin?

Either works, as long as you are consistent and everyone in the business uses the same term. Margin is easier to compare with operating costs and the profit and loss statement, because both are measured against sales.

What is a reasonable margin for a retail shop?

It depends heavily on the goods. Fast-moving daily necessities usually carry thin margins, while specialty goods and fashion carry thicker ones. The useful number is the margin that covers your own operating costs.

Should prices be the same in store and on marketplaces?

Not necessarily. Because of platform fees, many sellers set different prices. What needs protecting is the margin after fees, and that customers comparing prices do not feel misled.

When should prices be reviewed?

Whenever purchase prices change, when platform fees change, and routinely every few months. A price that is never reviewed usually means a margin that is slowly shrinking.

Conclusion

A selling price starts with the full cost, then follows the formula that matches your target. Adding 40% to cost is not a 40% margin. Put platform fees into the formula, and calculate profit per item before giving a discount.

Hundreds of products and no clear view of which ones actually make money? See Seawise's app development service in Bali, or tell us how your shop sets its prices through the contact page.