BedrockCalculator
Verified Primary-Source MathematicsVerified by Aapt Dubey, MBA (Marketing & Finance) 1 primary sourceLast updated September 14, 2026

Margin vs Markup Calculator

Quick Answer: Enter your cost of goods and either a target profit margin or a target markup percentage, and this calculator converts between the two and computes the exact selling price each one produces.

Assumptions

Loading
$
%
%

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 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: Enter your cost of goods and either a target profit margin or a target markup percentage, and this calculator converts between the two and computes the exact selling price each one produces.

Overview

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 This Is 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 This Does 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.

Common Pitfalls

  • 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%.
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; Corporate Finance Institute, margin versus markup conversion methodology.

Did this calculator answer your question?

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews