Margin vs Markup Formula: Set Price From a Target Margin

PublishedToolMargin & Markup Calculator

Contents
  1. Why margin and markup get confused
  2. The margin and markup formulas
  3. Working backward from a target margin to a selling price
  4. Costs to include in your cost basis
  5. Common stumbling blocks
  6. The bottom line
  7. Frequently asked questions

Just because you added 30% to your cost and sold at that price doesn't mean your profit margin is 30%. Markup measures profit against cost, while margin measures profit against the selling price — different denominators, different calculations. This post covers the difference between the two and the formula for working backward from a target margin to a selling price.

Summary ① Margin is profit as a share of the selling price; markup is profit as a share of cost. The same 30% gives you different numbers. ② If you simply add 30% to cost (30% markup), your actual margin drops to about 23%. ③ Once you set a target margin, you can work backward with selling price = cost ÷ (1 − target margin).

Why margin and markup get confused

Say you buy an item wholesale for 7,000 won and sell it for 10,000 won. Your profit is 3,000 won. Divide that 3,000 won by cost (7,000 won) and you get 42.86%. Divide it by the selling price (10,000 won) and you get 30%. Same profit, but the result depends on what you divide by — 42.86% or 30%.

People often use "I marked up cost by 30%" and "I have a 30% margin" interchangeably, but the two calculations have different denominators, so the numbers aren't the same. Whether you look at profit against your purchase cost or profit against your revenue makes a big difference in your profit-and-loss math.

The margin and markup formulas

The two metrics are calculated like this:

Profit margin (%) = (Selling price − Cost) ÷ Selling price × 100 Markup (%) = (Selling price − Cost) ÷ Cost × 100

Run the cost 7,000 won, selling price 10,000 won example again. Markup is (3,000 ÷ 7,000) × 100 ≈ 42.86%, and margin is (3,000 ÷ 10,000) × 100 = 30.00%. Measured against the selling price, your profit is 30%, but measured against cost, you added 42.86%.

Doing this by hand every time means fussing with decimals.

Margin & Markup Calculator

Enter your cost and selling price, or your cost and target margin rate, to see margin, markup, selling price, and profit amount right away.

Working backward from a target margin to a selling price

The opposite question comes up a lot too: "My cost is fixed — if I set a target margin first, what should I price this at?" In that case, use selling price (S) = cost (C) ÷ (1 − target margin).

If your wholesale cost is 14,000 won and you set a 35% target margin, the selling price is 14,000 ÷ (1 − 0.35) = 14,000 ÷ 0.65 ≈ 21,538 won. You'd want to land the retail price around 21,500–21,600 won to hit that 35% target margin.

This is easy to confuse with simply multiplying cost by the target margin and adding it on (14,000 × 1.35 = 18,900 won). Sell at 18,900 won and your actual margin is (18,900 − 14,000) ÷ 18,900 × 100 ≈ 25.93% — about 9 percentage points below your 35% target. Multiplying cost by a rate and adding it on is the markup formula, not the way to back out a margin.

Costs to include in your cost basis

With online sales, your purchase cost isn't the only thing going out the door. There are marketplace payment processing fees (they vary by platform, usually a few percent), shipping and packaging, and ad spend. If you plug only your purchase cost into the cost (C) slot when calculating a target margin, the profit that actually stays in your pocket will be less than the calculated figure.

Add those extra costs into your cost basis and the margin you see will be closer to what actually lands in your payout. Results can vary with your sales channel, product category, and cost structure.

Common stumbling blocks

SituationWhat to check
"I added 30% to cost, so I assumed the margin was 30% too"30% markup ≠ 30% margin. You have to recalculate margin against the selling price
I just multiplied cost by the target margin and added it onSelling price = cost ÷ (1 − target margin), not cost × (1 + target margin)
I left out fees and shippingIf you only put purchase cost in the cost slot, your real margin will differ

The bottom line

Margin is profit against the selling price; markup is profit against cost. The same number means different things. To set a selling price from a target margin, don't multiply cost by a rate and add it on — divide cost by (1 − target margin). Enter cost and selling price, or cost and a target margin, into the calculator and you'll see both numbers right away.

Margin & Markup Calculator

Enter your cost and selling price, or your cost and target margin rate, to see margin, markup, selling price, and profit amount right away.

Frequently asked questions

Is a 30% margin the same as a 30% markup?

No. A 30% margin means 30% of the selling price is profit. A 30% markup means you set the selling price by adding 30% to cost. Apply a 30% markup to a cost of 7,000 won and the selling price is 9,100 won, but the margin there is about 23.08% — lower than 30%.

What should I include in cost when I set a target margin?

Beyond the purchase price of the product, factor in the costs that go into each sale — payment processing fees, shipping, packaging, and ad spend. That brings the calculated figure closer to what you actually get paid out.

This article was adapted from our Korean original. Read the Korean original

Related articles

  1. Medical Abbreviations on Your Diagnosis Report, Explained SimplyPlain-English meanings for 10 terms on diagnosis reports—EKG, GERD, HTN, edema—plus a free tool that finds and explains the terms you paste in.
  2. Split group expenses: how to settle up in the fewest transfersWork out each person's net balance from a shared group tab, then settle up in as few transfers as possible — with a worked example.
  3. Ovulation & Period Calculator: How to Predict Your Fertile WindowThe formulas behind your next period date, ovulation day, and fertile window — plus why cycle apps disagree and when the math breaks down.
  4. Move-In Cleaning Cost Formula and Room-by-Room ChecklistSee how move-in and relocation cleaning quotes are calculated per pyeong, what each option adds, and a room-by-room checklist to inspect before you pay.
  5. mph to km/h Conversion: Fixed Factors and Rounding ErrorsHow mph, km/h, m/s, knots and Mach convert through fixed factors, where those numbers come from, and how to read rounding error.
  6. 1RM Calculator: Estimate Your Max and Plan Training WeightsLearn how the Epley and Brzycki formulas estimate your one-rep max safely, then set training weights for strength, hypertrophy, and endurance.

Related tools