HomeTodayPerformance ReportInsightsFlow MapsUTM BuilderSettingsSupport

Profit Margin Calculator

Profit margin is the percentage of revenue that remains after costs are deducted. The formula is: Profit Margin = ((Revenue − Cost) ÷ Revenue) × 100.

What the customer pays

What you pay to make or source it

Your cost to ship the order

Shopify + payment processing fees

How to Calculate Profit Margin

Profit Margin=
Revenue − Cost
Revenue
× 100
  1. 1Determine your revenue (selling price) for the product or period.
  2. 2Determine your total cost (cost of goods sold, shipping, etc.).
  3. 3Subtract cost from revenue to get profit.
  4. 4Divide profit by revenue and multiply by 100 to get the percentage.

For example, if you sell a product for $50 and it costs you $20, your profit is $30. Profit Margin = ($30 ÷ $50) × 100 = 60%. This means 60 cents of every dollar in revenue is profit.

What Is a Good Profit Margin? — Ecommerce Benchmarks

CategoryBenchmark Range
Apparel / Fashion40–60%
Beauty / Cosmetics50–70%
Electronics15–30%
Food & Beverage30–50%
Handmade / Artisan50–70%
Dropshipping15–30%

Benchmarks vary by industry, audience, product type, and season. Use these as general guidelines.

Why Profit Margin Matters for Your Shopify Store

Profit margin is the foundation of every business decision you make. It determines how much you can afford to spend on marketing, how aggressively you can scale, and whether your business is sustainable long-term.

For Shopify stores, knowing your exact profit margin per product is critical for setting ROAS targets. If your margins are 60%, you can afford a lower ROAS and still be profitable. If margins are 20%, you need a much higher ROAS to break even.

Many ecommerce brands focus on revenue growth while ignoring margins. A store doing $100K/month at 15% margins is less profitable than a store doing $50K/month at 50% margins. Track margins alongside revenue to build a sustainable business.

BlackBox Attribution: Knowing your profit margin is step one. Step two is knowing which marketing channels actually drive orders. BlackBox Attribution’s Flow Maps show exactly which traffic sources lead to purchases on your Shopify store.

Common Mistakes When Calculating Profit Margin

  • Confusing profit margin with markup — a 50% margin is not the same as a 50% markup. A $20 cost with $50 revenue is 60% margin but 150% markup.
  • Forgetting to include all costs — shipping, transaction fees, packaging, and returns all reduce your true margin.
  • Using gross margin when making ad spend decisions instead of net margin, which leads to overspending.
  • Not recalculating margins regularly as supplier costs, shipping rates, and platform fees change.

Frequently Asked Questions

What is a good profit margin for a Shopify store?

A good profit margin for a Shopify store depends on your industry. Fashion and beauty brands typically see 40–60% gross margins, while electronics and dropshipping stores average 15–30%. Overall, aim for at least 30% gross margin to have enough room for marketing spend.

What's the difference between profit margin and markup?

Profit margin is profit as a percentage of revenue (selling price). Markup is profit as a percentage of cost. A product costing $20 sold for $50 has a 60% profit margin but a 150% markup. They measure the same profit differently — margin is more common in business analysis.

How do I calculate profit margin from cost and selling price?

Subtract the cost from the selling price to get profit. Then divide profit by selling price and multiply by 100. Example: Selling price $50, cost $20. Profit = $30. Margin = ($30 ÷ $50) × 100 = 60%.

What profit margin do I need to cover ad spend?

Your profit margin determines your break-even ROAS. The formula is: Break-even ROAS = 1 ÷ Profit Margin. If your margin is 50%, you need at least 2x ROAS to break even. If your margin is 25%, you need at least 4x ROAS. Factor in operating costs for the true break-even point.

How does profit margin affect ROAS targets?

Higher margins mean you can accept a lower ROAS and still profit. A store with 70% margins is profitable at 2x ROAS. A store with 20% margins needs 5x+ ROAS to break even. Always calculate your minimum ROAS target based on your actual margins.

What's the average ecommerce profit margin?

The average gross profit margin across ecommerce is roughly 42%. However, this varies dramatically by category: beauty (50–70%), fashion (40–60%), electronics (15–30%), and dropshipping (15–30%). Net profit margins (after all expenses) typically range from 10–20% for healthy ecommerce businesses.

5.0

What Shopify merchants are saying

Reviews from the Shopify App Store

Great app, easy to install, and way more affordable than the big-name attribution tools. Helps me make smarter decisions about my ad spend. Support has been responsive too. Worth every penny.

LooksPretty

France6 days using the app

This is a good app. I simply tried the app, and I would say it exceeded my expectations. The setup has been very easy and I got some pretty good insights. Support has been very responsive.

Hustle Wear

India5 days using the app

I was skeptical at $19/mo but this thing actually nails attribution better than tools I've paid way more for.

Sydney Padel Club

Australia
BlackBox

See which channels actually drive sales.

BlackBox shows exactly which traffic sources, campaigns, and ads lead to purchases on your Shopify store.

  • Flow Maps: see first touch to purchase
  • Facebook, Google, TikTok, Email & more
  • Built for Shopify stores
Get Started FreeFrom $19/month for Shopify stores