Free Tool
Profit Margin Calculator
Enter cost price and selling price to calculate gross margin, markup percentage, and profit per unit. Includes break-even analysis and industry benchmarks.
Researched by the ShelfMerge Research Team
Profit margin vs. markup — what's the actual difference?
These two numbers get used interchangeably and it causes real pricing mistakes. Gross margin is a percentage of the selling price. Markup is a percentage of the cost price. They describe the same underlying profit from different angles, and the numbers look dramatically different.
Cost: $40 | Selling Price: $100
Gross Margin = ($100 - $40) / $100 = 60%
Markup = ($100 - $40) / $40 = 150%
The mistake merchants make is targeting a 50% markup when they actually want a 50% margin. A 50% markup on a $40 product gives you a $60 selling price — but that's only a 33% gross margin, not 50%. If you're in a category with thin margins and you're running paid ads, that 17-point gap can be the difference between profitable and unprofitable.
To hit a specific gross margin, work backwards: Selling Price = Cost ÷ (1 - Target Margin). For a 50% margin on a $40 product, that's $40 ÷ 0.50 = $80.
How to price products on Shopify
Start with your cost, then layer in every fee that touches that product before you keep any money. Shopify's transaction fee runs 0.5–2% depending on your plan. Payment processing adds another 2.9% + $0.30 per transaction. If you're running paid ads, your customer acquisition cost needs to be factored into your effective margin — not as a fixed cost, but as a per-unit variable cost based on your conversion rate.
A product with a 40% gross margin that costs $15 in ads to sell (on a $60 selling price) has an effective margin of 15%. That's still profitable, but most store owners don't see that number until they look at a monthly P&L and wonder where the money went.
Industry gross margin benchmarks for retail
Apparel and clothing stores typically operate at 40–60% gross margin because the category supports premium pricing and customers are accustomed to it. Electronics run significantly thinner at 10–20% because the products are commoditized and consumers comparison-shop aggressively. Health and beauty tends to sit higher — 45–65% — because brand loyalty is stronger and repeat purchase rates reduce acquisition cost over time.
General retail benchmarks between 30–50%. If you're consistently below 30% gross margin, paid acquisition becomes very difficult to make profitable. Below 20% and you're essentially operating as a distributor without the volume advantages.
Using break-even analysis to make product decisions
Break-even units tells you the minimum sales volume required for a product or store to cover fixed costs. The formula: Fixed Costs ÷ Profit Per Unit. If your total monthly overhead is $4,000 and you make $20 profit per unit, you need 200 sales per month before a single dollar flows to your actual income.
Where this becomes powerful for Shopify stores is in SKU rationalization decisions. A product with a 15% margin and $3 profit per unit requires 1,333 monthly sales to justify $4,000 in overhead. A product with a 55% margin and $25 profit per unit needs only 160. The math alone should tell you where to focus catalog and ad budget.
Common questions about profit margin calculators
How to use this profit margin calculator tool
Install and connect
OAuth takes 30 seconds. ShelfMerge requests read_products and read_orders scopes — nothing more. No credit card required to get your first health score.
Five engines run in parallel
ShelfMerge syncs your order history and product catalog, then runs five analysis engines. Your first health score appears in under 60 seconds.
Act on what you find
See which products are dead weight, which variants to cut, and which products are stealing each other's sales. Act on insights or let ShelfMerge alert you weekly.
Common questions about profit margin calculator
What does the health score measure?
The health score is a weighted 0–100 number built from five signals: dead inventory percentage, products missing images, dead variants (zero sales), duplicate product count, and cannibalization severity. A score above 80 is healthy. Below 60 means real revenue is leaking somewhere in your catalog.
How does dead inventory detection work?
ShelfMerge analyzes sales velocity, days since last sale, and current inventory levels for every product. Each product is classified as thriving, slowing, dying, or dead. The dead inventory report shows the total dollar value tied up in stock that hasn't moved.
What is product cannibalization?
Cannibalization happens when two products in your catalog compete for the same buyer — one gets a sale and the other loses one. ShelfMerge detects this using Pearson correlation on weekly sales data. A high negative correlation between two products is a strong cannibalization signal.
Will ShelfMerge delete my products?
No. ShelfMerge is advisory only. Every insight is a recommendation, not an automated action. The Cleanup tab lets you merge duplicate products with a full undo option, but nothing is ever auto-deleted or archived without your explicit confirmation.
See margin across your entire Shopify catalog
ShelfMerge connects directly to your Shopify store and runs this analysis automatically — across your entire catalog, updated daily.
Free plan — no credit card required.