A tablet checkout screen on a wooden cafe counter next to small potted plants and a tip jar

Business Resources · Accounting

How to Calculate Profit Margin

Three formulas, real examples and 2026 industry benchmarks.

37.76%avg. gross margin, U.S. public firms
9.74%avg. net margin, U.S. public firms
5,994companies in the January 2026 data

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

Revenue minus costsProfit
÷
Total salesRevenue
× 100 =
Percent keptProfit margin

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

  1. Pick a periodUse one month, one quarter or one year, and keep every number in that period.
  2. Find revenueTotal sales, minus returns and allowances.
  3. Subtract the right costsCost of goods sold for gross margin; add operating expenses for operating margin; add interest and taxes for net margin.
  4. Divide by revenueProfit divided by revenue gives a decimal, such as 0.175.
  5. 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

RevenueSales after returns
$20,000
Cost of goods soldFlour, butter, packaging, baker wages
-$8,000
Gross profit60% gross margin
$12,000
Operating expensesRent, utilities, counter staff, marketing
-$7,000
Operating income25% operating margin
$5,000
Interest and taxesLoan interest, income tax
-$1,500
Net income17.5% net margin
$3,500

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)

17.5%net profit margin
  • 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.

A hair stylist rings up a customer at a salon front desk lined with hair care products
Service businesses count labor and supplies in their cost of sales. Photo: SumUp on Unsplash

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

$40Price
–
$26Unit cost
=
$14Profit
÷ $40 =
35%Margin

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.

A small shop interior with products on glass shelves and a checkout stand by the window
Each product on the shelf has its own margin. Photo: SumUp on Unsplash

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 (%)

Software (system and application)309 firms
25.49%
Homebuilding30 firms
9.47%
Restaurants and dining64 firms
9.37%
Retail (general)23 firms
5.61%
Apparel35 firms
3.85%
Trucking26 firms
3.79%
Retail (grocery and food)15 firms
1.32%

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

Net profit marginPercent of revenue
Bakery: 17.5%
030
Under 5%: thin5% to 10%: near the public company averageOver 10%: above average

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.
A small shop with an open sign on the window and a checkout stand near the door
Track margins monthly, not only at tax time. Photo: SumUp on Unsplash
Keep Clean Books First

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.

Margins Too Thin to Grow?

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