Blog / E-Commerce Tools
Published: April 10, 2026 • 10 min read • Category: E-Commerce Tools
Profit margin is the single most important metric for understanding your business's financial health. It tells you how much of every dollar in revenue you actually get to keep. Yet many business owners — especially those just starting out — confuse margin with markup, or don't know the difference between gross margin and net margin. This misunderstanding can lead to pricing mistakes that silently drain profitability.
This guide covers every type of profit margin, provides clear formulas with worked examples, explains the critical difference between margin and markup, and includes industry benchmarks so you can evaluate your numbers against real-world standards.
Profit margin is a profitability ratio that measures what percentage of revenue remains as profit after deducting costs. It's expressed as a percentage and calculated using this fundamental formula:
Profit Margin = (Revenue - Cost) / Revenue × 100
For example, if you sell a product for $100 and it costs you $65 to produce and deliver, your profit margin is:
Margin = ($100 - $65) / $100 × 100 = 35%
This means for every dollar of revenue, you keep $0.35 as profit. The remaining $0.65 covers your costs.
There are several types of profit margin, each measuring profitability at a different level of your business:
Gross margin measures profitability after accounting only for direct production costs — the cost of manufacturing or acquiring the products you sell. It doesn't include indirect costs like marketing, rent, or salaries.
Gross Profit = Revenue - Cost of Goods Sold (COGS) Gross Margin % = (Gross Profit / Revenue) × 100
Example: An online store sells products for $50,000/month. The products cost $28,000 to purchase from suppliers.
Gross Profit = $50,000 - $28,000 = $22,000
Gross Margin = ($22,000 / $50,000) × 100 = 44%
Operating margin adds operating expenses (rent, salaries, marketing, utilities) to the cost calculation:
Operating Profit = Gross Profit - Operating Expenses Operating Margin % = (Operating Profit / Revenue) × 100
Example: Same store with $50,000 revenue and $28,000 COGS. Operating expenses: $12,000.
Operating Profit = $22,000 - $12,000 = $10,000
Operating Margin = ($10,000 / $50,000) × 100 = 20%
Net margin is the most comprehensive measure. It accounts for ALL expenses, including taxes, interest, depreciation, and one-time costs:
Net Profit = Revenue - ALL Expenses (COGS + Operating + Taxes + Interest) Net Margin % = (Net Profit / Revenue) × 100
Example: Same store. Total expenses including taxes and interest: $47,500.
Net Profit = $50,000 - $47,500 = $2,500
Net Margin = ($2,500 / $50,000) × 100 = 5%
This example illustrates a common pattern: a healthy gross margin (44%) can shrink to a thin net margin (5%) after all expenses are accounted for. This is why understanding all three margin types is crucial.
One of the most common pricing mistakes is confusing margin with markup. They sound similar but measure completely different things:
Margin = (Selling Price - Cost) / Selling Price × 100 Markup = (Selling Price - Cost) / Cost × 100
Example: Cost = $60, Selling Price = $100
Margin = ($100 - $60) / $100 × 100 = 40%
Markup = ($100 - $60) / $60 × 100 = 66.7%
A product marked up by 50% does NOT have a 50% margin. If your cost is $50 and you apply a 50% markup, your selling price is $75, and your margin is only 33.3%. This mistake alone causes many businesses to underprice their products.
Conversion formulas:
Markup from Margin: Markup = Margin / (1 - Margin) Margin from Markup: Margin = Markup / (1 + Markup) Example: 40% margin → Markup = 0.40 / 0.60 = 66.7% Example: 50% markup → Margin = 0.50 / 1.50 = 33.3%
What counts as a "good" margin depends heavily on your industry. Here are typical ranges:
These are general benchmarks. Compare your margins against direct competitors for the most relevant comparison.
Scenario: You sell wireless earbuds online.
Purchase price: $18/pair
Selling price: $49.99
Shipping per order: $3.50
Platform fees (15%): $7.50
Marketing cost per sale: $5.00
Effective cost = $18 + $3.50 + $7.50 + $5.00 = $34.00
Profit per sale = $49.99 - $34.00 = $15.99
Net Margin = ($15.99 / $49.99) × 100 = 32%
Scenario: Freelance web designer.
Project revenue: $5,000
Software licenses: $200
Contractor help: $1,500
Business expenses: $300
Net Profit = $5,000 - $200 - $1,500 - $300 = $3,000
Net Margin = ($3,000 / $5,000) × 100 = 60%
Profit Margin = (Revenue − Cost) / Revenue × 100. For example, if you sell a product for $100 and it costs $60 to produce, your profit margin is ($100 − $60) / $100 × 100 = 40%.
Gross margin only considers the cost of goods sold (COGS) — direct production costs. Net margin accounts for ALL expenses including operating costs, taxes, interest, and overhead. Net margin is always lower than gross margin.
Margin is the percentage of the selling price that is profit. Markup is the percentage added to the cost to get the selling price. A 50% markup on a $60 cost gives $90, but the margin is 33.3% ($30/$90). They measure different things.
It varies by industry. Retail typically sees 5–10% net margins. SaaS companies often achieve 70–85% gross margins. Restaurants operate on 3–9% net margins. Compare your margins against industry benchmarks rather than using a universal target.
Strategies include: reducing COGS by negotiating with suppliers, increasing prices strategically, improving operational efficiency, reducing waste, upselling and cross-selling, and focusing on higher-margin products. Even small improvements compound significantly.
Calculate sale prices and promotional savings
Quick percentage and change calculations
Advanced math for financial calculations