Skip to main content
💹

Profit Margin Calculator

Calculate gross profit margin, net profit margin, and markup percentage.

$
$

Profit Margin

40.00%

Revenue$100.00
Cost$60.00
Profit$40.00
Markup66.67%

Revenue Breakdown

Cost
Profit
Cost: 60.0%Profit: 40.0%
💡
Margin vs Markup: Profit margin is profit as a percentage of revenue (40.0% of $100.00). Markup is profit as a percentage of cost (66.7% of $60.00). Both represent the same $40.00 profit.

About This Calculator

The difference between a thriving business and a failing one often comes down to understanding margins. Yet 60% of small business owners cannot correctly calculate their profit margin, and confusing margin with markup costs businesses billions annually in pricing errors. This Profit Margin Calculator helps you find gross margin, net margin, markup percentage, and the selling price needed to achieve your profit goals.

Enter your cost and selling price to instantly see profit amount, margin percentage, and markup percentage—the three numbers every business owner needs to know. Or work backward: enter your desired margin to calculate the required selling price. Whether you're pricing products for e-commerce, negotiating wholesale deals, or analyzing business profitability, understanding margins is essential for sustainable success.

Consider this: a business with $1 million in revenue at 5% net margin makes $50,000 profit. The same revenue at 15% margin yields $150,000—three times the profit from the same sales volume. Margin improvement is often more impactful than revenue growth.

How to Use the Profit Margin Calculator

  1. 1Enter your cost—what you pay for the product or service (include all direct costs for accuracy).
  2. 2Enter your selling price—what customers pay you.
  3. 3View your profit amount in dollars and your profit margin as a percentage.
  4. 4See markup percentage for pricing reference (different from margin!).
  5. 5Or work backward: enter your desired margin percentage to calculate the required selling price.
  6. 6Compare different scenarios to find optimal pricing for your profit goals.
  7. 7Factor in overhead costs to understand your true net margin, not just gross margin.

Formula

Margin % = ((Revenue - Cost) / Revenue) × 100

Profit margin represents the percentage of revenue that becomes profit after subtracting costs. It's calculated by dividing profit (revenue minus cost) by revenue, then multiplying by 100. This differs from markup, which divides profit by cost instead of revenue. Margin is preferred for financial analysis because it's bounded (0-100%), making comparisons meaningful across different price points and industries. A 40% margin means you keep $0.40 of every dollar in revenue; the other $0.60 covers costs.

Margin vs. Markup: The Critical Difference

The Most Common Pricing Mistake in Business

Confusing margin and markup costs businesses billions in lost profit annually. They measure the same profit but from different perspectives—and using the wrong one can destroy your pricing strategy.

Profit Margin Formula: Margin % = ((Selling Price - Cost) / Selling Price) × 100

Markup Formula: Markup % = ((Selling Price - Cost) / Cost) × 100

Same Example, Different Numbers:

  • Cost: $60
  • Selling Price: $100
  • Profit: $40

Margin: $40 ÷ $100 = 40% (profit as % of revenue) Markup: $40 ÷ $60 = 66.7% (profit as % of cost)

Why This Matters: If you want a 40% margin but apply 40% markup, you'll price incorrectly:

  • Correct (40% margin): $60 ÷ 0.60 = $100
  • Wrong (40% markup): $60 × 1.40 = $84

That $16 difference per unit, at scale, can mean the difference between profitability and bankruptcy.

Conversion Formulas:

  • Markup to Margin: Margin = Markup ÷ (1 + Markup)
  • Margin to Markup: Markup = Margin ÷ (1 - Margin)

Example Conversions:

MarkupMarginPrice if Cost = $100
25%20%$125
33.3%25%$133.33
50%33.3%$150
100%50%$200
200%66.7%$300
400%80%$500

Gross Margin vs. Net Margin vs. Operating Margin

Understanding the Three Key Margins

Each margin tells you something different about your business health:

Gross Profit Margin:

  • Formula: (Revenue - COGS) ÷ Revenue
  • Subtracts: Direct costs only (materials, manufacturing, freight)
  • Shows: Efficiency of production/procurement
  • Healthy range: 25-80%+ (varies widely by industry)

Operating Margin:

  • Formula: (Revenue - COGS - Operating Expenses) ÷ Revenue
  • Subtracts: Direct costs + overhead (rent, salaries, utilities, marketing)
  • Shows: Profitability of core business operations
  • Healthy range: 5-25%

Net Profit Margin:

  • Formula: (Revenue - ALL Costs) ÷ Revenue
  • Subtracts: Everything (including interest, taxes, one-time costs)
  • Shows: True bottom-line profitability
  • Healthy range: 5-20%

Real-World Example (E-commerce Business):

Line ItemAmountCalculation
Revenue$500,000-
Cost of Goods Sold$200,000Products, shipping to you
Gross Profit$300,00060% gross margin
Operating Expenses$175,000Staff, rent, marketing, software
Operating Profit$125,00025% operating margin
Interest & Taxes$25,000Loans, income tax
Net Profit$100,00020% net margin

Why You Need All Three:

  • High gross margin but low net margin = Overhead problem (cut expenses)
  • Low gross margin but okay net margin = Pricing problem (raise prices or cut COGS)
  • Healthy gross and operating but low net = Tax or debt problem (restructure)

Industry Benchmark Margins

Know What's "Normal" for Your Industry

Margins vary dramatically by industry. A 3% net margin might be excellent for groceries but terrible for software. Here are current benchmarks:

Retail & E-commerce:

IndustryGross MarginNet Margin
Grocery/Supermarkets25-30%1-3%
Discount Retail (Walmart)24-26%2-4%
Clothing Retail45-65%4-13%
Jewelry42-50%5-10%
Furniture40-50%2-7%
Electronics15-25%3-7%
Amazon Third-Party Sellers30-50%10-25%
Dropshipping20-40%5-20%

Services:

IndustryGross MarginNet Margin
Restaurants60-70%3-9%
Consulting50-80%10-25%
Accounting/Legal80-95%20-40%
Marketing Agencies50-70%10-20%
Healthcare60-80%5-15%

Technology & Software:

IndustryGross MarginNet Margin
SaaS70-90%10-30%
Software Products80-95%15-35%
IT Services30-50%5-15%
Hardware20-40%5-15%

Manufacturing:

IndustryGross MarginNet Margin
Pharmaceuticals65-80%15-25%
Medical Devices60-75%15-25%
Automotive15-25%3-8%
Food Processing25-35%3-8%
Apparel Manufacturing35-50%5-12%

Key Insight: Compare your margins to your specific industry, not across industries. A 40% gross margin is exceptional for electronics but concerning for SaaS.

Pricing Strategies Based on Margin Goals

How to Set Prices That Achieve Your Target Margin

Cost-Plus Pricing (Most Common): Calculate your cost, add desired margin/markup.

Formula: Selling Price = Cost ÷ (1 - Target Margin)

Example: $50 cost, 40% target margin $50 ÷ (1 - 0.40) = $50 ÷ 0.60 = $83.33 selling price

Value-Based Pricing (Most Profitable): Price based on value to customer, not cost.

Example: Software that saves businesses $10,000/month

  • Development cost: $100,000 one-time
  • Pricing: $500/month (customers save 20x what they pay)
  • After 200 customers: 95%+ gross margin

Competitive Pricing: Match or undercut competitors, then work backward to ensure viability.

Example: Competitor charges $99

  • Your cost: $55
  • At $99: 44% margin (viable)
  • At $89 (undercutting): 38% margin (still viable)
  • At $69 (race to bottom): 20% margin (dangerous)

Keystone Pricing (Traditional Retail): Double the wholesale cost (100% markup = 50% margin).

Example: Wholesale cost $40

  • Keystone price: $80
  • Margin: 50%

This simple rule works when:

  • Overhead is roughly 30-35% of revenue
  • Industry competitors use similar pricing
  • You need quick pricing decisions

Tiered Pricing (Maximize Capture):

TierPriceMarginTarget Customer
Basic$49/mo85%Price-sensitive
Pro$99/mo88%Value seekers
Enterprise$299/mo92%High-value clients

Higher tiers typically have higher margins due to minimal incremental cost.

Common Margin Mistakes and How to Avoid Them

Mistake 1: Ignoring Hidden Costs

Many businesses calculate margin using only product cost, forgetting:

  • Payment processing fees (2.5-3.5%)
  • Shipping and packaging
  • Returns and refunds (varies, budget 5-15% for e-commerce)
  • Customer acquisition cost
  • Storage and warehousing

True Margin Calculation: Include ALL variable costs per unit, not just product cost.

Line ItemPer Unit
Product Cost$30.00
Shipping In$2.00
Packaging$1.50
Payment Fees (3%)$1.47
Returns (8% rate)$3.92
True Cost$38.89
Selling Price$49.00
True Margin20.6%

Without hidden costs, you'd think margin was 39%. In reality, it's 20.6%.

Mistake 2: Discounting Without Math

"20% off" sounds small but devastates thin margins:

Original Margin20% Discount ImpactNew Margin
50%Still profitable37.5%
40%Barely profitable25%
30%Danger zone12.5%
25%Losing money6.25%
20%Deep loss0%

At 20% original margin, a 20% discount eliminates ALL profit.

Mistake 3: Volume Illusion

"We'll make it up on volume" is the #1 justification for unsustainable pricing.

Low-margin math: Selling $100 item at 10% margin = $10 profit To make $100,000 profit, you need to sell 10,000 units

High-margin alternative: Selling $100 item at 40% margin = $40 profit To make $100,000 profit, you need only 2,500 units

Lower volume at higher margins is almost always better—less inventory, shipping, customer service, and risk.

Mistake 4: Copying Competitor Prices Blindly

Competitors may:

  • Have lower costs (buying power, efficiency)
  • Accept lower margins (different strategy)
  • Be losing money (unsustainable)
  • Offer less (you provide more value)

Always calculate YOUR margins at competitor prices before matching.

Improving Your Profit Margins

Strategies to Increase Margin Without Raising Prices

1. Reduce Cost of Goods Sold (COGS):

  • Negotiate with suppliers (volume discounts)
  • Find alternative suppliers
  • Reduce product complexity/features
  • Improve manufacturing efficiency
  • Buy in larger quantities

Typical savings: 5-25% on COGS

2. Reduce Operating Expenses:

  • Automate repetitive tasks
  • Renegotiate rent, insurance, subscriptions
  • Optimize marketing spend (cut low-ROI channels)
  • Reduce headcount through efficiency
  • Move to lower-cost locations

Typical savings: 10-30% on specific line items

3. Improve Pricing:

  • Raise prices (test 5-10% increases)
  • Reduce discounting
  • Add premium tiers
  • Bundle products
  • Remove lowest-margin offerings

Typical impact: 2-15% margin improvement

4. Reduce Returns and Refunds:

  • Improve product quality
  • Better product descriptions/images
  • Size guides and comparison tools
  • Quality customer service
  • Stricter return policies

E-commerce: Each 1% reduction in returns can mean 0.5%+ margin improvement

5. Shift Product Mix:

  • Promote higher-margin items
  • Discontinue low-margin SKUs
  • Upsell and cross-sell premium options
  • Create exclusive/proprietary products

Impact Calculation:

Current situation:

  • Revenue: $500,000
  • Net margin: 10% ($50,000 profit)

After optimization:

  • 5% COGS reduction: +$10,000
  • 10% overhead reduction: +$8,750
  • 3% margin pricing increase: +$15,000

New profit: $83,750 (67% increase!) New net margin: 16.75%

Margin Calculations for Different Business Models

E-commerce Margin Calculation:

Line ItemAmount% of Revenue
Product Revenue$100.00100%
Product Cost-$35.0035%
Inbound Freight-$2.002%
Outbound Shipping-$8.008%
Packaging-$2.002%
Payment Processing-$3.003%
Returns (10% rate)-$10.0010%
Marketplace Fees (if applicable)-$15.0015%
Gross Profit$25.0025%
Marketing/CAC-$15.0015%
Contribution Margin$10.0010%

Service Business Margin Calculation:

Line ItemAmount% of Revenue
Service Revenue$5,000100%
Direct Labor (40 hrs × $25)-$1,00020%
Contractor Costs-$50010%
Software/Tools-$2004%
Travel/Expenses-$1002%
Gross Profit$3,20064%
Overhead Allocation-$1,50030%
Operating Profit$1,70034%

SaaS Margin Calculation:

Line ItemAmount% of Revenue
Subscription Revenue$100/mo100%
Hosting/Infrastructure-$55%
Payment Processing-$33%
Customer Support (prorated)-$1010%
Gross Profit$8282%
CAC Recovery (over 24 mo)-$2020%
R&D Allocation-$1515%
Contribution Margin$4747%

Key Insight: Each business model has different margin expectations. An 82% gross margin SaaS might only have 20% net margin after CAC and R&D, while a service business with 64% gross margin might achieve similar net margins with lower customer acquisition costs.

Pro Tips

  • 💡Always calculate margin, not markup, for financial decisions—margin tells you what percentage of revenue becomes profit, making it easier to cover overhead and compare across products.
  • 💡Include ALL costs in your margin calculation: payment processing (2.5-3.5%), shipping, packaging, returns, and customer acquisition. True margin is often 10-15% lower than product-only margin.
  • 💡Know your industry benchmarks. A 40% gross margin is excellent for retail but concerning for software. Compare yourself to your specific industry, not general averages.
  • 💡Calculate break-even before launching products: Fixed Costs ÷ Contribution Margin % = Revenue needed. This tells you exactly how much you need to sell to cover costs.
  • 💡Price based on value, not cost, when possible. If your product saves customers $10,000/year, a $1,000 price (90% margin) may be more sustainable than cost-plus pricing at 40% margin.
  • 💡Review margins quarterly and by product. You may discover that 20% of products generate 80% of profit—double down on winners and consider discontinuing losers.
  • 💡Before offering discounts, calculate the volume increase needed to maintain profit. A 20% discount at 40% margin requires 50% more sales just to break even on total profit.
  • 💡Improve margins before growing revenue. A 5% margin improvement on existing revenue often adds more profit than a 20% revenue increase—with less work and risk.
  • 💡Track contribution margin (revenue minus variable costs) for each customer/product to identify true profitability once fixed costs are covered.
  • 💡Include owner compensation in break-even calculations. A "profitable" business that doesn't pay the owner market rate for their work isn't truly profitable—it's subsidizing itself.

Frequently Asked Questions

Good margins vary by industry, but general benchmarks: 10%+ net margin is healthy for most businesses, 20%+ is excellent. For gross margins: 30-50% is typical for retail, 50-70% for services, 70-90% for software. More important than the absolute number is how you compare to your industry and whether margins are improving over time. A restaurant at 8% net margin is doing well; a SaaS company at 8% is struggling.

Nina Bao
Written byNina BaoContent Writer
Updated January 4, 2026

More Calculators You Might Like