Profit Margin Calculator
Calculate gross, net, or operating profit margin instantly. Enter your revenue and costs to get your margin percentage with full step-by-step working.
What Is Profit Margin?
Profit margin is the percentage of revenue that remains as profit after deducting costs. It is one of the most important metrics in business finance — showing how efficiently a company converts sales into actual profit. A higher profit margin means more of each dollar earned is kept as profit.
There are three types of profit margin, each revealing a different layer of business performance. Understanding when to use a gross profit margin calculator versus a net or operating one depends on what you are trying to measure.
Gross Profit Margin
÷ Revenue × 100
Measures production efficiency. Excludes operating costs, taxes, and interest.
Net Profit Margin
÷ Revenue × 100
The "bottom line" — profit after every expense, including tax and interest.
Operating Profit Margin
÷ Revenue × 100
Core operational efficiency, before financing and tax decisions.
How to Calculate Profit Margin
All three profit margin formulas share the same structure: divide a profit figure by revenue and multiply by 100. The difference is which profit figure you use. Here is how to calculate each type step by step.
How to Calculate Gross Profit Margin
Step 1: Subtract cost of goods sold (COGS) from revenue to get gross profit.
Step 2: Divide gross profit by revenue.
Step 3: Multiply by 100 to get the percentage.
Example: Revenue $200,000, COGS $120,000 → Gross profit = $80,000 → Gross margin = 80,000 ÷ 200,000 × 100 = 40%
How to Calculate Net Profit Margin
Net profit is what remains after deducting all expenses — COGS, operating costs, salaries, rent, interest, and taxes. This is the true "bottom line" figure from your income statement.
Example: Revenue $200,000, Net profit $18,000 → Net margin = 18,000 ÷ 200,000 × 100 = 9%
How to Calculate Operating Profit Margin
Operating profit (also called EBIT) excludes interest and tax. It shows how efficient the core business is, independent of how it is financed.
How to calculate profit margin in Excel: For gross margin use =(B1-C1)/B1 where B1 is revenue and C1 is COGS. For net margin use =D1/B1 where D1 is net profit. Format the cell as a percentage. To calculate profit margin percentage in Excel as a plain number, add *100 to either formula. Both work identically in Google Sheets.
Profit Margin Examples
Click any example to load it into the calculator and see the full step-by-step working.
Real-World Profit Margin Scenarios
Restaurant: A restaurant earns $420,000 in annual revenue. Food and beverage costs (COGS) total $168,000. Gross profit margin = (420,000 − 168,000) / 420,000 × 100 = 60%. After rent, wages, utilities, and taxes totalling $378,000, net profit is $42,000. Net profit margin = 42,000 / 420,000 × 100 = 10%.
Retail store: A clothing retailer generates $1,200,000 in revenue. Products cost $720,000 to source (COGS), giving a gross margin of 40%. Operating expenses of $360,000 leave an operating profit of $120,000 — a 10% operating margin. This is typical of a well-run retail business. If your margins are declining, the percentage decrease calculator can quantify the drop.
SaaS product: A software company earns $800,000 in revenue with very low COGS of $80,000 (hosting and support costs), giving an exceptional gross margin of 90%. After sales, marketing, and R&D costs, net profit is $160,000 — a 20% net margin. High gross margins are characteristic of software businesses.
When Do You Need a Profit Margin Calculator?
Understanding how to calculate profit margin is essential in virtually every business context. Here are the most common use cases.
Pricing Products
Work backwards from your target profit margin to set the right selling price. If your costs are $60 and you want a 40% gross margin, the selling price must be at least $100. The markup percentage calculator is the complement tool for this calculation.
Investor Reporting
Investors and lenders compare gross, net, and operating margins against industry benchmarks to assess profitability and efficiency. Having accurate profit margin calculations is essential for any funding pitch or financial report.
Retail & E-commerce
Track margin per product, per category, and across seasons. A retail profit margin calculator helps identify which products are genuinely profitable after all costs are included — not just those with the highest selling price.
Restaurant & Hospitality
Food cost percentage and overall margin are the two most critical metrics in hospitality. Use this as a restaurant profit margin calculator to monitor whether food and labour costs are eating into revenue as the business scales.
Freelancers & Agencies
Service businesses often overlook true costs. Calculate net margin after accounting for software subscriptions, subcontractors, and unbillable time to understand the real profit margin percentage on each project or client.
Business Performance Tracking
Compare current margins to previous periods to spot trends. If your net margin is shrinking, use the percentage decrease calculator to quantify how much it has fallen and set a target for recovery.
Profit Margin vs. Markup — What Is the Difference?
This is one of the most common sources of confusion in pricing. Both profit margin and markup involve the same numbers — cost and selling price — but they are calculated differently and produce different percentages.
Profit Margin
Profit margin divides profit by the selling price (revenue). A product that costs $60 and sells for $100 has a profit of $40 and a margin of 40/100 × 100 = 40%.
Markup
Markup divides profit by the cost price. The same product: $40 profit ÷ $60 cost × 100 = 66.7% markup. The same product, but a completely different percentage. Using markup when you mean margin — or vice versa — leads to serious pricing errors. Use our markup percentage calculator when you need to work from cost to selling price.
Gross vs. Net Profit Margin
Gross margin only removes the direct cost of producing or sourcing the product (COGS). Net margin removes everything — overheads, salaries, rent, interest, and taxes. A business can have a strong 60% gross margin but a weak 3% net margin if its operating costs are very high. Both figures are needed for a complete picture of financial health.
Frequently Asked Questions
Related Percentage Calculators
Need a different type of percentage calculation? Try one of our other free tools: