Profit Margin Calculator
Calculate profit margins for e-commerce products. Analyze all costs including shipping, ads, and expenses to get real profitability insights.
What is a profit margin?
A profit margin is the percentage of revenue that remains once your costs are paid. It answers the only question that really matters in e-commerce: how much do you actually keep from every sale? Revenue is vanity — a store can generate $100,000 a month and still lose money if its margins are broken.
Two levels matter for an online store:
- Gross margin — what's left after the direct cost of the product (COGS: purchase price, manufacturing, packaging).
- Net margin — what's left after all costs: product, shipping, payment fees, advertising, apps, returns and overheads.
Most stores only track gross margin and get a nasty surprise at the end of the month. The gap between the two is where e-commerce businesses quietly die: a product with a comfortable 70% gross margin can easily end up with a 5% net margin once ads and shipping are paid.
Profit margin formula: how is it calculated?
The two formulas used by the calculator are:
- Gross margin (%) = (Revenue − COGS) ÷ Revenue × 100
- Net margin (%) = (Revenue − Total costs) ÷ Revenue × 100
where total costs include the product cost plus every additional expense tied to the sale: shipping, transaction fees, advertising spend, and operating expenses.
Margin calculation examples in e-commerce
Example 1 — A healthy product
- Selling price: $60
- Product cost: $15
- Shipping + fees: $8
- Ad cost per sale: $18
Result: $19 net profit per sale, a 31.7% net margin. This product can absorb rising ad costs and still stay profitable.
Example 2 — A trap product
- Selling price: $25
- Product cost: $8
- Shipping + fees: $6
- Ad cost per sale: $12
Result: a $1 loss on every sale. A 68% gross margin, and the store still loses money — this is exactly why net margin is the number to watch.
How to use the profit margin calculator?
- Choose your currency ($, € or £).
- Selling price — the price your customer pays.
- Product cost — purchase or production cost per unit.
- Additional costs — shipping, payment processing, advertising per sale, and any other expense.
The calculator instantly returns your profit per sale, your gross margin and your net margin, so you can see in seconds whether a product deserves your ad budget.
Tip: run the numbers before testing a product. A product that needs everything to go perfectly to break even is not a product — it's a gamble.
What is a good profit margin in e-commerce?
Benchmarks vary by niche, but as a rule of thumb:
- Net margin < 5%: fragile — one ad-cost spike wipes you out.
- 5% to 10%: average — viable at volume, but watch every cost line.
- 10% to 20%: good — the range most healthy DTC stores live in.
- > 20%: excellent — you have real room to scale ad spend.
For paid acquisition, most media buyers look for at least a 3× markup between product cost and selling price, so the margin can absorb the real cost of ads.
How to improve your profit margin?
- Negotiate your COGS — even $1 saved per unit goes straight to net profit.
- Raise average order value — bundles, upsells and free-shipping thresholds spread fixed costs over a bigger basket.
- Cut shipping waste — lighter packaging and the right carrier tier often save several points of margin.
- Kill unprofitable ads — track your break-even ROAS and cut campaigns below it.
- Sell products with proven demand — that's what Trendtrack is for: finding winning products with healthy economics before you spend a dollar.
Go further with Trendtrack
Margin tells you whether each sale makes money. Trendtrack tells you which products are worth selling in the first place: spot winning products, analyze competitor stores and see which ads are scaling — updated every 24 hours.
Discover our other free tools too:
Know exactly what you're making and what you're losing.
Frequently asked questions
Can't find the answer to your question?
Contact us by clicking here.
TrendTrack is the ecommerce intelligence platform built around one obsession: giving you the most accurate, most current market data available. Every store, every ad, every mail, every spend signal, updated every 24 hours. Because knowing what's winning in ecom right now is only useful if "right now" actually means right now.
Most tools show you what was working last month. We show you what's working today. Our infrastructure scans the entire Shopify and Meta ecosystem daily, 2 to 3 million new ads indexed every 24 hours. No delays, no editorial filters, no subjective picks. Just the market, live.
Anyone who makes ecom decisions and can't afford to be wrong. Beginners validating a product before spending a dollar. Operators whose ads are burning out and need fresh angles. Brands and agencies that need to see market shifts before they happen. If your decisions depend on knowing what's actually working right now, this is your tool.
It's one of the best ways to de-risk your first moves. Instead of guessing, you can see exactly which products are gaining traction, which ads are scaling, and which niches are heating up, all in real time. You're not betting on a hunch. You're betting on live market signals.
Yes. The fastest way to find a new angle is to see what's already working, across your niche and beyond. TrendTrack gives you access to millions of active creatives, ranked by performance signals, updated daily. The next winning hook is already running somewhere. We help you find it.
All our data comes directly from real sources, no invented numbers, no estimates pulled from thin air. Ad spend is sourced straight from Meta's own data. Store traffic is powered by SimilarWeb, the industry's most reliable traffic intelligence provider. Refreshed every 24 hours, it gives you the most accurate read of what's scaling right now, strong enough to spot winners, track emerging brands, and flag trends before they peak.
It depends on your plan. Each plan comes with its own access levels and usage capabilities. Before subscribing, we recommend checking our pricing page to make sure you pick the plan that fits your needs.
Yes. No commitment, no lock-in. Cancel directly from your account whenever you want.
Ready to build a million-dollar brand?
.avif)




