Business Technology
Profit Margin Calculator
A profit margin calculator shows how much of each sale you keep as profit. This tool finds gross margin from revenue and cost, operating and net margin from a simple income statement, and the selling price that hits a target margin. Margin is profit divided by revenue, so it always stays below 100%.
Reviewed November 2026
Calculator
Results
Start typing and results appear here instantly, with the formula behind each one. Or load the example.
Calculations run in your browser. Nothing you enter is sent to Stack Row.
How to Use the Profit Margin Calculator
Choose the tab that matches your question, enter figures, and select Calculate.
- Gross Margin uses revenue and cost of goods sold.
- Net Margin adds operating expenses, interest and taxes to show operating and net margin.
- Price From Margin finds the price that keeps a chosen share of each sale as gross profit.
Load example fills in a small company's year with $250,000 in revenue.
Profit Margin Formulas
| Result | Formula |
|---|---|
| Gross profit | Revenue − cost of goods sold |
| Gross margin | Gross profit ÷ revenue × 100 |
| Operating margin | (Gross profit − operating expenses) ÷ revenue × 100 |
| Net margin | (Operating profit − interest − taxes) ÷ revenue × 100 |
| Price for a target margin | Cost ÷ (1 − margin ÷ 100) |
These match the standard definitions in Corporate Finance Institute's profit margin guide. Gross margin covers production costs only, while net margin covers every cost.
Worked Example
A company earns $250,000 in revenue. Cost of goods sold is $100,000, so gross profit is $150,000 and gross margin is 60%.
Operating expenses are $90,000, leaving $60,000 of operating profit, a 24% operating margin. After $5,000 of interest and $11,000 of taxes, net profit is $44,000. Net margin is $44,000 ÷ $250,000 = 17.6%.
Margin Versus Markup
Margin divides profit by price. Markup divides the same profit by cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.67% markup. Mixing them up leads to underpricing. Use the markup calculator when you price from cost.
What Is a Good Profit Margin?
It depends on the industry. Software companies often keep high gross margins because extra copies cost little to deliver, which our SaaS statistics explore. Retail and distribution run on thin margins and high volume. NYU Stern's margins by sector dataset is a useful benchmark across US industries.
Methodology and Limitations
- Gross margin uses cost of goods sold only. Operating and net margin subtract the extra costs you enter.
- Taxes and interest are optional and can be left blank.
- Negative results are allowed and flagged as a loss.
- Currency selection changes the displayed symbol only and does not convert values.
- Inputs stay in your browser. A calculation is saved locally after you select Calculate.
Frequently Asked Questions
How Do You Calculate Profit Margin?
Subtract costs from revenue to get profit, then divide profit by revenue and multiply by 100. Revenue of $100 with $60 of cost gives a 40% gross margin.
What Is the Difference Between Gross and Net Margin?
Gross margin subtracts only the direct cost of the goods sold. Net margin subtracts every cost, including operating expenses, interest and taxes, so it is always lower or equal.
Can Profit Margin Be Over 100%?
No. Margin divides profit by revenue, and profit cannot exceed revenue when costs are zero or positive. Markup can exceed 100%, which is one reason the two get confused.
What Price Do I Need for a 40% Margin?
Divide your cost by 0.6. A product that costs $60 needs a price of $100 to keep 40% of each sale as gross profit.
