®
P&L Margins

Profit Margin Calculator

Gross, operating and net profit margin in one place — with the full P&L walkdown that shows exactly where revenue disappears.

Revenue & Costs
$
$
$
$
$
Non-Operating Items
$
$
%
$
Revenue$500,000
- COGS-$175,000
Gross Profit$325,000
- Total OpEx-$225,000
EBITDA$100,000
- D&A / Interest-$20,000
- Taxes-$20,000
Net Profit$60,000

Net Profit

$60,000

Healthy

Gross Margin

65.0%

Before OpEx

EBITDA Margin

20.0%

Operating profitability

Net Margin

12.0%

Bottom line

Revenue Allocation
— About this tool

What is the Profit Margin Calculator

Profit margin is the share of revenue you keep after costs. Gross margin strips out the cost of producing the goods themselves; operating margin then deducts the cost of running the business; net margin lands on the line that actually hits your bank. Most teams report only one of the three and miss the leak hiding in the gap between them.

— Formula

How it’s calculated

Gross margin = (Revenue − COGS) / Revenue · Operating margin = (Gross profit − OpEx) / Revenue · Net margin = (Operating profit − Interest − Taxes) / Revenue

Each margin removes one layer of cost from revenue. Looking at all three at once tells you where the money disappears — production, operations, or the financing/tax stack. A 60 % gross margin with a 4 % net margin is an operations problem, not a pricing one.

  1. 1
    Pull revenue and direct costs. Take total revenue for the period and subtract Cost of Goods Sold (materials, manufacturing, shipping). The result is gross profit.
  2. 2
    Divide by revenue to get gross margin. Gross profit ÷ revenue × 100 = gross margin %. This is your pricing-vs-direct-cost health number.
  3. 3
    Subtract operating expenses. From gross profit, subtract OpEx — rent, salaries, marketing, software. The result is operating profit (EBITDA before depreciation).
  4. 4
    Deduct depreciation, interest and taxes. Apply D&A to land on EBIT, subtract interest to get pre-tax profit (EBT), then apply your tax rate. What remains is net profit.
  5. 5
    Divide each by revenue. Express gross, operating and net profit each as a percentage of revenue. Three numbers, three diagnoses, one bank balance.
— Worked examples

Three scenarios, real numbers

DTC ecommerce

Revenue
$500,000
COGS
$175,000
Marketing + OpEx
$225,000
Tax rate
25%

Gross 65% · Operating 20% · Net 13.5%

Healthy: gross margin clears the 50% line typical for DTC, net stays in double digits.

SaaS subscription

Revenue
$1.2M ARR
COGS (hosting, CS)
$240k
OpEx
$720k
Tax rate
25%

Gross 80% · Operating 20% · Net 15%

Typical SaaS: high gross from low marginal cost, OpEx pressure (R&D + S&M) drags net into the 10-20% band.

Retail / D2C with debt

Revenue
$250k
COGS
$160k
OpEx
$60k
Interest expense
$8k

Gross 36% · Operating 12% · Net 6.6%

Margin compression: low gross + interest expense = thin net. Cash conversion is the real risk here, not the P&L line.

— Naniza benchmark

Net margin band by vertical

Naniza dataset, aggregated from 80+ DTC and SaaS clients scaled across €42M+ in media spend. Refreshed quarterly.

SaaS (mature, post Rule of 40)15–25%
DTC apparel / fashion4–10%
DTC beauty / skincare8–15%
DTC food & beverage3–8%
Marketplace / aggregator6–12%
Pure ecommerce (Amazon-heavy)2–6%
— Common mistakes

Where teams slip

  • Conflating gross margin with net margin. Gross looks great while the business loses money — happens constantly in DTC.
  • Excluding paid media from COGS. If you can't sell a unit without an ad, the ad is part of unit cost.
  • Forgetting returns and refunds. They lower revenue and inflate COGS. Net them before margin math.
  • Skipping inventory carrying cost. Capital tied in stock has a real opportunity cost — bake it into operating margin.
  • Comparing your margin to public-company benchmarks. Their scale and tax structure don't map to a 7-figure DTC.
— How to improve it

Levers that move it

  • Raise price by 5%. The single highest-leverage move on margin — most brands underestimate elasticity.
  • Renegotiate COGS quarterly. A 3% supplier reduction at 50% gross margin lifts net margin by 1.5 points.
  • Shift channel mix toward owned (email, SMS, organic). Each point of paid-mix replaced lifts net by 0.5–1 point.
  • Cut subscale SKUs. The bottom 20% of SKUs usually carry a negative contribution margin after returns.
  • Move slow-turning inventory off the books. Working capital tied up costs you 8–15% per year in reality.
— FAQ

Frequently asked

What is the difference between gross margin, operating margin and net margin?

Gross margin = (Revenue − COGS) / Revenue. Operating margin = (Gross profit − Operating expenses) / Revenue. Net margin = (Operating profit − Interest − Taxes) / Revenue. Each one strips out a layer of cost, so the three together tell you where the money is going — production, operations, or financing/tax.

How do I calculate net profit margin?

Take revenue, subtract every cost — COGS, operating expenses, depreciation, interest, taxes — and divide what remains by revenue. The result expressed as a percentage is your net profit margin. This calculator does it in real time from the inputs above.

What is a good profit margin for ecommerce?

In our DTC dataset, healthy net margins sit between 8% and 15% depending on vertical. Below 4% the business is fragile; above 18% you're either premium-priced or operating leaner than the industry. The right target depends on growth stage — early-stage brands often run 0-5% net while reinvesting in CAC.

Is operating margin the same as EBITDA margin?

Close but not identical. EBITDA adds back depreciation and amortisation on top of operating profit, so EBITDA margin is usually a few points higher than operating margin. EBITDA is a proxy for cash-generating capacity; operating margin is closer to true profitability.

Does this calculator handle taxes and interest?

Yes. Switch to the full P&L mode (default inputs include Marketing, Salaries, Depreciation, Interest, Tax rate and Other Income). The calculator runs Revenue → COGS → Gross → OpEx → EBITDA → D&A → EBIT → Interest → EBT → Taxes → Net Profit, the same waterfall an FP&A team would build.

How is markup different from margin?

Markup is (Revenue − COGS) ÷ COGS. Margin is (Revenue − COGS) ÷ Revenue. A 100% markup is a 50% margin. Markup is what you add on top of cost; margin is what you keep from the sale. Retailers price by markup, accountants report by margin.

Why is my gross margin healthy but net margin near zero?

Operating expenses are eating the upside. Typical culprits: paid acquisition above LTV, oversized payroll, software bloat, fulfilment fees not netted into COGS. Use the P&L breakdown tab to see which category is above industry norms.

Can I use this for service businesses or agencies?

Yes. Replace COGS with direct delivery cost (subcontractors, hosting if you sell software, the time of billable staff). The math is the same; the categories shift. Most service businesses see 30-50% gross and 10-20% net.

— Read next

Keep going