Margin Calculator

Calculate profit margin, markup, and selling prices. Five modes: quick calculation, price builder with fees, margin breakdown, product comparison, and margin↔markup converter. Combine with our ROI Calculator to measure overall investment returns, or use the Price Markup Calculator for quick cost-to-price conversion.

$
$
%
%

How the Margin Calculator Works

This calculator supports five modes for comprehensive margin analysis:

  • Quick Margin — Enter any two values (cost, revenue, margin %, markup %) and get all others calculated instantly with step-by-step formulas.
  • Price Builder — Start with your cost and desired margin/markup, then add shipping, platform fees, payment processing fees, and tax to find the true selling price.
  • Breakdown — Analyze gross, operating, and net margins from your revenue, COGS, operating expenses, and taxes.
  • Compare — Compare up to 5 products side by side to identify your most profitable items.
  • Converter — Instantly convert between margin and markup percentages with a live visual chart.

Key formulas:

  • Margin % = (Revenue − Cost) / Revenue × 100
  • Markup % = (Revenue − Cost) / Cost × 100
  • Revenue from Margin = Cost / (1 − Margin%/100)
  • Margin to Markup = Margin / (100 − Margin) × 100

Margin vs Markup Explained

Margin and markup are two ways of expressing profit relative to different reference points. Margin uses revenue as the base, while markup uses cost. This means margin is always lower than markup for the same transaction.

Common confusion: A 50% markup does NOT mean 50% margin. If you buy for $100 and sell for $150, your markup is 50% but your margin is only 33.3%. Many businesses lose money by confusing these two metrics.

Quick rule: Margin can never exceed 100%, but markup has no upper limit. A 300% markup equals a 75% margin.

How to Improve Profit Margins

  1. Negotiate supplier costs — Even a 5% reduction in COGS directly improves your margin.
  2. Optimize pricing — Test higher prices on inelastic products; customers often accept 5-10% increases.
  3. Reduce shipping costs — Consolidate shipments, negotiate carrier rates, use regional warehouses.
  4. Minimize platform fees — Compare Amazon, eBay, Shopify; each takes different percentages.
  5. Automate operations — Reduce labor costs in order fulfillment and customer service.
  6. Bundle products — Higher-margin items paired with popular ones improve average margin.
  7. Focus on high-margin items — Use the Compare mode to identify your most profitable products and allocate marketing budget accordingly.

Industry Profit Margin Benchmarks

Margins vary significantly across industries. SaaS companies typically enjoy 70-85% gross margins due to low marginal costs, while grocery stores operate on thin 1-3% net margins with high volume. Use the Breakdown mode to see where your business falls.

E-commerce margins (40-50% gross, 5-10% net) are squeezed by platform fees, shipping, and returns. The Price Builder mode helps you account for all these costs before setting your price.

Real-World Examples

FAQ

What is the difference between margin and markup?
Margin is profit as a percentage of the selling price (revenue). Markup is profit as a percentage of the cost. For the same transaction, markup is always higher than margin. Example: buy for $100, sell for $150 — margin = 33.3%, markup = 50%.
How do I calculate profit margin from cost and price?
Margin % = (Selling Price − Cost) / Selling Price × 100. For example, cost $50, price $75: ($75 − $50) / $75 × 100 = 33.3% margin.
How do I calculate selling price from a desired margin?
Selling Price = Cost / (1 − Margin% / 100). For 30% margin on $50 cost: $50 / (1 − 0.30) = $71.43.
What is a good profit margin for my industry?
It varies widely: Grocery 1-3% net, Retail 3-5% net, E-commerce 5-10% net, SaaS 15-25% net, Consulting 10-20% net. Gross margins are much higher. Check the Industry Benchmarks table in this calculator.
Why is margin always less than markup?
Because margin divides profit by revenue (the larger number), while markup divides by cost (the smaller number). Same numerator, different denominator. This mathematical relationship means margin can never exceed 100%, while markup has no upper limit.
Can profit margin be over 100%?
No, profit margin cannot exceed 100% because it is profit divided by revenue, and profit is always less than revenue (profit = revenue − cost). Markup, however, can exceed 100% — for example, buying for $10 and selling for $30 gives a 200% markup but only 66.7% margin.
What is the difference between gross, operating, and net margin?
Gross margin = (Revenue − COGS) / Revenue. Operating margin subtracts operating expenses (rent, salaries, marketing) from gross profit. Net margin subtracts all expenses including taxes. Use the Breakdown mode to calculate all three.
How do I calculate net profit margin?
Net Margin % = (Revenue − All Costs − Taxes) / Revenue × 100. All costs include COGS, operating expenses, interest, and depreciation. The Breakdown mode does this calculation automatically.
How do I convert margin to markup?
Markup % = Margin % / (100 − Margin %) × 100. For example, 25% margin = 25 / (100 − 25) × 100 = 33.3% markup. Use the Converter mode for instant conversion.
How does shipping cost affect my margin?
Shipping reduces your true margin. If you sell for $100 with $30 cost and $10 shipping, your true profit is $60, but your margin on total costs is 60% — not 70%. Use Price Builder mode to include shipping in your pricing.
How do platform fees (Amazon, eBay) affect pricing?
Platform fees (typically 8-15% of selling price) significantly reduce margins. A product with 40% gross margin drops to 25-32% after platform fees. The Price Builder mode calculates your true margin after all platform and payment fees.
How do payment processing fees affect my margin?
Payment processors like Stripe (2.9% + $0.30) or PayPal (2.9% + $0.30) take a percentage of each sale. On a $50 sale, that is $1.75 — a 3.5% margin reduction. Always include these in pricing calculations.
What is the difference between gross margin and gross profit?
Gross profit is the absolute dollar amount (Revenue − COGS). Gross margin is gross profit as a percentage of revenue. A $100 product with $40 COGS has $60 gross profit and 60% gross margin.
How do I compare margins across multiple products?
Use the Compare mode to enter up to 5 products with their costs and selling prices. The calculator shows margin %, markup %, and profit for each, plus a chart to visualize differences. Focus marketing on your highest-margin products.
What is the break-even margin?
Break-even margin is 0% — where revenue exactly equals total costs and there is no profit or loss. Any positive margin means you are profitable on that sale; the question is whether it covers your fixed costs too.
How does VAT/sales tax affect margins?
VAT is typically collected from customers and remitted to the government, so it should not be included in your margin calculation. However, if you cannot pass VAT to customers, it directly reduces your margin. The Price Builder handles tax calculations.
What is contribution margin?
Contribution margin = Revenue − Variable Costs. It shows how much each sale contributes to covering fixed costs. Unlike gross margin, it only subtracts costs that vary with each unit sold (materials, shipping, commissions).
How do I improve low profit margins?
Seven strategies: 1) Negotiate lower supplier costs, 2) Raise prices on inelastic products, 3) Reduce shipping costs, 4) Minimize platform fees, 5) Automate operations, 6) Bundle high-margin items, 7) Cut underperforming products.
What are good target margins for e-commerce?
Gross margins of 40-50% are typical for e-commerce. After shipping, platform fees, returns, and payment processing, aim for 15-25% operating margin. Products under 30% gross margin are risky due to thin net margins after all costs.
How do margins work in service businesses?
Service businesses often have high gross margins (50-70%) because COGS is mainly labor time. However, net margins (10-20%) are moderate after overhead (office, software, insurance). The key metric is effective hourly margin.
What is the relationship between margin and pricing power?
Higher margins indicate stronger pricing power — the ability to charge premium prices. Brands with unique products, strong reputation, or few competitors enjoy higher margins. Commoditized products face margin pressure.
How do seasonal fluctuations affect margins?
Seasonal demand creates margin swings. During peak seasons, you may raise prices (higher margins). During off-season, discounting reduces margins. Track your margin by month to identify patterns and adjust pricing strategy.
Should I focus on margin percentage or absolute profit?
Both matter. A 50% margin on a $10 product earns $5 profit. A 20% margin on a $500 product earns $100. High-margin/low-price items need volume; low-margin/high-price items need fewer sales but larger transactions.
How do economies of scale affect margins?
As volume increases, per-unit costs decrease (bulk purchasing, spread fixed costs). This improves margins without raising prices. A product with 30% margin at 100 units might reach 45% margin at 10,000 units.
What is operating leverage and how does it relate to margins?
Operating leverage means high fixed costs relative to variable costs. High operating leverage (like SaaS) means each additional sale has very high margin since fixed costs are already covered. This amplifies profits but also amplifies losses.