Skip to content
BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 1 primary sourceLast updated

Price Margin Calculator (Margin vs Markup)

The Price Margin Calculator works out the selling price for a target margin or markup from your cost, with gross profit per unit and the equivalent markup or margin.

Quick Answer: An item that costs $50.00, priced for a 40% margin, sells for $83.33. That leaves $33.33 of gross profit per unit, which is 40% of the price and a 66.67% markup on cost. Enter your cost and either a target margin or a target markup, and this price margin calculator returns the selling price each one produces and the equivalent figure in the other system.

Your inputs

Computed
$
%
%

Preset scenarios

Selling Price from Target Margin
$83.33

Every period in the schedule below reconciles to the exact penny.

Gross Profit per Unit
$33.33
Equivalent Markup (%)
66.67%
Selling Price from Target Markup
$83.34

Revenue vs Cost of Goods Sold

RevenueTotal CostGross Profit
12 periods, peak $50,000

Volume Sales & Gross Profit Schedule

Showing 12 rows.

Volume Sales & Gross Profit Schedule, from the Price Margin Calculator (Margin vs Markup)
Volume Step (50 Units Each)RevenueTotal CostGross Profit
1$4,166.67$2,500.00$1,666.67
2$8,333.33$5,000.00$3,333.33
3$12,500.00$7,500.00$5,000.00
4$16,666.67$10,000.00$6,666.67
5$20,833.33$12,500.00$8,333.33
6$25,000.00$15,000.00$10,000.00
7$29,166.67$17,500.00$11,666.67
8$33,333.33$20,000.00$13,333.33
9$37,500.00$22,500.00$15,000.00
10$41,666.67$25,000.00$16,666.67
11$45,833.33$27,500.00$18,333.33
12$50,000.00$30,000.00$20,000.00
Revenue vs Cost of Goods Sold: Revenue, Total Cost, Gross Profit across 12 periods for this calculator's default example, peaking at $50,000.00.
Drawn from this calculator's own default inputs, where Selling Price from Target Margin is $83.33. Change the inputs above to see your own figures.
Quick Answer: An item that costs $50.00, priced for a 40% margin, sells for $83.33. That leaves $33.33 of gross profit per unit, which is 40% of the price and a 66.67% markup on cost. Enter your cost and either a target margin or a target markup, and this price margin calculator returns the selling price each one produces and the equivalent figure in the other system.

What does this calculator do?

Margin and markup are calculated from the same two numbers, cost and selling price, but they are not the same percentage, and confusing the two is one of the most expensive pricing mistakes a small business or reseller can make. Markup is profit expressed as a percentage of cost. Margin is profit expressed as a percentage of the selling price. A product marked up 100% over cost does not have a 100% margin; it has a 50% margin, and that gap between the two numbers is exactly where underpricing happens.

This calculator is built for retailers, wholesalers, freelancers, and product businesses setting prices from a known cost basis. It solves the conversion problem in both directions: give it a target margin and it tells you the selling price and the equivalent markup; give it a target markup and it tells you the selling price and the equivalent margin. That symmetry matters because different industries quote pricing differently, retail buyers often think in margin, distributors and manufacturers often think in markup, and moving between a supplier's markup language and your own margin-based pricing model is where the arithmetic errors creep in.

The tool also reports gross profit per unit in dollars, not just percentages, because a healthy-looking margin percentage on a low-cost item can still produce too little absolute profit to be worth the labor and overhead of selling it.

How to Calculate Profit Percentage: Margin or Markup

"Profit percentage" means two different things depending on what you divide by, which is why margin and markup get confused.

  • Margin divides gross profit by the selling price: (Price − Cost) ÷ Price.
  • Markup divides gross profit by the cost: (Price − Cost) ÷ Cost.

Gross profit itself is a dollar figure, not a percentage: price minus cost. At the default inputs the calculator returns a gross profit of $33.33 per unit on an $83.33 price and a $50.00 cost. That one $33.33 is a 40% margin and a 66.67% markup at the same time.

This calculator works forward from a target percentage. It does not take an existing selling price and report its margin. To check a price you already charge, use the two formulas above by hand: a $50 item selling for $70 has $20 of gross profit, a $20 ÷ $70 = 28.57% margin, and a $20 ÷ $50 = 40% markup. Entering a 40% target markup on a $50 cost confirms it: the calculator returns a $70.00 price at a 28.57% equivalent margin.

How is this calculated?

Given cost C, a target margin m (as a decimal), and a target markup k (as a decimal), the calculator applies two independent formulas.

Price from a target margin, solved algebraically so that profit divided by the resulting price equals exactly m:

Price = Cost ÷ (1 − Margin)

Price from a target markup, where profit is simply cost times the markup rate:

Price = Cost × (1 + Markup)

Once a price is produced from either formula, the calculator computes the equivalent value in the other system for comparison:

Equivalent Markup (from a margin-derived price) = (Price − Cost) ÷ Cost Equivalent Margin (from a markup-derived price) = (Price − Cost) ÷ Price

The relationship between the two is not linear: Markup = Margin ÷ (1 − Margin), and Margin = Markup ÷ (1 + Markup). This is why a 50% margin equals a 100% markup, but a 50% markup only equals a 33.3% margin, and it is why the two figures diverge more sharply as the percentages get larger. All computations run through Decimal.js arbitrary-precision arithmetic so the conversion holds to the cent even at high markup multiples used in software, digital goods, and specialty retail.

Worked Example

A retailer buys a unit for $50 and wants a 40% margin on it. Work that side first.

Step 1: The margin as a decimal. 40% / 100 = 0.40

Step 2: The divisor. 1 - 0.40 = 0.60

Step 3: The price. $50 / 0.60 = $83.33

Step 4: Gross profit per unit. $83.33 - $50.00 = $33.33

Step 5: What that margin is in markup terms. $33.33 / $50.00 = 66.67%

Step 5 is the conversion the whole page exists for. The same $33.33 of profit is 40% of the price and 66.67% of the cost, because the two ratios use different denominators.

Now run the markup side independently, at the equivalent 66.67% target:

Step 6: The markup as a decimal. 66.67% / 100 = 0.6667

Step 7: The multiplier. 1 + 0.6667 = 1.6667

Step 8: The price. $50 x 1.6667 = $83.34

Step 9: What that markup is in margin terms. ($83.34 - $50.00) / $83.34 = 40.00%

Step 10: The reconciliation. $83.34 - $83.33 = one cent, the entire difference between the two routes, and it comes from 0.6667 being a truncation of two-thirds rather than from any disagreement about the pricing rule

Keystone pricing makes the identity easier to see, because the fraction is exact:

Step 11: A $100 cost at a 50% margin target. $100 / (1 - 0.50) = $200.00, a gross profit of $100.00

Step 12: The equivalent markup. $100.00 / $100.00 = 100.00%

Step 13: The markup route, at 100%. $100 x (1 + 1.00) = $200.00, with an equivalent margin of 50.00%

Step 14: The gap this time. $200.00 - $200.00 = $0.00. Keystone, "100% markup" and "50% margin" are three names for doubling the cost, and at this ratio the two formulas agree to the cent with nothing left over.

The direction of the error matters more than its size. A shop that hears "40% margin" and applies a 40% markup prices at $70.00 rather than $83.33, giving up $13.33 a unit and realising a 28.57% margin instead of the 40% it intended. Markup always exceeds the margin it produces, and the gap widens as the numbers grow.

What does this calculator not account for?

  • Payment processing fees, marketplace commissions, and sales tax. The margin and markup here are calculated on cost of goods versus list price only; a 15% marketplace commission or 3% card processing fee will erode the realized margin below what this calculator shows.
  • Shrinkage, returns, and damaged inventory. Retail margin in practice is reduced by theft, spoilage, and returned merchandise, none of which this calculator models.
  • Volume-based cost changes. If your supplier cost drops at higher order quantities, the cost of goods figure you enter should reflect the volume tier you actually plan to purchase at, not a list price.
  • Landed cost components. For imported goods, "cost of goods" should already include freight, duties, and customs fees if you want a margin that reflects true profitability; the calculator takes whatever cost figure you enter at face value.
  • Competitive and demand-based pricing constraints. This tool computes the price that achieves a target margin or markup mathematically; it does not check whether that price is competitive or acceptable to your market.

What mistakes do people make with this?

  • Using markup and margin interchangeably in conversation with a supplier or accountant. "We run a 50% markup" and "we run a 50% margin" describe very different profitability, a 50% markup on a $50 item yields a $75 price and 33.3% margin, while a 50% margin on that same $50 cost yields a $100 price. Always confirm which one is being discussed.
  • Setting margin targets without checking absolute dollar profit. A 60% margin on a $10 item is $15 of price and only $6 of profit; if your overhead per transaction exceeds that, a high margin percentage can still lose money on low-cost items.
  • Forgetting that markup percentages have no ceiling but margin percentages cap at 100%. Margin approaches but never reaches 100% as markup grows arbitrarily large (an infinite markup implies giving away the product for free relative to cost is impossible), which trips up people who try to apply margin math at very high multiples.
  • Applying an average margin target uniformly across a product line with very different cost structures. A flat "40% margin on everything" policy can badly underprice low-cost, high-volume items relative to what the market would bear, or overprice big-ticket items relative to competitors.
  • Confusing markup on cost with markup on selling price. Some industries, particularly certain retail and hospitality segments, quote "markup" as a percentage of the selling price, which is actually margin by another name. Confirm the convention before comparing numbers across sources.

Frequently Asked Questions

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

No. A 50% margin means profit is half of the selling price (cost of $50 sells for $100). A 50% markup means profit is half of the cost (cost of $50 sells for $75, a 33.3% margin). They only converge at 0%.

How do I calculate price margin from cost?

Divide the cost by one minus the target margin. A $50 cost at a 40% margin is $50 ÷ 0.60 = $83.33. Multiplying the cost by 1.40 instead gives $70.00, which is a 40% markup and only a 28.57% margin.

Is gross profit the same as margin?

No. Gross profit is the dollar amount left after cost of goods, $33.33 a unit in the default example. Margin is that same gross profit expressed as a share of the selling price, 40% here.

Which one should I use to set my prices?

Margin is generally more useful for financial planning because it directly tells you what percentage of each sales dollar is profit, which ties straight into your income statement. Markup is often more convenient at the point of costing an individual item because you are starting from a known cost and want to know how much to add.

What is "keystone" pricing?

Keystone pricing means doubling your cost to set the retail price, a 100% markup that produces exactly a 50% margin. It is a common shorthand rule of thumb in retail, though it does not account for category-specific overhead or competitive pricing pressure.

How do I convert a competitor's advertised margin into the markup I'd need to match their price?

Use the formula Markup = Margin ÷ (1 − Margin). For example, a competitor operating at a 25% margin is equivalent to a 33.3% markup on cost; if your cost structure is similar, that is the price relationship you would need to match.

Why did my two prices come out one cent apart in the worked example?

Because the margin-derived price and the markup-derived price are computed independently from two separately-rounded percentage inputs (40.00% and 66.67%), and 66.67% is not the infinitely precise equivalent of 40% (that would be 66.666...%). The one-cent gap is expected rounding, not a calculation error.

Sources

  • U.S. Small Business Administration, pricing strategy resources for retail and wholesale businesses. sba.gov

Also consulted: American Institute of CPAs (AICPA), guidance on gross margin reporting under standard cost accounting; National Retail Federation, retail pricing and markup terminology standards.

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 3 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Vector 1: Baseline $50 cost, 40% target margin, 66.67% target markup
  • Vector 2: Keystone pricing ($100 cost, 50% margin, 100% markup)
  • Vector 3: High markup SaaS/Digital product ($10 cost, 80% margin, 400% markup)

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews