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 from the Shopify App Store
OAuth takes 30 seconds. ShelfMerge requests read_products and write_products scopes — nothing more. No credit card for the Free plan.
Run your first scan
ShelfMerge pulls your full product catalog and runs all three detection layers simultaneously. A 2,000-product store scans in under 8 seconds.
Review duplicates, merge in bulk
Duplicates are grouped by confidence score. Select a group, pick the primary product, click Merge. The duplicate is archived and variants consolidated. Click Undo at any time.
Common questions about profit margin calculator
Will ShelfMerge permanently delete my products?
No. ShelfMerge archives the duplicate product — it moves to Archived status in your Shopify admin and remains fully recoverable. Before any merge, ShelfMerge creates a complete snapshot of both products. You can restore to the exact pre-merge state from the Merge History tab at any time.
How does fuzzy title matching work without creating false positives?
We use Levenshtein distance with a configurable threshold (default 85% similarity). Every match is assigned a confidence score from 0-100%. Matches above 95% are "High confidence". Matches below 70% are flagged "Review needed". You always see the score before deciding to merge.
Does ShelfMerge work with stores that have thousands of products?
Yes. We use cursor-based pagination against the Shopify Admin API with a built-in rate limiter (2 req/s, burst 40). A 10,000-product store scans in under 60 seconds. The Agency plan is tested against catalogs up to 50,000 products.
What happens to variant inventory when I merge products?
Variants from the duplicate are consolidated onto the primary product. Inventory quantities are summed. Pricing, weight, and fulfillment settings from the primary product take precedence. The merge preview shows exactly which variant data will change before you confirm.
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.