Business Resources · Accounting
How to Calculate Profit Margin
Three formulas, real examples and 2026 industry benchmarks.
Here is how to calculate profit margin: subtract your costs from revenue to get profit, divide that profit by revenue, and multiply by 100. The result is the percentage of each sales dollar you keep. Gross, operating and net margin use the same formula with different costs.
Profit margin is one of the fastest ways to see whether a business is healthy. Two shops can each sell $500,000 a year, yet one keeps $60,000 and the other keeps $5,000. Margin shows that gap as a percentage, so you can compare months, products and competitors of any size.
The Profit Margin Formula
The same formula works for gross, operating and net margin. Only the costs you subtract change.
What Is Profit Margin?
Profit margin is the share of revenue left as profit after costs, shown as a percentage. A 20% margin means you keep 20 cents of every sales dollar. The U.S. Securities and Exchange Commission describes it as showing, for each dollar of sales, what percentage was profit. Higher is better, but norms vary by industry.
Margin is read from the income statement, also called the profit and loss statement. The SEC beginners guide to financial statements walks through each line: revenue at the top, then cost of sales, gross profit, operating expenses, operating income and net income at the bottom.
The Three Profit Margins
| Margin | Formula | What it tells you |
|---|---|---|
| Gross margin | (Revenue – cost of goods sold) / revenue x 100 | How well you price and buy what you sell |
| Operating margin | Operating income / revenue x 100 | How efficiently you run the business day to day |
| Net margin | Net income / revenue x 100 | What you keep after every cost, interest and tax |
Source: SEC Beginners Guide to Financial Statements; IRS Publication 334 (2025).
How Do You Calculate Profit Margin Step by Step?
To calculate profit margin, find total revenue for a period, subtract the costs for the margin you want, divide the profit by revenue and multiply by 100. Use the same period for every number, such as one month or one year, and take the figures from your income statement.
How to Calculate Profit Margin in Five Steps
- Pick a periodUse one month, one quarter or one year, and keep every number in that period.
- Find revenueTotal sales, minus returns and allowances.
- Subtract the right costsCost of goods sold for gross margin; add operating expenses for operating margin; add interest and taxes for net margin.
- Divide by revenueProfit divided by revenue gives a decimal, such as 0.175.
- Multiply by 1000.175 becomes a 17.5% profit margin.
How Do You Calculate Gross Profit Margin?
Gross profit margin equals revenue minus cost of goods sold, divided by revenue, times 100. Cost of goods sold is what you paid to make or buy the products you sold, such as materials, direct labor and freight in. Rent, office pay and marketing are not part of it.
The IRS uses the same building blocks on Schedule C. IRS Publication 334 shows cost of goods sold figured from beginning inventory, purchases, cost of labor, materials and supplies, other costs and ending inventory. Gross profit is what remains after subtracting it from gross receipts.
Illustrative Example: One Month at a Small Bakery
Illustrative example with round numbers, not industry data.
How Do You Calculate Net Profit Margin?
Net profit margin equals net income divided by revenue, times 100. Net income is what is left after cost of goods sold, operating expenses, interest and taxes. In the bakery example, $3,500 of net income on $20,000 of sales is a 17.5% net margin. It is the bottom line of the income statement.
Where Each Sales Dollar Goes (Bakery Example)
- 40%Cost of goods sold
- 35%Operating expenses
- 7.5%Interest and taxes
- 17.5%Net profit
Illustrative example: shares of $20,000 in monthly revenue.
Operating margin sits in the middle. It takes gross profit, subtracts operating expenses such as rent and payroll, and divides by revenue. For the bakery that is $5,000 divided by $20,000, or 25%. Lenders often watch it because it shows earnings before financing choices and taxes.
For a deeper look at how the top and bottom numbers differ, read our guide to gross margin vs net margin.

How Do You Calculate Profit Margin for a Product?
For one product, subtract the unit cost from the selling price, divide by the selling price and multiply by 100. A candle that sells for $40 and costs $26 to make earns $14, so its margin is $14 divided by $40, or 35%. Include every direct cost: materials, packaging, shipping in and card fees.
Illustrative Example: One Product
Illustrative example. Use your own landed cost per unit.
To set a price that hits a target margin, divide the unit cost by one minus the target margin. A $26 cost with a 40% target gives $26 divided by 0.60, or $43.33. Our guide on how to price your products covers the other pricing methods.
What Is the Difference Between Margin and Markup?
Margin divides profit by the selling price, while markup divides profit by cost. The same $14 profit on a $40 candle is a 35% margin but a 54% markup, because $14 divided by the $26 cost is 0.54. Mixing them up is the most common pricing error, and it always makes margins look bigger than they are.
Markup and the Margin It Produces
| Markup on cost | Price on a $100 cost | Profit margin |
|---|---|---|
| 25% | $125 | 20.0% |
| 50% | $150 | 33.3% |
| 75% | $175 | 42.9% |
| 100% | $200 | 50.0% |
| 200% | $300 | 66.7% |
Source: calculated with margin = markup / (1 + markup). Illustrative example.

What Is a Good Profit Margin?
A good profit margin depends on your industry. Across 5,994 U.S. public companies in January 2026 data from NYU Stern professor Aswath Damodaran, the average net margin was 9.74% and the average gross margin was 37.76%. Grocery stores averaged 1.32% net, while software firms averaged 25.49%.
Net Profit Margin by Industry, U.S. Public Companies (%)
Source: Aswath Damodaran, NYU Stern, margins by industry for U.S. public companies, January 2026.
These are large public companies, so treat them as a direction, not a target. The Damodaran margin dataset also shows that gross margins vary even more: about 72% in software and about 21% in trucking. A business with low gross margins needs high volume and tight overhead to keep anything at the bottom line.
Gross, Operating and Net Margin by Industry (January 2026)
| Industry | Gross margin | Operating margin | Net margin |
|---|---|---|---|
| Software (system and application) | 71.72% | 32.98% | 25.49% |
| Apparel | 56.88% | 9.11% | 3.85% |
| Retail (general) | 33.18% | 6.80% | 5.61% |
| Restaurants and dining | 32.24% | 15.79% | 9.37% |
| Retail (grocery and food) | 26.31% | 2.29% | 1.32% |
| Homebuilding | 22.70% | 12.57% | 9.47% |
| Trucking | 21.19% | 6.89% | 3.79% |
| All U.S. public companies | 37.76% | 12.82% | 9.74% |
Source: Aswath Damodaran, NYU Stern, margins by industry for U.S. public companies, January 2026. Operating margin is pre-tax, unadjusted.
Where the Bakery Example Lands
Illustrative example. Bands are a rough guide built on the 9.74% public company average (Damodaran, January 2026).
How Can a Small Business Improve Its Profit Margin?
You improve profit margin by raising prices, lowering the cost of goods sold, cutting overhead or selling more of your highest-margin items. Start with the product or service mix, because shifting sales toward better margin items raises the average without touching fixed costs.
- Review prices once a year. Small, regular increases often cost fewer customers than one big jump.
- Renegotiate supplier terms. Volume discounts and early payment discounts lower cost of goods sold.
- Cut waste and shrinkage. Spoiled stock and theft go straight to cost; see our inventory management guide.
- Know your floor. A break-even analysis shows the sales you need before any margin appears.
- Track it monthly. Add margin to your list of small business KPIs.

Margins are only as good as the numbers behind them. The SBA guide to managing your finances recommends watching money in and money out closely, and the SBA startup cost guide separates fixed costs such as rent and insurance from costs that move with sales. Our bookkeeping basics guide shows how to set that up.
Grants and free programs can fund the changes that raise them. Search the Business Grant Finder and learn the full funding process in the Small Business Funding workshop.
Common Mistakes
- Dividing by cost instead of revenue. That gives markup, not margin.
- Leaving out owner pay. If you do the work, a fair wage belongs in costs, or the margin looks too high.
- Mixing periods. Annual revenue with monthly costs produces a meaningless number.
- Putting rent in cost of goods sold. Overhead belongs in operating expenses.
- Comparing to the wrong industry. A grocery margin and a software margin are not the same game.
Key Terms
- Revenue: total sales for the period, after returns and allowances.
- Cost of goods sold: the direct cost of the products or services you sold.
- Gross profit: revenue minus cost of goods sold.
- Operating income: gross profit minus operating expenses such as rent and payroll.
- Net income: profit after every expense, interest and tax.
The bottom line: knowing how to calculate profit margin takes one formula: profit divided by revenue, times 100. Run it for gross, operating and net profit every month, compare the results with your past months and your industry, and act on the margin that slips first.
Free help in the Sacramento region
You do not have to work through these decisions alone. SCORE Sacramento pairs owners with volunteer mentors, many of them retired executives, bankers and accountants, at no cost. The Sacramento Valley Small Business Development Center offers free one-on-one advising on financing, budgeting and financial statements. The SBA’s Sacramento District Office can explain loan programs and connect you with lenders, and community lenders such as California Capital and Opening Doors serve owners who need smaller loans or extra support. Browse our Business Resources and the free business help guide for more.
Key takeaways
- Profit margin equals profit divided by revenue, times 100.
- Gross margin subtracts only cost of goods sold; net margin subtracts every cost, interest and tax.
- Margin divides by price, markup divides by cost, so a 50% markup is only a 33.3% margin.
- U.S. public companies averaged a 9.74% net margin in January 2026 data, with wide gaps by industry.
- Raise margins through pricing, supplier costs, waste control and a better product mix.
Frequently asked questions
How do I calculate profit margin in Excel?
Put revenue in cell B2 and total costs in cell C2, then enter =(B2-C2)/B2 in another cell and format it as a percentage. Copy the formula down to run it for every month or product.
Can profit margin be negative?
Yes. If costs are higher than revenue, profit is a loss and the margin is negative. A minus 5% margin means the business lost 5 cents on every sales dollar.
Is profit margin calculated before or after taxes?
Net profit margin is usually after taxes. Operating margin is before interest and taxes, and gross margin is before all operating costs.
Is the profit margin ratio the same as the profit margin percentage?
Yes. The ratio is the decimal, such as 0.175, and the percentage is that ratio times 100, or 17.5%.
Where do I find the numbers to calculate profit margin?
Use your income statement. Revenue is at the top, cost of goods sold and expenses are in the middle, and net income is at the bottom.
Sources
- U.S. Securities and Exchange Commission: Beginners’ Guide to Financial Statements
- Aswath Damodaran, NYU Stern School of Business: Margins by Sector (U.S.), January 2026
- IRS: Publication 334, Tax Guide for Small Business (2025)
- U.S. Small Business Administration: Calculate your startup costs
- U.S. Small Business Administration: Manage your finances


















