Online Tool Store Online Tool Store
🏷️ Finance Calculators

· 5 min read

How to Calculate Selling Price From Cost and Margin

Heshan Fernando

Co-founder & COO

Heshan Fernando is the Co-founder and Chief Operating Officer of Ceyentra Technologies, where he leads project management, engineering, and research and development strategy. With over nine years of industry experience, he is passionate about transforming complex customer challenges into practical, high-impact solutions. His customer-centric leadership has enabled multidisciplinary teams to consistently deliver secure, scalable, and industry-grade digital products that create lasting business value. View on LinkedIn

Share

How to Calculate Selling Price From Cost and Margin

Your product costs $18 to make, and you want a 40% profit margin — so what’s the selling price? If your first instinct is “$18 plus 40% of $18,” you’ve actually just calculated markup, not margin, and the two give different numbers. It’s a mix-up that’s easy to make and expensive to leave uncorrected, especially once you’re pricing dozens of products at once.

The confusion is understandable because margin and markup both describe “how much profit is baked into the price,” just measured against a different base — margin as a percentage of the selling price, markup as a percentage of the cost. Get the two swapped and your actual profit margin ends up lower than you think it is.

What margin and markup actually mean

Margin is profit expressed as a percentage of the selling price: if you sell something for $30 that cost $18, your profit is $12, and your margin is $12 ÷ $30 = 40%. Markup is profit expressed as a percentage of the cost: that same $12 profit on an $18 cost is a 67% markup ($12 ÷ $18). Same dollars, two different percentages, because the denominator is different.

This matters in practice because “set a 40% margin” and “set a 40% markup” produce different selling prices from the same cost. A 40% margin on an $18 cost item works out to a $30 selling price; a 40% markup on the same $18 cost item only gets you to $25.20. If you ask for one and calculate the other, you’ll systematically under- or over-price your products.

Why people get stuck here

  • Margin and markup use different bases. Margin divides by selling price; markup divides by cost — mixing them up is the single most common pricing mistake.
  • The gap grows with higher percentages. At low percentages the difference between margin and markup is small; at higher target profit levels, the gap becomes significant.
  • Manual formula rearrangement is error-prone. Solving “selling price = cost ÷ (1 - margin%)” by hand, repeatedly, for a whole product catalog invites mistakes.
  • Spreadsheet formulas get copied wrong. A margin formula copied into a column meant for markup (or vice versa) can silently mis-price an entire product line.

What a good margin calculator looks like

Clearly separates margin from markup

The tool should let you specify which one you’re targeting, and label the output accordingly, rather than assuming one or the other.

Shows the full breakdown

Selling price, profit per unit, and the equivalent markup percentage (or margin percentage, depending on which you started with) should all be visible at once, so you can sanity-check the relationship between them.

Updates instantly

Testing a few different margin targets against the same cost should be immediate, since pricing decisions often involve comparing several scenarios.

Common mistakes to avoid

  • Using a markup formula when you actually meant to hit a target margin, or vice versa.
  • Assuming margin and markup are the same at every percentage — they only converge at very low percentages and diverge significantly at higher ones.
  • Setting a margin target without accounting for other costs (shipping, payment processing fees, returns) that eat into the actual realized profit.
  • Copying a pricing formula across a spreadsheet without re-checking that every row’s cost value updated correctly.

How to do it with the Margin Calculator

Online Tool Store’s Margin Calculator works out selling price, profit, and markup from your cost and target margin entirely in your browser.

  1. Enter your cost price per unit.
  2. Enter your target profit margin percentage.
  3. See the resulting selling price and profit per unit instantly.
  4. Check the equivalent markup percentage to confirm you’re working with the number you actually meant.

Because it shows both margin and markup side by side, it’s a quick way to catch the mix-up before it turns into a pricing mistake across your whole catalog.

Frequently asked questions

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

No — a 50% margin on an $18 cost item gives a $36 selling price ($18 profit, which is 50% of the $36 selling price). A 50% markup on the same $18 cost gives a $27 selling price ($9 profit, which is 50% of the $18 cost). They’re calculated from different bases and only converge at very low percentages.

Which should I use — margin or markup — for pricing?

Margin is generally more directly useful for profitability analysis, since it tells you what percentage of each sale is actual profit. Markup is common in retail and wholesale contexts where pricing is built up from cost. Neither is universally “correct” — use whichever matches how your business or industry typically talks about pricing, but be consistent.

Does the margin calculation account for other costs like shipping or fees?

No — a basic margin calculation works from cost price to selling price for a single unit. Shipping, payment processing fees, returns, and other overhead need to be factored in separately (either folded into your “cost” figure or subtracted from the resulting margin) for a fully accurate profitability picture.

Final thought

Margin and markup answer a similar question from two different angles, and the gap between them is exactly wide enough to cause a real pricing mistake if you’re not deliberate about which one you’re calculating.

Try the free Margin Calculator

#margin-calculator#profit-margin-calculator#markup-calculator#selling-price-calculator#online-tools#free-tools