Billed
Finance

How to Calculate Profit Margin: Formulas, Examples, and Benchmarks

Learn how to calculate profit margin for your business with clear formulas, real examples, and industry benchmarks for gross and net margins.

B
Billed Team
6 min read

Knowing how to calculate profit margin is fundamental to running a sustainable business. Revenue tells you how much money comes in. Profit margin tells you how much you actually keep. A business doing $500,000 in revenue with a 5% margin is keeping less than a business doing $200,000 with a 25% margin.

This guide covers the formulas for gross and net profit margin, walks through real examples, and provides industry benchmarks so you can see where your business stands.

What Is Profit Margin?

Profit margin is the percentage of revenue that remains after expenses. It measures how efficiently your business converts sales into profit.

There are two main types:

  • Gross profit margin — profit after direct costs (cost of goods sold)
  • Net profit margin — profit after all expenses, including overhead, taxes, and interest

Both are important, and they tell you different things about your business.

How to Calculate Gross Profit Margin

Gross profit margin shows how much you keep after paying the direct costs of delivering your product or service.

Formula

Gross Profit Margin = ((Revenue - COGS) ÷ Revenue) × 100

Example

A web design agency earns $150,000 in revenue. Their direct costs — subcontractor payments, stock photography, and hosting fees for client projects — total $45,000.

  • Gross Profit = $150,000 - $45,000 = $105,000
  • Gross Profit Margin = ($105,000 ÷ $150,000) × 100 = 70%

This means for every dollar of revenue, they keep 70 cents before paying rent, salaries, software, and other overhead.

What Gross Margin Tells You

  • High gross margin (60%+) means your direct delivery costs are low relative to what you charge. Common in services and software.
  • Low gross margin (below 30%) means most of your revenue goes to direct costs. Common in retail and manufacturing.
  • Declining gross margin means your costs are rising faster than your prices — a signal to either raise rates or reduce delivery costs.

How to Calculate Net Profit Margin

Net profit margin is the bottom line. It accounts for every expense: direct costs, overhead, salaries, marketing, taxes, loan interest — everything.

Formula

Net Profit Margin = (Net Income ÷ Revenue) × 100

Example

Using the same agency: $150,000 revenue, $45,000 in direct costs, and $80,000 in operating expenses (rent, salaries, software, marketing, insurance).

  • Net Income = $150,000 - $45,000 - $80,000 = $25,000
  • Net Profit Margin = ($25,000 ÷ $150,000) × 100 = 16.7%

After all expenses, the agency keeps about 17 cents of every dollar earned.

What Net Margin Tells You

  • Healthy net margin for most small businesses is 10-20%.
  • Below 5% is a warning sign — one slow month or unexpected expense could wipe out your profit.
  • Above 25% is excellent and means you have significant room for reinvestment or savings.

Gross Margin vs. Net Margin: Why Both Matter

Think of it this way:

  • Gross margin evaluates your pricing and direct cost efficiency.
  • Net margin evaluates overall business efficiency.

If your gross margin is strong (say, 65%) but your net margin is weak (say, 3%), the problem isn't pricing — it's overhead. You're spending too much on rent, software, marketing, or salaries relative to your revenue.

If both margins are weak, you likely have a pricing problem, a cost problem, or both.

Profit Margin Benchmarks by Industry

Here are typical net profit margin ranges for common small business types:

Industry Typical Net Margin
Consulting / Professional Services 15-25%
Web Development / Design Agencies 10-20%
Accounting / Bookkeeping 15-20%
Marketing Agencies 10-15%
Retail (Online) 5-10%
Retail (Brick & Mortar) 2-5%
Restaurants 3-9%
Construction 5-10%
SaaS / Software 20-40%
Freelancing / Solo Services 25-50%

Freelancers and solo service providers often have the highest margins because they have minimal overhead. Agencies and retail businesses carry more fixed costs, which compresses margins.

Use the Profit Margin Calculator to plug in your own numbers and see exactly where you stand.

How to Improve Your Profit Margin

Raise Prices

The most direct lever. A 10% price increase goes straight to your bottom line if volume stays constant. Most businesses underprice, especially service businesses.

Reduce Direct Costs

  • Negotiate better rates with suppliers or subcontractors
  • Eliminate services or deliverables that cost more than they're worth
  • Automate repetitive tasks in your delivery process

Cut Overhead

  • Audit subscriptions quarterly — cancel what you don't actively use
  • Consider remote work to reduce or eliminate office costs
  • Consolidate tools (invoicing, time tracking, and project management in one platform instead of three)

Increase Volume Without Proportional Cost Increases

Productized services, templates, and digital products can scale revenue without scaling costs linearly. A designer who sells website templates alongside custom work improves margins on the template sales.

Track Margin per Client or Project

Your overall margin is an average. Some clients or projects are highly profitable, and others may actually lose money. Tracking margin at the project level reveals which work to pursue more of and which to stop accepting.

Real-World Margin Scenarios

Scenario 1: The Profitable Freelancer

  • Revenue: $120,000/year
  • COGS (subcontractors, tools): $10,000
  • Operating expenses: $25,000
  • Gross margin: 91.7%
  • Net margin: 70.8%

This freelancer keeps most of what they earn because overhead is minimal.

Scenario 2: The Growing Agency

  • Revenue: $800,000/year
  • COGS (contractor labor, project costs): $320,000
  • Operating expenses: $380,000
  • Gross margin: 60%
  • Net margin: 12.5%

Healthy, but tight. One bad quarter or lost client could erase the margin. The agency should focus on either raising prices or reducing operating costs.

Scenario 3: The Struggling Retailer

  • Revenue: $250,000/year
  • COGS: $175,000
  • Operating expenses: $70,000
  • Gross margin: 30%
  • Net margin: 2%

This business is barely breaking even. The low gross margin suggests pricing is too low or cost of goods is too high. At 2% net margin, there's no room for error.

Tracking Profit Margin Over Time

A single margin calculation is useful, but the real value comes from tracking trends:

  • Monthly margin tracking reveals seasonal patterns and the impact of business changes.
  • Quarter-over-quarter comparison shows whether your profitability is improving or declining.
  • Year-over-year analysis provides the clearest picture of long-term business health.

Set up a simple spreadsheet or use your accounting tool's reporting to track gross and net margins monthly. If either trends downward for three consecutive months, investigate immediately.

Conclusion

Gross profit margin tells you how efficiently you deliver your services. Net profit margin tells you how efficiently you run your business overall. Calculate both, compare them against industry benchmarks, and track them monthly.

If your margins are below where they should be, start with the highest-impact lever: pricing. Then work through cost reductions and volume strategies. Try the Profit Margin Calculator to see your current position and model different scenarios.

Related Templates

Ready-to-use templates to help your business get started.

Put Your Billing On Autopilot With Billed

Start creating professional invoices, tracking expenses, and managing your business today. No credit card required.

No credit card required. Cancel anytime.