Profit Margin Calculator
Gauge a company’s production efficiency by computing how much of every revenue dollar survives after the direct costs of producing what was sold.
Enter revenue and cost of goods sold, or pick a stock to auto-fill from the latest filings. The result is shown as both gross profit in dollars and the gross margin percentage.
Need the bigger picture? Read Gross, operating & net profit margin explained.
Profit Margin Calculator: How to Measure Profitability
Updated April 2026
Key Points
- Gross profit margin shows how much of every revenue dollar a company keeps after paying direct production costs.
- Calculate it as (Revenue − COGS) / Revenue, expressed as a percent.
- Higher margin signals pricing power; falling margin warns of input-cost or competitive pressure.
What is gross profit margin?
Gross profit margin is the percentage of revenue that survives after subtracting the direct costs of producing or purchasing the goods sold. It is the cleanest single measure of how well a company turns a sale into profit before any operating, financing, or tax expenses come into play.
Formula for profit margin
Gross Profit Margin = (Revenue − Cost of Goods Sold) / Revenue. Multiply by 100 to express as a percentage. The numerator is also reported as “gross profit” on most income statements — both inputs sit at the very top of the statement, before operating expenses.
How to calculate gross margin
You only need two numbers from the income statement: revenue (sometimes called net sales) and cost of revenue (or cost of goods sold). Plug them into the formula and the calculator returns gross profit in dollars and the margin as a percent.
- Revenue — total sales for the period, net of returns and allowances.
- COGS — direct costs to produce the goods sold (raw materials, direct labor, manufacturing overhead, freight-in).
Worked example
A company posts $100 of revenue and $75 of cost of goods sold. Gross profit is $25 and the gross margin is $25 / $100 = 25%. That is a textbook ratio for a healthy mid-margin business — software firms run higher, retailers run lower.
Gross vs operating vs net margin
Gross margin uses only COGS. Operating margin further subtracts SG&A, R&D, and other operating expenses. Net margin subtracts everything — interest, tax, and one-off items. Each layer answers a different question: gross margin = unit economics; operating margin = run-the-business profitability; net margin = bottom-line profitability after all costs.
How to use profit margin in investing
Track the trend more than the level. A company whose gross margin has expanded for eight consecutive quarters is doing something right — pricing power, scale economies, or favorable mix shift. A company whose gross margin is shrinking under stable revenue is losing pricing power, dealing with input-cost inflation, or losing market share to a cheaper competitor.
Limitations of gross margin
Gross margin says nothing about overhead, marketing intensity, R&D burden, or capital structure. A 70% gross margin on a SaaS product is great, but if the company spends 80% of revenue on sales and marketing, it still loses money. Always pair gross margin with operating margin and free cash flow.
Margin is a window into pricing power
Gross profit margin distills hundreds of operating decisions — pricing, sourcing, product mix, manufacturing efficiency — into a single percentage. It is the fastest screen for whether a business has structural pricing power or commodity-like economics.
Related calculators
Frequently asked questions
What is the gross profit margin formula?
- Gross Profit Margin = (Revenue − Cost of Goods Sold) / Revenue. Multiply by 100 to express as a percent. The result tells you how much of every revenue dollar remains after paying the direct costs of producing what was sold.
What is a good gross profit margin?
- It depends heavily on the industry. Software companies routinely post gross margins above 70%. Grocery retailers operate on margins under 5%. Compare a company against its own history and against industry peers, not against an absolute number.
What is the difference between gross, operating, and net margin?
- Gross margin uses only the cost of goods sold. Operating margin also subtracts SG&A, R&D, and other operating expenses. Net margin subtracts everything — operating costs, interest, taxes, and one-off items. This calculator focuses on gross margin; it is the cleanest signal of pricing power and unit economics.
Why does gross margin matter to investors?
- Gross margin reveals the strength of a company’s pricing power and production efficiency. Rising gross margin can mean better economies of scale, premium pricing, or supply-chain wins. Falling gross margin often warns of input-cost inflation or competitive pressure.
What is included in cost of goods sold (COGS)?
- COGS includes the direct costs to produce or purchase the goods sold during the period: raw materials, direct labor, freight-in, and manufacturing overhead. It excludes selling, marketing, R&D, general administration, interest, and tax — those move into the operating and net margin lines.
Can gross profit margin be negative?
- Yes. If COGS exceeds revenue, the company is losing money on every unit sold. This is common in early-stage startups or when commodity prices spike. A persistently negative gross margin is a serious red flag.
How can a company improve its gross margin?
- Raising prices, lowering input costs, mixing toward higher-margin products, automating production, and renegotiating supplier contracts all push gross margin higher. Watch for sustained quarter-over-quarter improvement rather than one-off jumps.
How is profit margin different from net profit?
- Net profit is a dollar amount (e.g. $5M). Profit margin is a percentage (e.g. 25%). The percentage normalizes profitability across companies of different sizes — a $5M margin is great for a $20M business but trivial for a $5B one.
Explore more
Investment Growth Calculator
Project future value of investments with regular contributions.
Compound Interest Calculator
See how compound interest grows your savings over time.
Stock Profit Calculator
Calculate profit, loss, ROI and cost basis on stock trades.
Savings Goal Calculator
Find how much to save or when you will reach your goal.
Rule of 72 Calculator
Estimate how long it takes to double your money.
EPS Calculator
Compute earnings per share from net income, preferred dividends, and shares.
P/E Ratio Calculator
Price-to-earnings ratio from share price and EPS.
Stock Average Calculator
Weighted-average cost basis across multiple stock purchases.
Stock Split Calculator
New share count and price after a forward or reverse split.
All calculators
Browse every free calculator: growth, compound interest, EPS, P/E, profit margin, savings, and more.