Back to blog

How to Calculate Profit Margin: Formula & Examples

Learn how to calculate profit margin with gross, operating, and net margin formulas, plus small-business examples and tax planning tips.

Revenue can rise while your business keeps less money. Profit margin shows what remains after costs, so you can of 13 bookkeeping platforms also found a useful surprise: Wave lists both gross and net margin calculations, while some paid tools only mention one. Here’s how to calculate profit margin by hand and use the result.

Step 1: Choose the Profit Margin You Need

Start by naming the business question. The right margin depends on what you want to decide.

If you’re setting a price for one product, begin with gross profit margin. It measures what remains after the direct cost of the item or service. Direct costs may include materials, wholesale inventory, or labor tied to delivery.

Use this formula:

Gross profit margin = (Revenue - COGS) ÷ Revenue × 100

COGS means cost of goods sold. For a product business, it may include the item cost, inbound freight, duties, and packaging. For a service firm, it may include billable contractor time or labor that directly delivers the work.

Gross margin helps with product pricing and supplier talks. It does not show whether the whole company pays its rent, admin staff, marketing bills, or debt.

Operating margin goes one layer deeper. It subtracts COGS plus normal operating expenses. This gives you a view of the business before interest and taxes.

Operating profit margin = (Revenue - COGS - Operating Expenses) ÷ Revenue × 100

Net profit margin includes the full cost picture. It may include operating expenses, interest, taxes, and other expenses. It answers a different question: after the business pays its bills, what portion of sales remains?

Net profit margin = Net Profit ÷ Revenue × 100

These are layers. Gross margin should usually be the highest. Operating margin should be lower after overhead. Net margin may fall further once financing and taxes enter the calculation.

For example, a retailer may have a strong gross margin but a weak net margin because rent, payroll, interest, or returns consume the gross profit. A consulting firm may have little COGS but still face a thin net margin if owner pay and other overhead run high.

Do not chase a single “good” margin. Margins vary by industry, price model, growth stage, and cost structure. Compare your business with its own past results first. Then use an industry benchmark that matches your business closely.

These figures usually come from the profit and loss statement. That is the right place to start, provided your accounts are current.

Pick one margin for the decision in front of you. Use gross margin for product economics, operating margin for day-to-day management, and net margin for the full business result.

small-business owner reviewing profit margin figures on a profit and loss statement

Step 2: Gather Accurate Revenue and Cost Figures

Accurate inputs make the answer useful. Before you calculate profit margin, choose a time period and pull matching revenue and cost records.

Monthly figures work well for most small businesses. Use the same month for sales, inventory costs, payroll, rent, and other expenses. If you compare January revenue with a full quarter of costs, the margin will mislead you.

Begin with revenue. For management reporting, use realized sales rather than list prices. Deduct returns, refunds, discounts, and allowances from the sales total. This shows what customers actually paid.

Next, separate COGS from operating expenses. Ask one plain question: would this cost happen because you delivered this specific sale?

  • Materials used to make the item usually belong in COGS.
  • Wholesale inventory usually belongs in COGS.
  • Direct delivery labor may belong in COGS.
  • General office rent usually belongs in operating expenses.
  • Administrative payroll usually belongs in operating expenses.
  • Broad marketing spend usually belongs in operating expenses.

Some costs need a policy. Freight-in may be part of inventory cost, while freight-out may be a selling expense. Customer support may count as a direct delivery cost for one business and general overhead for another. Choose a consistent method and document it.

Inventory records need special care. Missing freight, damaged stock, shrinkage, or old inventory counts can make COGS look too low. That inflates gross margin on paper. A monthly reconciliation can catch the problem before it affects pricing decisions.

Bookkeeping records should also use the right accounting basis. Under accrual accounting, revenue and expenses are recorded when earned or incurred. Cash-basis reports follow payments instead. Mixing the two can make one month look unusually strong or weak.

Small businesses often lose margin accuracy through manual entry. A bank feed can reduce missed transactions, but it cannot decide every category correctly. Review unusual purchases and split transactions instead of accepting every automatic suggestion.

TaxBowl helps small-business owners keep bookkeeping, tax records, and financial reviews connected. That matters when a margin question turns into a tax question, such as whether a large expense belongs in the current period or needs different treatment.

Revenue, COGS, and total expenses are key figures in a profitability calculation. Comparing margins over time can provide more context than judging one isolated result.

Before moving on, write down these figures:

  • Net revenue for the chosen period
  • COGS for the same period
  • Operating expenses for the same period
  • Interest and other non-operating costs
  • Taxes, if you’re calculating an after-tax net margin

By now, you should have a clean set of numbers from one period. If you cannot explain where a number came from, stop and fix the records first.

Step 3: Apply the Profit Margin Formula

The basic math is short: subtract the right costs, divide profit by revenue, and multiply by 100.

Let’s use a hypothetical distributor with these monthly results:

  • Revenue: $100,000
  • COGS: based on the distributor’s records
  • Operating expenses: based on the distributor’s records
  • Interest and other expenses: $5,000
  • Taxes: based on the business’s tax situation

First calculate gross profit:

Revenue - COGS = gross profit

Then calculate gross margin:

Gross profit ÷ revenue × 100 = gross margin

The business keeps a portion of each sales dollar after direct costs. Those cents still need to cover overhead and other expenses.

Now calculate operating profit:

Revenue - COGS - operating expenses = operating profit

Operating margin is:

Operating profit ÷ revenue × 100 = operating margin

Finally, calculate after-tax net profit:

Operating profit - interest and other expenses - taxes = net profit

Net margin is:

Net profit ÷ revenue × 100 = net margin

That set of results tells a clear story. Gross margin shows what remains after direct costs. Overhead reduces the result at the operating level. Interest and taxes reduce the final margin further.

Keep full precision in your spreadsheet, then round the displayed result to one decimal place when needed. Rounding each product before adding the results can create small errors across many sales.

Do not confuse margin with markup. Margin divides profit by selling price. Markup divides profit by cost.

Suppose an item costs $60 and sells for $100. The profit is $40. The margin is 40%, because $40 is 40% of the selling price. The markup is higher than the margin because profit is measured against the lower cost.

This difference causes many pricing errors. If a buyer says, “We need a 40% markup,” that does not mean the sale has a 40% margin.

You can also work backward from a target margin. If cost is known and the target gross margin is 25%, the needed price is:

Cost ÷ (1 - 0.25) = needed price

That price may produce the target margin, but customers still need to accept it. Test the market before treating the calculation as a final price.

For product decisions, calculate margin by SKU or service line when your records allow it. A business-wide margin can hide one product that loses money and another that carries the company.

Step 4: Interpret the Result for Pricing, Cash Flow, and Taxes

A margin percentage is a signal, not a verdict. Use it to find the next question.

If gross margin falls, check price, supplier cost, freight, waste, and product mix. A small cost increase can matter when sales volume is high. A discount can also reduce realized revenue while leaving most costs unchanged.

If gross margin stays steady but operating margin falls, review overhead. Look at payroll, rent, advertising, subscriptions, fulfillment, and service time. The problem may be a process that takes more labor than your price allows.

If operating margin looks healthy but net margin is weak, review interest, taxes, one-time costs, and other items below operating income. Those costs may not be fixed through a pricing change.

Result patternFirst area to reviewUseful management question
Gross margin is fallingPrice and direct costsDid supplier cost, freight, waste, or discounting change?
Gross margin is stable, operating margin is fallingOverhead and workflowWhich expense grew faster than revenue?
Operating margin is stable, net margin is fallingDebt, taxes, or one-time itemsIs the change tied to financing or a nonrecurring charge?
Margin is strong, cash is tightTiming and working capitalAre customers paying late or is cash tied up in stock?

Profit is not the same as cash. A sale may raise revenue before the customer pays. Inventory may also absorb cash before it appears as an expense. That is why a good margin can exist beside a strained bank balance.

Run a cash forecast beside your margin report. Mark expected customer payments, supplier bills, payroll dates, loan payments, and tax payments. This shows when profitable sales may still create a cash gap.

Taxes need a separate review. Book profit and taxable profit are not always the same. Tax rules can treat depreciation, owner compensation, retirement contributions, meals, and other items differently from financial reporting.

For example, a business may show a strong net margin but owe more estimated tax than the owner expected. An S corporation owner may also need to review reasonable compensation, payroll taxes, distributions, and retirement contributions together. A margin report alone cannot settle that analysis.

TaxBowl can review the margin result alongside your entity type, owner pay, deductions, and estimated tax position. Its role is to help connect the accounting result with a broader tax plan, not to replace an actuary, attorney, investment advisor, or plan administrator when those professionals are needed.

Tax planning works best before year-end. A forecast can show whether a planned purchase, retirement contribution, compensation change, or other action fits your cash position and tax goals. A tax strategy checklist for growing businesses can help organize the records and decisions that support that review. The TaxBowl guide to tax efficiency in business explains why timing, entity structure, deductions, and retirement planning need to be reviewed together.

Review margins monthly if your costs move fast. A weekly view may help a business with thin margins or sharp swings in material prices. Keep the same account rules each period so changes reflect the business rather than a new spreadsheet method.

One final test helps. Ask how much profit a price change creates in dollars, not only in percentage points. A lower margin on higher volume may produce more profit, while a higher margin on very few sales may not cover fixed costs.

accountant and business owner reviewing cash flow and profit margin for tax planning

FAQ

How do you calculate profit margin?

Calculate profit margin by dividing profit by revenue, then multiplying by 100. The profit figure depends on the question. Use revenue minus COGS for gross margin. Subtract operating expenses for operating margin. Subtract all relevant costs, including interest and taxes when appropriate, for net margin.

What is the difference between margin and markup?

Margin divides profit by selling price, while markup divides profit by cost. If an item costs $60 and sells for $100, its $40 profit produces a 40% margin and a markup higher than its margin. Use margin to measure sales profitability. Use markup when you add an amount to cost to set a price.

Which profit margin should a small business track?

A small business should usually track gross, operating, and net margin together. Gross margin helps with prices and direct costs. Operating margin shows whether overhead is under control. Net margin shows what remains after the wider financial picture, including interest and taxes.

Is a 20% profit margin good?

A 20% profit margin may be strong for one business and weak for another. Industry, growth stage, pricing model, debt, and overhead all affect the answer. Compare your margin with your own past periods first. Then use a benchmark from a similar business, not a broad average.

Can profit margin help with taxes?

Profit margin can help with tax planning, but it does not equal taxable income. Bookkeeping profit may differ from tax profit because of depreciation, deductions, owner pay, retirement contributions, and tax elections. Use the margin as a starting signal, then have a tax professional review the records and timing.

Conclusion

Calculate gross, operating, and net margin from the same clean period, then compare the result with your cash position. If the numbers raise questions about pricing, owner compensation, deductions, or estimated taxes, ask TaxBowl to review the figures and fit them into your wider business plan.