How to calculate profit margin (and what three numbers actually matter)
Profit margin is the percentage of revenue you keep as profit after costs. Three margins matter for any small business, and looking at one without the other two is how owners end up surprised at tax time.
Gross margin is revenue minus cost of goods sold (COGS) divided by revenue. Operating margin subtracts operating expenses like rent, salaries, software, and marketing. Net margin is what is left after interest and taxes. Each tells a different story. Gross tells you the product works. Operating tells you the business model works. Net tells you the business works for the owner.
The calculator above walks through all three. Enter revenue, COGS, operating expenses, and your effective tax rate. It shows the dollar amounts and the percentages, and the waterfall chart visualizes how revenue is whittled down at each step. Plug in last quarter's real numbers and you will immediately see which cost layer is eating the most margin — and which one to attack first.
Gross margin vs net margin — the difference that matters
Gross margin tells you whether your product economics work. Sell a coffee for $5 with $1.50 in beans, cup, and lid — gross margin is 70%. That is strong. Sell the same coffee at 20% gross margin and you cannot scale: every new sale earns almost nothing to cover rent, wages, marketing, or profit. Most scaling failures are gross-margin failures disguised as "we need more volume" conversations.
Net margin tells you whether the whole business works. A coffee shop with 70% gross margin can still lose money if rent, payroll, utilities, and debt service exceed gross profit. Net margin is the final report card. Healthy small businesses typically run net margin of 5–15%. Software and professional services can hit 20–30%+. Grocery and restaurants often run at 2–6%, which is why volume is their whole game.
Industry benchmarks for profit margin (so you can sanity-check your number)
Margin benchmarks vary wildly by industry, so comparing a landscaping company to a SaaS startup is useless. Here are rough ranges pulled from public filings, NYU Stern industry data, and Bench/QuickBooks aggregates.
- SaaS and software: 70–85% gross, 10–25% net at scale. Below 70% gross often means the business is secretly a services company.
- Professional services / agencies: 40–60% gross, 10–20% net. Utilization and billable rate drive everything.
- Ecommerce (physical products): 30–50% gross, 5–15% net. Shipping, returns, and paid-ad CAC are the usual culprits.
- Restaurants: 60–70% gross on food, 3–9% net. Labor and rent are the two fixed costs that make or break it.
- Construction and trades: 20–30% gross, 4–10% net. Project-level tracking separates the 4%ers from the 10%ers.
- Retail: 25–45% gross, 2–6% net. Inventory turns matter more than margin percentage at this level.
- Manufacturing: 25–40% gross, 5–10% net. Fixed-asset utilization is the unspoken metric.
If your margin is more than 5 points below the median for your industry, you have a pricing problem or a cost-discipline problem. If it is well above, check you're not underinvesting in growth — 2–3 points of margin intentionally given back to customer acquisition often pays back 20–30× inside 24 months.
Five levers that actually move profit margin (ranked by leverage)
Margin improvement compounds. A two-point lift on 15% net margin is a 13% boost to net income. These are the levers, ordered roughly by how much margin they produce per hour of owner time.
- Raise prices by 5%. Most small businesses underprice by 10–30%. A 5% price increase typically flows almost entirely to the bottom line because variable costs stay fixed. For a business at $500K revenue and 10% net margin, 5% pricing = $25K gross profit increase = 50% boost to net income.
- Cut or renegotiate your five largest opex line items. Go through the P&L and identify the top five non-payroll expenses. For each, call and ask for 10% off or a longer term. Software vendors, insurance, rent, and suppliers all routinely give up 5–15% to save a cancel.
- Mix-shift to higher-margin products. Feature the 70%-margin items instead of the 30%-margin loss leaders. A bakery that pushes the $5 cookie (80% margin) instead of the $3 loaf (35% margin) lifts blended margin 8–12 points without any operational change.
- Fire the bottom 10% of customers. The 20% of customers generating the most support burden often produce the lowest margin. Cut them loose (politely, with a referral) and redeploy the saved time on high-margin work. Agencies especially should do this once a year.
- Reduce COGS by 3% through supplier renegotiation or volume commits. Three points on a 40% gross margin product is a 5% lift to gross profit. Not glamorous, but it compounds every single sale forever.
Common profit-margin calculation mistakes
Accounting shortcuts make margin look better or worse than reality. Watch for these traps, in order of how often they bite small businesses:
- Ignoring owner compensation. If you do not pay yourself a market salary, your net margin is inflated. An investor or buyer will add a "reasonable owner comp" deduction of $80–150K and your margin drops instantly.
- Lumping COGS and opex. This hides whether the problem is pricing or overhead. Separating them takes 20 minutes and tells you which lever to pull.
- Using cash accounting. Margin should be calculated on accrual basis so deferred revenue and unpaid bills do not distort it. Cash accounting shows a good month when a big invoice pays and a bad month right after — neither reflects true margin.
- Forgetting payment processor fees. A 2.9% Stripe fee eats 3 points of margin on every card transaction. Put it in COGS, not "bank fees" buried in opex.
- Excluding shipping and returns. For ecommerce, fulfillment and returns are real COGS. Industry average return rate is 8–12% for apparel, 15–20% for luxury — and returns destroy margin because the product often can't be resold at full price.
- Counting deposits as revenue. If you take 50% deposits on project work, that deposit is a liability until delivered. Recording it as revenue inflates current-period margin and starves next-period margin.
Gross margin formula and a worked example
The gross margin formula: (Revenue − COGS) / Revenue × 100. On $200,000 revenue with $80,000 COGS, gross profit is $120,000 and gross margin is 60%. The calculator layers operating expenses and tax on top so you can see how 60% becomes the net margin you actually take home.
Say that same business has $70,000 operating expenses and a 20% effective tax rate. Operating profit is $50,000 (25% operating margin). Taxes are $10,000. Net profit is $40,000 (20% net margin). That is a healthy small business. If operating expenses creep to $110,000, you are losing money — and the margin calculator will flash that instantly so you can react before it eats another month of cash.
When to recalculate your margins (and how to read the trend)
Run the profit margin calculation monthly at minimum, on accrual basis, on the first or second of the following month. Most small business owners look at revenue every week but margin only at tax time — which is too late. If costs drift up 3% month over month without price adjustments, in a year you have lost a third of your net margin and not noticed.
Track three numbers every month: gross margin %, net margin %, and absolute net profit dollars. The trend matters more than any single month. Three months of declining gross margin is a pricing problem. Three months of declining net margin with stable gross is an opex problem. Three months of rising revenue and falling net profit dollars is growth-at-all-costs mode — stop and fix unit economics before adding another dollar of spend.
Pair this with the break-even calculator to know how many units you need to sell each month, the pricing strategy planner when you are ready to lift prices, and the cash flow projector to make sure healthy margins translate to healthy cash.