Margin Calculator

Determine profit margin, markup, and selling price from any combination of revenue, cost, or markup percentage.

$
$

Enter your values above to see the results.

Tips & Notes

  • Use the formula Price = Cost / (1 - Margin) when targeting a specific margin — do not use Price = Cost x (1 + Margin), which gives markup, not margin.
  • Quick margin check: if profit is one-third of price, margin is 33.3%; if profit is half the price, margin is 50%.
  • Always verify pricing in both markup and margin terms — a 50% markup produces 33.3% margin, not 50%; using the wrong figure leads to consistent underpricing.
  • When your cost increases, recalculate price immediately to maintain target margin — pricing based on old cost data erodes margin invisibly.
  • Service businesses with negligible direct cost can achieve 90%+ gross margins — but ensure operating expenses are fully captured in overhead allocation before declaring high margins.
  • Margin on a product mix is the weighted average of individual product margins — high-margin product mix shifts improve overall profitability without changing any individual price.

Common Mistakes

  • Using markup percentage when margin percentage is intended — a target of 30% margin achieved through 30% markup actually produces only 23.1% margin.
  • Not recalculating price when cost changes — a 10% supplier price increase with no price adjustment reduces a 40% margin to approximately 33% margin.
  • Calculating margin on cost instead of revenue — margin is always (price - cost) / price, not (price - cost) / cost which is markup.
  • Treating gross margin as net margin — gross margin does not include operating expenses, interest, or taxes; net margin is typically 10-30% of gross margin.
  • Setting prices based on competitor comparison without knowing your own cost structure — matching a competitor price that produces 40% margin for them may produce 15% for you.
  • Ignoring variable costs that scale with sales volume — shipping, payment processing (typically 2-3% of revenue), and returns all reduce effective margin below the calculated rate.

Margin Calculator Overview

A margin calculator solves for the missing variable in the pricing relationship between cost, price, markup, and margin. Given any two of these variables, it calculates the remaining values and displays the complete picture — profit margin, markup percentage, dollar profit, and selling price — together in one view.

This makes it easy to verify pricing decisions, reverse-engineer competitor pricing, or confirm that a desired margin is being achieved at any cost level.

What each field means:

  • Mode — choose which two values you know: revenue and cost (to find margin and markup), or cost and markup (to find selling price and margin)
  • Revenue — the selling price; what the customer pays
  • Cost — the cost of the product or service being sold; the base for markup calculation
  • Markup % — the percentage added to cost to arrive at selling price; used when you know cost and markup but need price and margin

What your results mean:

  • Profit Margin — profit as a percentage of selling price; (revenue - cost) / revenue
  • Markup — profit as a percentage of cost; (revenue - cost) / cost
  • Profit — the dollar amount earned above cost
  • Selling Price — the price to charge when solving from cost and markup

Example — Revenue $85, Cost $55 (margin and markup mode):

Revenue: $85.00 Cost: $55.00 Profit: $30.00 Profit margin: $30 / $85 = 35.3% Markup: $30 / $55 = 54.5% Interpretation: this product is priced at a 54.5% markup on cost and generates a 35.3% margin on every sale.
EX: Same profit expressed as markup and margin Cost $40, price $60: profit $20 Markup: $20 / $40 = 50% Margin: $20 / $60 = 33.3% Cost $40, price $80: profit $40 Markup: $40 / $40 = 100% Margin: $40 / $80 = 50% Doubling the price from $60 to $80 doubles the markup from 50% to 100% but only increases margin from 33.3% to 50%.

Margin and markup for common price-to-cost ratios:

CostPriceProfit MarginMarkup
$50$6523.1%30%
$50$7533.3%50%
$50$10050.0%100%
$50$15066.7%200%

Selling price needed to achieve target margin at various costs:

Cost25% margin40% margin50% margin
$30$40.00$50.00$60.00
$75$100.00$125.00$150.00
$200$266.67$333.33$400.00

The selling price formula for a target margin is: Price = Cost / (1 - Margin). This formula solves the circular reference in margin calculation — since margin is expressed as a percentage of the selling price, which is what you are trying to find. For a 40% margin on a $75 cost: Price = $75 / (1 - 0.40) = $75 / 0.60 = $125. The equivalent markup is 66.7%. Many businesses use the simpler markup formula (Price = Cost x (1 + Markup)) but then describe results in margin terms, which requires the conversion formulas to avoid systematic pricing errors.

Frequently Asked Questions

Profit Margin = (Revenue - Cost) / Revenue x 100. For a product selling at $120 with a $75 cost: Profit = $45. Margin = $45 / $120 = 37.5%. This is gross profit margin at the product level. Business-level gross margin uses total revenue minus total COGS. Operating margin subtracts all operating expenses. Net margin subtracts taxes and interest. Each layer reveals a different aspect of profitability. For individual pricing decisions, gross margin is the relevant measure — it shows how much each sale contributes toward covering fixed costs and generating profit.

Selling Price = Cost / (1 - Target Margin). For a $60 cost with a 35% target margin: $60 / (1 - 0.35) = $60 / 0.65 = $92.31. Verification: margin = ($92.31 - $60) / $92.31 = $32.31 / $92.31 = 35%. The common mistake is using Price = Cost x (1 + Margin), which gives markup pricing, not margin pricing. At a 35% target, this incorrect formula gives $60 x 1.35 = $81 — and the actual margin on $81 is only 25.9%, not 35%. Always use division to price for a target margin.

To convert markup to margin: Margin = Markup / (1 + Markup). A 50% markup: 0.50 / 1.50 = 33.3% margin. To convert margin to markup: Markup = Margin / (1 - Margin). A 40% margin: 0.40 / 0.60 = 66.7% markup. Key reference points: 25% markup = 20% margin; 50% markup = 33.3% margin; 100% markup = 50% margin; 200% markup = 66.7% margin. These conversions are essential for anyone who sets prices using markup but reports profitability in margin terms — the two expressions of the same profit look like very different numbers.

Healthy margin benchmarks depend on industry type. Service businesses with low direct costs (consulting, software, financial services) should target gross margins of 50-80% and net margins of 15-30%. Product-based businesses face higher COGS and typically target gross margins of 40-60% with net margins of 5-15%. Retail businesses with thin margins often run 2-8% net. The most important benchmark is whether margin is sufficient to: cover all operating expenses, service debt, fund growth, and provide adequate return on investment. A business generating 8% net margin on $500,000 revenue earns $40,000 — whether that is adequate depends entirely on the capital and effort invested.

Volume does not directly change per-unit margin (price and cost are fixed). However, volume affects total profit dollars dramatically — 10% margin on $1,000,000 revenue is $100,000 while 10% margin on $100,000 is $10,000. Volume does improve margin indirectly through: bulk purchasing discounts that reduce COGS (improving gross margin), fixed cost leverage where operating expenses stay constant as revenue grows (improving operating margin), and negotiating power with suppliers and service providers at higher volumes. For businesses with high fixed costs and low variable costs, scaling revenue is the primary path to margin improvement.

Pricing margin calculations typically use direct cost of the specific product or service. Income statement gross margin uses total COGS including all production costs allocated across the full product line. Differences arise from: allocation of overhead costs to COGS (factory overhead, depreciation), inclusion of costs not in the per-unit pricing model (quality control, warehousing, inbound freight), product mix effects where higher-margin items in the pricing model are offset by lower-margin items in the actual sales mix, and returns and allowances reducing realized revenue below the theoretical selling price. The income statement margin is the accurate measure of actual profitability.