Profit Margin Calculator

Calculate profit margin percentage from revenue and costs

Educational purposes only. This calculator is for informational purposes and should not be considered financial, tax, or legal advice. Consult a qualified professional for personalized guidance.

Try an example:

Profit Margin

$
$
Profit Margin Formula
Margin = (Revenue - Costs) / Revenue x 100

Calculate Profit Margin

Enter revenue and costs to calculate profit margin.

Understanding Profit Margin

What is Profit Margin?

Profit margin measures how much of each dollar in revenue translates into profit after accounting for costs.

Industry Benchmarks

Healthy profit margins vary by industry: retail (2-5%), software (20-40%), consulting (15-25%).

How This Tool Works

Profit Margin Calculator

Measuring Business Profitability

Profit margin reveals how much of every dollar in revenue actually becomes profit after expenses. This fundamental metric separates thriving businesses from those barely surviving—and helps identify where money is being lost along the way. The profit margin calculator computes various margin metrics, from gross margin to net margin, showing how effectively a business converts revenue into bottom-line profit.

Understanding margins is essential for business owners evaluating performance, investors assessing companies, and anyone wanting to understand how businesses actually make money. High revenue means little if expenses consume most of it; modest revenue with strong margins can produce excellent returns.

The calculator breaks down profitability at each level, revealing where efficiency exists and where improvement is needed.

Types of Profit Margin

Gross profit margin measures profitability after direct costs of producing goods or services, before operating expenses:

Gross Margin = (Revenue - Cost of Goods Sold) / Revenue × 100

A company with $1 million revenue and $600,000 in direct costs has 40% gross margin. For every dollar of sales, $0.40 remains after paying for what was sold.

Operating profit margin (EBIT margin) subtracts operating expenses (salaries, rent, marketing, etc.) from gross profit:

Operating Margin = Operating Income / Revenue × 100

This shows profitability from core business operations before interest and taxes.

Net profit margin is the bottom line—what remains after all expenses, interest, and taxes:

Net Margin = Net Income / Revenue × 100

The calculator computes all three margins from your financial data.

Industry Benchmarking

Profit margins vary dramatically across industries. What's excellent in one sector is barely viable in another:

IndustryTypical Net Margin
Software/SaaS15-25%
Financial services15-25%
Healthcare5-15%
Retail (grocery)1-3%
Retail (general)3-5%
Manufacturing5-10%
Restaurants3-9%
Airlines2-5%

A 5% net margin is excellent for a grocery store but concerning for a software company. The calculator provides context by comparing your margins to industry benchmarks.

Margin Improvement Levers

Improving margins requires either increasing revenue without proportionally increasing costs, or decreasing costs without proportionally decreasing revenue:

Pricing power: Raising prices directly improves gross margin if volume remains stable. Premium positioning enables higher prices.

Cost reduction: Negotiating better supplier terms, improving operational efficiency, or automating processes reduces costs.

Product mix: Shifting sales toward higher-margin products improves overall margin even without changing individual product economics.

Scale benefits: Fixed costs spread across more revenue improve margins as volume grows.

Waste elimination: Reducing defects, returns, and inefficiencies preserves margin that would otherwise be lost.

The calculator can model how changes in revenue or costs affect margins, helping prioritize improvement efforts.

Contribution Margin

For businesses with variable and fixed costs, contribution margin shows how much each sale contributes toward covering fixed costs and generating profit:

Contribution Margin = (Revenue - Variable Costs) / Revenue × 100

If a product sells for $100 with $60 in variable costs, contribution margin is 40%. Each sale contributes $40 toward fixed costs and profit.

Contribution margin is crucial for pricing decisions, break-even analysis, and understanding how volume changes affect profitability.

Margin Compression Warning Signs

Declining margins often signal problems requiring attention:

Gross margin decline: Rising input costs, pricing pressure from competition, or product mix shift toward lower-margin items.

Operating margin decline: Growing overhead, inefficient operations, or revenue growth not keeping pace with infrastructure investment.

Net margin decline: Increased interest burden (debt), higher tax rates, or one-time charges affecting bottom line.

The calculator tracks margin trends over time, highlighting concerning patterns before they become crises.

Cash Margin vs. Accounting Margin

Reported margins follow accounting rules that may not reflect cash reality. Depreciation is a real cost eventually but not a current cash expense. Inventory builds use cash without appearing in cost of goods sold until sold.

Cash margin considers actual cash flows rather than accounting allocations. For businesses managing cash carefully, understanding both perspectives matters.

Margin and Pricing Decisions

Target margins inform pricing. If your target net margin is 10% and operating expenses are 30% of revenue, gross margin must exceed 40% to achieve the target.

Working backward: if production costs $60 and you need 40% gross margin, minimum price is $100 ($60 ÷ 0.60).

The calculator can solve for required pricing given target margins and cost structures.

Unit Economics

For product businesses, margin analysis at the unit level reveals which products contribute to profitability:

Unit Gross Margin = Unit Price - Unit Variable Cost

Products with negative or minimal contribution margin may be candidates for discontinuation or repricing—unless they drive sales of higher-margin items.

The calculator can analyze margins at both business and product levels.

Service Business Considerations

Service businesses have different margin dynamics than product businesses. Gross margin is often very high (labor costs may not be classified as cost of goods sold), but operating margins can be squeezed by labor-intensive delivery.

For service businesses, tracking margin per project, per client, or per service type provides actionable insights that aggregate margins miss.

Using the Calculator

Enter revenue, cost of goods sold, operating expenses, interest, and taxes. The calculator computes gross margin, operating margin, and net margin.

For product-level analysis, enter revenue and costs for individual products to identify margin leaders and laggards.

Model scenarios: What if costs rise 10%? What if you raise prices 5%? How does adding a new product line affect overall margins?

Compare periods to track margin trends. Improving or declining? The direction matters as much as the absolute level.

Use industry benchmarks to contextualize your margins. Are you performing well for your sector, or is there significant room for improvement?


Profit margin measures business efficiency—how much of what you earn you actually keep. The calculator reveals this critical metric across different profitability levels, showing where your business excels and where it struggles. Monitor margins consistently, understand what drives them, and take action before compression becomes crisis.