Margin Calculator

Calculate profit margins, compare with markup, and find target prices

Calculate Margin

📐 Margin Formula

Margin % = ((Selling - Cost) / Selling) × 100

Selling = Cost / (1 - Margin%)

Results

Gross Margin

33.33%

Cost Price$100.00
Selling Price$150.00

Profit

$50.00

Margin vs Markup

Margin

33.3%

of selling price

Markup

50.0%

of cost price

Calculation:

Profit = $150.00 - $100.00 = $50.00

Margin = $50.00 / $150.00 × 100 = 33.33%

Margin ↔ Markup Conversion

MarginMarkupExample
20%25.00%$80 cost → $100 sell
25%33.33%$75 cost → $100 sell
33.33%50.00%$66.67 cost → $100 sell
50%100.00%$50 cost → $100 sell
60%150.00%$40 cost → $100 sell

Margin Calculator: Essential Tool for Business Profitability

Profit margin is the definitive measure of business health—the percentage of each sales dollar that becomes profit after covering costs. Unlike markup (calculated on cost), margin is calculated on revenue, making it the standard metric for financial statements, investor communications, and comparing profitability across businesses. Our comprehensive margin calculator offers three modes: calculate margin from prices, reverse calculate maximum cost for a target margin, and target pricing to find the selling price needed for a specific margin.

Whether you're analyzing product profitability, setting pricing strategy, or preparing financial reports, understanding margin is essential. Our calculator not only computes accurate margin percentages but also shows the equivalent markup, preventing the confusion that often arises between these related but different metrics. For markup-focused calculations, see our Markup Calculator.

Types of Profit Margins Explained

Gross Margin is the most common margin metric: (Revenue - Cost of Goods Sold) ÷ Revenue × 100. It shows what percentage of revenue remains after direct product costs, before operating expenses. For a product selling at $100 with $60 cost, gross margin is 40%. This is what our calculator computes by default.

Operating Margin factors in operating expenses (rent, salaries, utilities) in addition to COGS. It shows profitability from core operations before interest and taxes. Lower than gross margin, operating margin reveals how efficiently a business controls overhead.

Net Margin is the bottom-line percentage after all expenses including taxes and interest. It's the ultimate profitability measure but varies significantly based on financing decisions and tax situations. When someone says "profit margin" without qualification, they often mean gross margin for product pricing or net margin for overall business analysis. Use our Tax Calculator to factor in tax impacts.

Healthy Margin Benchmarks by Industry

Retail: Gross margins typically range 25-50%. High-volume retailers like grocery stores operate on 2-5% net margins, while specialty retail may achieve 5-10%. Online retail can achieve higher margins by eliminating physical store overhead.

Software and SaaS: Gross margins of 70-85% are typical because incremental costs of serving additional customers are minimal. Net margins of 20-40% are achievable at scale, making software highly attractive for investors.

Manufacturing: Gross margins of 20-35% are common, with significant variation based on automation and labor costs. High-value manufacturing niches can achieve higher margins.

Professional services: Gross margins of 50-70% are typical. The primary cost is labor, and efficient resource utilization is key to profitability. Net margins of 15-25% are achievable for well-run firms. Calculate related percentages with our Percentage Calculator.

Using the Target Margin Calculator

The target margin mode answers a critical pricing question: "What selling price do I need to achieve my target margin?" This is invaluable when costs increase (you need to raise prices) or when entering new markets where you've predetermined acceptable margin thresholds.

Formula: Selling Price = Cost ÷ (1 - Target Margin%). For a $60 cost and 40% target margin: $60 ÷ (1 - 0.40) = $60 ÷ 0.60 = $100 selling price. The calculator handles this instantly—enter cost and target margin to see required selling price.

Reverse mode answers the opposite question: "Given my selling price and target margin, what's the maximum I can pay for this product?" This is essential for purchasing decisions—if competitors price at $100 and you need 35% margin, you can pay at most $65 for the product.

Margin Improvement Strategies

Reduce COGS: Negotiate better supplier pricing, find alternative suppliers, reduce waste, or redesign products for lower-cost materials. Even small percentage improvements in COGS translate directly to margin gains.

Increase prices: Test price increases on less price-sensitive products or customer segments. Often, small price increases don't significantly affect volume but dramatically improve margins. Promotional pricing with our Discount Calculator can help analyze discount impacts.

Product mix optimization: Shift sales toward higher-margin products through marketing, sales incentives, and inventory decisions. Even at the same total revenue, a better product mix improves aggregate margin.

Frequently Asked Questions About Margin

How do I calculate profit margin?

Gross Margin = (Selling Price - Cost) ÷ Selling Price × 100. For $150 selling price and $90 cost: ($150 - $90) ÷ $150 × 100 = 40% margin. The $60 profit represents 40% of the $150 selling price.

What's considered a good profit margin?

This varies dramatically by industry. A 5% net margin might be excellent in grocery retail but poor in software. Compare against industry benchmarks, not absolute numbers. Generally, improving your own margins year-over-year is a positive sign regardless of absolute level.

How do I convert margin to markup?

Markup = Margin ÷ (1 - Margin). For 40% margin: 0.40 ÷ (1 - 0.40) = 0.40 ÷ 0.60 = 66.7% markup. Our calculator shows both metrics automatically. Plan finances with our Savings Calculator.

Can margin exceed 100%?

No, mathematically impossible. Margin represents profit as a percentage of selling price—since profit can't exceed selling price, margin maxes out below 100% (approaching 100% only when cost approaches zero). Markup, however, can exceed 100% easily (200% markup means selling for 3× cost).