Profit Margin Calculator
Calculate gross, operating, and net profit margins from revenue and costs. Solve for revenue or COGS at a target margin.
How It Works
- 1
Choose the solve mode
Select whether to calculate all three margins from known figures, solve for the revenue needed to hit a target gross margin, or find the maximum COGS allowed at a target gross margin.
- 2
Enter your values
Input revenue and cost of goods sold (COGS) at minimum. For operating and net margins, add operating expenses and other costs. When solving for revenue or COGS, enter the target gross margin percentage instead.
- 3
Read all three margins
Results display gross profit and gross margin, operating profit and operating margin, and net profit and net margin. Compare your figures against industry benchmarks to assess performance.
Understanding Profit Margins: Gross, Operating, and Net
Profit margin measures how much of every revenue dollar a business retains after covering costs. Three layers tell the full story. Gross margin subtracts only the cost of goods sold (COGS) from revenue, showing production efficiency. Operating margin further deducts operating expenses such as rent, salaries, and utilities, revealing how well the core business runs before financing and taxes. Net margin accounts for everything, including interest, taxes, and one-time charges, and represents the final bottom line. The key formula is (Revenue - Cost) / Revenue x 100. That denominator is revenue, not cost. Using cost as the denominator produces markup, a related but distinct metric. A 40% gross margin means 60 cents of every dollar goes to COGS and 40 cents remains as gross profit. Industry benchmarks vary dramatically. The S&P 500 average net margin was approximately 11-12% as of 2023, according to the NYU Stern Damodaran dataset. Software companies routinely exceed 20% net margins thanks to near-zero marginal cost per user. Grocery retailers, by contrast, typically operate on 1-3% net margins, relying on high volume to generate absolute profit. Under GAAP, the income statement flows from revenue through gross profit, operating income, and finally net income. This calculator lets you compute all three margin layers simultaneously, or solve backward for the revenue or COGS needed to hit a target gross margin.
Common pitfalls
Margin and markup are not interchangeable. Margin divides profit by revenue; markup divides profit by cost. A 50% markup yields a 33.3% margin, and a 50% margin requires a 100% markup. Confusing the two leads to pricing errors.
Gross margin alone does not indicate profitability. A 60% gross margin means nothing if operating expenses consume 55% of revenue. Always check operating and net margins before drawing conclusions about business health.
Revenue recognition timing affects margin calculations. Under accrual accounting (GAAP/IFRS), revenue is recognized when earned, not when cash arrives. A company can show healthy margins on paper while running negative cash flow.
Negative margins are not always a red flag. Growth-stage companies, especially in SaaS and biotech, deliberately run negative net margins to invest in customer acquisition and R&D. The question is whether unit economics (gross margin) are positive and improving.
Frequently Asked Questions
What is the difference between gross margin and net margin?
Gross margin subtracts only the cost of goods sold (COGS) from revenue, measuring production efficiency. Net margin subtracts all costs including operating expenses, interest, taxes, and one-time charges. A company can have a healthy 60% gross margin but only a 5% net margin after accounting for all overhead.
What is a good profit margin?
It depends heavily on the industry. The S&P 500 average net margin is approximately 11-12%. Software companies often exceed 20% because marginal costs per user are near zero. Grocery retailers typically operate on 1-3% net margins, relying on high volume. Compare against your specific industry, not a universal benchmark.
How is margin different from markup?
Margin uses revenue as the denominator: (Revenue - Cost) / Revenue. Markup uses cost: (Revenue - Cost) / Cost. A 50% markup on a $100 cost item means a $150 selling price and a 33.3% margin. A 50% margin means a 100% markup. They measure the same profit from different reference points.
What are operating expenses?
Operating expenses (opex) are costs required to run the business that are not directly tied to producing goods: rent, salaries, utilities, insurance, marketing, office supplies, and depreciation. They sit between gross profit and operating profit on the income statement.
Can profit margins be negative?
Yes. Growth-stage companies, especially in SaaS and biotech, deliberately operate with negative net margins to invest in customer acquisition and R&D. Negative gross margins are more concerning because they mean the company loses money on each unit sold before any overhead is considered.
How do I calculate the revenue needed for a target margin?
Use the formula: Required Revenue = COGS / (1 - Target Gross Margin / 100). For example, if COGS is $600,000 and you want a 40% gross margin, you need $600,000 / (1 - 0.40) = $1,000,000 in revenue. This calculator's 'Required Revenue' mode does this automatically.
Related Tools
Markup Calculator
Calculate markup percentage, selling price, or cost. Includes margin-to-markup converter and shows gross margin, profit, and price multiplier.
Break-Even Calculator
Calculate the break-even point in units, fixed costs, selling price, or variable cost per unit. Shows contribution margin and break-even revenue.
Discount Calculator
Calculate discount amounts and final prices with percentage or dollar-off discounts.