Margin

Cost and selling price

Compare Calculations

Downloads

Includes your inputs and results for this calculation, plus any additional calculations you've compared.

Disclaimer

This calculator provides estimates for informational purposes only and does not constitute financial, medical, legal, or tax advice. Always consult a qualified professional about your specific situation.

Solving for Cost, Price, or Margin — Whichever You Don’t Know

Profit margin and markup both describe the same dollar profit, but as a percentage of two different numbers — margin is profit divided by the selling price, markup is profit divided by the cost — which is exactly why the two percentages are never equal and are easy to confuse. Enter whichever two of cost, selling price, and margin you already know, and this calculator finds the third, along with the profit and markup.

Key Factors to Consider

  • Which “cost” you enter changes what the result actually measures. Using cost of goods sold alone gives a gross margin — the standard, most commonly cited figure. Folding in operating expenses, overhead, or taxes instead gives a fuller net margin, a meaningfully different (and typically lower) number. Be clear on which one you’re calculating and comparing against.
  • Margin can approach 100% but can never reach or exceed it for a positive cost — unlike markup, which has no upper limit and can run into the hundreds or thousands of percent for a low-cost, high-price item. If a margin figure comes out at or above 100%, that’s a sign of a calculation error, not an unusually good deal.
  • Rounding a solved price to a “nice” number shifts the realized margin slightly. If you solve for a selling price at a target margin and then round it to something like $99.99, the actual realized margin at that rounded price is marginally different from the target — worth double-checking the rounded price against the target margin if precision matters.

The Formula

Profit: Profit=Selling PriceCost\vD{\text{Profit}} = \vB{\text{Selling Price}} - \vA{\text{Cost}}

Margin=ProfitSelling Price×100\text{Margin} = \frac{\vD{\text{Profit}}}{\vB{\text{Selling Price}}} \times 100 Markup=ProfitCost×100\text{Markup} = \frac{\vD{\text{Profit}}}{\vA{\text{Cost}}} \times 100

Selling price, from cost and a target margin:

Selling Price=Cost1Margin÷100\vB{\text{Selling Price}} = \frac{\vA{\text{Cost}}}{1 - \vC{\text{Margin}} \div 100}

Cost, from selling price and a target margin:

Cost=Selling Price×(1Margin÷100)\vA{\text{Cost}} = \vB{\text{Selling Price}} \times \left(1 - \vC{\text{Margin}} \div 100\right)

Worked Example

An item costs $60 and sells for $100:

  1. Profit: 10060=40\vB{100} - \vA{60} = \vD{40} dollars.
  2. Margin: 40÷100×100=40%\vD{40} \div \vB{100} \times 100 = 40\%.
  3. Markup: 40÷60×10066.67%\vD{40} \div \vA{60} \times 100 \approx 66.67\%.

The same $40 profit is a 40% margin but a 66.67% markup — the two numbers describe the exact same profit, just relative to different bases.

Common Mistakes

  • Using margin and markup interchangeably in pricing decisions. A “50% markup” and a “50% margin” produce two genuinely different selling prices for the same cost — always confirm which one a supplier, spreadsheet, or colleague actually means before pricing off it.
  • Solving for markup when margin was actually intended, or vice versa. Since markup is always a bigger number than margin for the same profit, silently swapping them makes a margin target look easier to hit than it really is, or a markup look smaller than it should be.
  • Comparing margins across businesses that define “cost” differently. One company’s margin based on cost of goods sold alone isn’t directly comparable to another’s margin that also folds in overhead or shipping — the underlying cost definition matters as much as the percentage itself.
  • Assuming a discounted or negotiated price still hits the original target margin. Cutting the selling price without recalculating erodes margin faster than most people expect, since margin is a percentage of that same shrinking price.

Useful to Know

  • Applying a percentage discount to this item’s price? Discount Calculator shows exactly how that changes the final price and, indirectly, the margin.
  • Want to see how this margin translates into overall business profitability metrics? EBITDA & EBITDA Margin Calculator rolls per-item margins up into a company-wide profitability figure.
  • Curious how many units need to sell at this margin before fixed costs are covered? Break-Even Point Calculator calculates that volume directly.

Source: Standard profit margin and markup formulas.

Frequently Asked Questions

What's the difference between margin and markup?

Both describe the exact same dollar profit, just as a percentage of two different numbers. Margin divides profit by the selling price; markup divides the same profit by the cost. Because the selling price is always higher than the cost, markup is always a bigger percentage than margin for the same profit — mixing them up is one of the most common pricing mistakes.

How do I price something to hit a target margin?

Use the "Cost and target margin" mode: enter your cost and the margin percentage you want, and this calculator finds the selling price that achieves it. This is usually more useful than guessing a markup percentage, since margin is what most businesses actually budget and report against.

What is a good profit margin?

It varies enormously by industry — a grocery store might run on a 2-3% margin while a software company might run on 70%+. There's no universal target; compare your margin against typical numbers for your specific industry rather than a general rule of thumb.

Can margin ever be 100% or higher?

No -- margin can approach 100% but can never reach or exceed it for a positive cost, unlike markup, which has no upper limit. If a margin calculation comes out at or above 100%, that's a sign of an error somewhere, not an unusually good deal.

Is this gross margin or net margin?

It depends on what you enter as "cost." Using cost of goods sold alone gives gross margin, the most commonly cited figure. Folding in operating expenses, overhead, or taxes instead gives a fuller net margin -- a meaningfully different, typically lower number.

Confirm Your Age

To create an account, please tell us your birth month and year.