Skip to main content
🟢 Beginner

Profit Margin Calculator

Calculate profit margin, gross profit, and markup from revenue and cost. Essential business calculator.

The Three Types of Profit Margin

Profit margin comes in three flavors, each revealing a different layer of profitability:

Gross Profit Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100
Measures how efficiently a company produces its core product after direct production costs. A 60% gross margin means $0.60 of every sales dollar remains after paying for the product itself.

Operating Profit Margin = (Revenue − COGS − Operating Expenses) ÷ Revenue × 100
Includes overhead, salaries, rent, and marketing. Reveals the profitability of core business operations before interest and taxes.

Net Profit Margin = Net Income ÷ Revenue × 100
The bottom line — profit after all expenses including taxes and interest. This is the most comprehensive profitability measure.

Example: A retailer with $500,000 revenue, $200,000 COGS, $150,000 operating expenses, $20,000 interest, and $30,000 taxes:
• Gross margin: ($500k − $200k) ÷ $500k = 60%
• Operating margin: ($500k − $200k − $150k) ÷ $500k = 30%
• Net margin: ($500k − $200k − $150k − $20k − $30k) ÷ $500k = 20%

Profit Margin Benchmarks by Industry

What counts as a 'good' profit margin varies dramatically by industry:

IndustryTypical Gross MarginTypical Net Margin
Software (SaaS)70–85%15–25%
Retail (e-commerce)40–60%3–8%
Grocery retail25–30%1–3%
Restaurant60–70%3–9%
Manufacturing25–35%5–10%
Healthcare40–60%5–15%
Financial services85–95%20–30%
Construction15–25%2–6%
Consulting65–80%15–25%

Never judge profit margins in isolation — compare against industry peers. A 5% net margin is excellent for a grocery store and terrible for a software company. Context is everything.

How to Improve Profit Margins

There are fundamentally two levers for improving profit margins: increase revenue or reduce costs. The most effective strategies work on both simultaneously:

Increase revenue without proportional cost increase:

Reduce costs:

The power of small margin improvements: A business doing $1 million in revenue at 10% net margin earns $100,000. Improving to 15% net margin adds $50,000 in profit — equivalent to growing revenue by 50% at the original margin. This is why margin expansion is often more valuable than top-line growth.

Profit Margin vs. Markup: Critical Difference

Margin and markup are related but measure different things. Many business owners confuse them, sometimes catastrophically:

Profit margin is calculated on the selling price: Margin = Profit ÷ Selling Price

Markup is calculated on the cost: Markup = Profit ÷ Cost

If something costs $60 and you sell it for $100:

Conversion formulas:
Margin = Markup ÷ (1 + Markup)
Markup = Margin ÷ (1 − Margin)

Common mistake: A store owner wants a 40% profit margin and prices everything at cost × 1.40. That gives a 28.6% margin, not 40%. To achieve a 40% margin, the markup needs to be 66.7% (price = cost × 1.667).

Desired MarginRequired Markup
20%25%
30%42.9%
40%66.7%
50%100%

Pricing Strategies and Margin Management

Your pricing strategy fundamentally determines your margin potential:

Cost-plus pricing: Calculate all costs, add desired profit margin. Simple and ensures you cover costs, but ignores what the market will bear. Can leave money on the table if customers value your product highly.

Value-based pricing: Price based on the perceived value to the customer. If your product saves a customer $10,000/year, pricing at $2,000/year captures only 20% of the value created — leaving room to raise prices significantly. SaaS companies and premium brands use this approach.

Competitive pricing: Set prices relative to competitors. Works in commodity markets but leads to margin compression as you match each other's discounts.

Dynamic pricing: Adjust prices based on demand, time, or customer segment. Airlines, hotels, and ride-sharing companies use algorithms to maximize revenue. Can achieve 15–25% better margin than static pricing.

For small businesses, the highest-impact action is often simply raising prices 5–10%. Most small business owners undercharge due to fear of losing customers. Research shows price increases of 5% cause fewer than 5% customer loss in most service businesses — but add directly to profit margin.

Profit Margin Analysis for Investors

When evaluating stocks and businesses for investment, profit margin analysis reveals competitive advantages and financial health:

Expanding margins: A company consistently growing its gross and operating margins is gaining pricing power or achieving economies of scale. This is a bullish signal for long-term profitability.

Margin compression: Declining margins signal competition, rising costs, or pricing pressure. This often precedes earnings disappointments. Watch for gross margin trends as an early warning indicator.

Famous high-margin businesses as examples:

High margins attract competition, which erodes margins over time. Sustainable high margins require durable competitive advantages (moats): strong brands, network effects, switching costs, or proprietary technology.

Frequently Asked Questions

What is a good profit margin for a small business?

For a small retail business, 5–10% net profit margin is typical. Service businesses (consulting, legal, accounting) often achieve 15–30%+ due to low overhead. Restaurants aim for 3–9%. The key is comparison to your specific industry, not general benchmarks.

How is gross margin different from net margin?

Gross margin deducts only direct costs (materials, labor directly tied to production). Net margin deducts all costs including overhead, marketing, G&A, interest, and taxes. A company can have a healthy gross margin but poor net margin due to high overhead or debt costs.

What profit margin do I need to break even?

Break-even is when profit = 0, so technically 0% net margin. But truly breaking even means covering all costs including the owner's reasonable salary and return on invested capital. Most businesses should target at least a 10–15% net margin to be financially healthy long-term.

How do I calculate margin from cost and selling price?

Margin = (Selling Price − Cost) ÷ Selling Price × 100. Example: cost $40, selling price $60. Margin = ($60 − $40) ÷ $60 × 100 = 33.3%. Note this is different from markup, which is ($60 − $40) ÷ $40 × 100 = 50%.

Can profit margin exceed 100%?

No. Profit margin is calculated as profit ÷ revenue, and profit cannot exceed revenue (that would mean negative costs, which is impossible). Profit margin ranges from −∞ (huge losses) to approaching but never reaching 100% (pure profit with near-zero costs).

Why do software companies have such high profit margins?

Software has extremely high gross margins (70–90%) because the marginal cost of delivering one more copy of the software is near zero — no additional raw materials needed. Initial development costs are high but amortized across millions of customers. This creates natural scale advantages that compound over time.

What is EBITDA margin?

EBITDA margin = EBITDA ÷ Revenue × 100. EBITDA (Earnings Before Interest, Taxes, Depreciation, and Amortization) strips out financing decisions and accounting choices, showing operational efficiency. Used widely in business valuation and PE/VC investing. Typically higher than net margin for capital-intensive businesses.