Skip to content

Free browser tools that respect your files: everything runs locally, nothing is uploaded.

Profit Margin Calculator

Calculate gross margin, operating margin, and net profit margin. Compare to industry benchmarks and analyze margin trends.

Revenue & Expenses

Enter your financial information

Choose which value you want to find

Select which profit margin to analyze

$

Total income from sales of goods or services.

$

Cost of goods sold (COGS) - direct costs to produce goods/services.

$

Indirect costs like rent, utilities, salaries, marketing.

Gross Margin

40.0%

Revenue - COGS

Operating Margin

20.0%

After operating costs

Net Margin

12.0%

Bottom line profit

Net Profit

$60,000

Total profit

Margin Breakdown

How revenue flows to net margin

COGS

60.0%

Operating Exp.

20.0%

Net Margin

12.0%

Margin Comparison

Compare all three margin levels

Key insight: The gap between gross and net margin shows how much revenue is consumed by operating expenses, interest, and taxes.

Target Progress: gross margin

Current: 40.0%Target: 50.0%
80%

10.0% to go to reach target

Recommendations

Strong Gross Margin

Your gross margin is excellent. Focus on maintaining supplier relationships and pricing power.

Healthy Net Margin

Your net margin is healthy. Consider reinvesting profits for growth.

Adjust Revenue

See how revenue changes affect your margins

$250,000$500,000$1,000,000

Personalized Insights

3 insights based on your inputs

Note

Your 40.0% gross margin is solid. Many businesses operate successfully in this range.

Good News

Your 20.0% operating margin shows efficient operations and good cost control.

Good News

A 12.0% net margin is healthy and leaves room for reinvestment and growth.

Your Results

Results are also pinned to the bottom of your screen.

Gross Margin

40.0%

Excellent

Operating Margin

20.0%

Excellent

Net Margin

12.0%

Good

Profit Summary

Revenue$500,000
Gross Profit$200,000
Operating Profit$100,000
Net Profit$60,000

Target Margin Analysis

Target50.0%
Current40.0%
Gap10.0%
Progress80%

Recommendations

Strong Gross Margin

Your gross margin is excellent. Focus on maintaining supplier relationships and pricing power.

Healthy Net Margin

Your net margin is healthy. Consider reinvesting profits for growth.

Margin Formulas

Gross: (Revenue - COGS) / Revenue

Operating: Operating Profit / Revenue

Net: Net Profit / Revenue

Formula:

Quick Answer: What are Profit Margins?

Gross Margin = (Revenue - COGS) / Revenue x 100. Operating Margin = Operating Income / Revenue x 100. Net Margin = Net Income / Revenue x 100. Example: $500K revenue, $200K COGS, $150K operating expenses, $30K taxes = 60% gross margin, 30% operating margin, 24% net margin.

Key Facts About Profit Margins

  • Gross Margin = (Revenue - COGS) / Revenue x 100
  • Operating Margin = Operating Income / Revenue x 100
  • Net Margin = Net Income / Revenue x 100
  • EBITDA Margin = EBITDA / Revenue x 100
  • Software/SaaS typically has 70-80% gross margins
  • Retail typically has 25-35% gross margins, 2-5% net
  • Higher margins generally indicate stronger pricing power
  • Operating margin shows efficiency of core business operations

Frequently Asked Questions

What is the difference between gross, operating, and net margin?

Gross margin uses only COGS. Operating margin also deducts operating expenses (rent, salaries, marketing). Net margin deducts everything including interest and taxes. Each level shows a different aspect of profitability.

How do I calculate gross profit margin?

Gross Margin = (Revenue - Cost of Goods Sold) / Revenue x 100. If revenue is $100,000 and COGS is $60,000, gross margin is ($100,000 - $60,000) / $100,000 x 100 = 40%.

What is a good gross margin?

It varies widely by industry. Software: 70-85%. Manufacturing: 25-35%. Retail: 25-50%. Restaurants: 60-70% on food. Service businesses: 50-70%. Compare to direct competitors for meaningful benchmarks.

What is EBITDA margin?

EBITDA margin = (Earnings Before Interest, Taxes, Depreciation, Amortization) / Revenue x 100. It shows operating profitability before accounting decisions and financing. Useful for comparing companies with different capital structures.

Why does operating margin matter?

Operating margin shows how efficiently you run core business operations, excluding financing and tax effects. It reveals pricing power and cost control. Declining operating margins often signal competitive pressure.

What factors affect profit margins?

Key factors: pricing strategy, cost of goods sold, operating efficiency, scale/volume, competition, market positioning, and economic conditions. Premium brands typically have higher margins than commodity products.

How can I improve profit margins?

Strategies include: raising prices (if market allows), reducing COGS through better suppliers or efficiency, cutting operating expenses, focusing on higher-margin products/services, and increasing sales volume for better fixed cost coverage.

What is the relationship between margin and markup?

Margin is profit as % of selling price. Markup is profit as % of cost. A 50% markup gives ~33% margin. A 100% markup gives 50% margin. They measure the same profit differently.

How do I analyze margin trends?

Compare margins over time (quarterly, yearly). Look for: improving or declining trends, seasonal patterns, impact of pricing changes, cost structure shifts. Consistent or improving margins indicate business health.

What is contribution margin?

Contribution margin = (Revenue - Variable Costs) / Revenue. It shows what percentage of each sale goes toward fixed costs and profit. Different from gross margin as it only considers variable costs.

By Joseph OrdunaHow this works

How this works

Calculations are run entirely in your browser. No inputs are sent to our servers and no account is required. Formulas follow standard US definitions from the IRS and the CFPB where applicable; international users should confirm local tax and regulatory rules apply.

What this tool can’t do

When to consult a professional

This is a software engineering tool, not financial advice. Run the math here, then take the result to a certified financial planner, CPA, or your bank before making a decision that materially affects your money.

Sources

  1. [1]
    Consumer Financial Protection Bureau (CFPB)
    Official sourceconsumerfinance.govAccessed Apr 21, 2026

    US consumer finance regulator; authoritative on mortgage disclosures, APR rules, credit cards.

Joseph Orduna
Founder & Software Engineer

Full-stack software engineer specializing in embedded systems, web architecture, and AI/ML. Founder of Practical Web Tools. Built the gesture-controlled drone IP acquired by KD Interactive (Aura Drone, sold on Amazon).