14 min read · Published 2026-07-16 · Updated 2026-07-24
Gross Margin Calculator for Ecommerce Sellers: Gross Margin vs Net Margin
Use a gross margin calculator to compare gross margin vs net margin, learn the formulas, and see ecommerce examples before pricing a product.
Want to calculate gross margin from price and product cost?
Open gross margin calculator
Related calculator
Gross Margin CalculatorData example
Same product, different margin view
This example shows why a product can look strong with gross margin but become much thinner after the full ecommerce cost stack.
| Metric | Formula or cost line | Example result | What it tells you |
|---|---|---|---|
| Selling price | Revenue | $40.00 | Buyer pays $40 |
| Product cost | Cost of goods | $14.00 | Supplier cost only |
| Gross profit | $40 - $14 | $26.00 | Looks strong before selling costs |
| Gross margin | $26 / $40 | 65% | Good early screening signal |
| Shipping, fees, ads, returns, overhead | Added selling costs | $21.00 | Costs hidden by gross margin |
| Net profit | $40 - $35 total cost | $5.00 | Actual order profit |
| Net margin | $5 / $40 | 12.5% | Better operating decision metric |
Use gross margin to filter ideas quickly, then use net margin before ordering inventory, scaling ads, or choosing a sales channel.
Quick answer: gross margin is not net margin
Gross margin and net margin are two different profitability metrics. Gross margin tells you how much money remains after product cost or cost of goods sold. Net margin tells you how much money remains after all meaningful selling costs, including shipping, marketplace fees, payment fees, advertising, discounts, returns, and overhead.
This difference matters because many ecommerce sellers stop too early. They calculate selling price minus product cost, see a healthy gross margin, and assume the product is profitable. But a product can have a 60% gross margin and still lose money after FBA fees, TikTok creator commission, Shopify ads, Etsy offsite ads, return loss, or international shipping.
A gross margin calculator is useful for fast product screening. A net profit margin calculator is better before ordering inventory, scaling ads, choosing a marketplace, or deciding whether a SKU deserves more cash.
Gross margin calculator formula
A gross margin calculator only needs two inputs for the basic version: selling price and cost of goods sold. The formula is gross margin = (selling price - cost of goods sold) / selling price.
For example, if a product sells for $50 and cost of goods sold is $18, gross profit is $32 and gross margin is 64%. This means 64% of revenue remains before marketplace fees, fulfillment, ads, returns, discounts, and overhead.
For ecommerce sellers, the important decision is what you include in cost of goods sold. A beginner may use supplier cost only. A more conservative seller often uses landed cost, including product cost, packaging, inbound freight, duty, inspection, and damaged-unit allowance.
What is gross margin?
Gross margin measures the relationship between revenue and cost of goods sold. In a simple ecommerce model, cost of goods sold usually means the product cost you pay to the supplier. Depending on how detailed your accounting is, it may also include packaging, inbound freight, or landed cost. The key idea is that gross margin does not include most selling and operating costs.
The basic formula is: gross margin = (selling price - cost of goods sold) / selling price. Gross profit is the dollar amount: selling price - cost of goods sold.
Example: a product sells for $40 and the supplier cost is $14. Gross profit is $26. Gross margin is $26 / $40 = 65%. That looks healthy at first glance. But this number does not yet include marketplace referral fees, payment processing, shipping, advertising, returns, discounts, storage, or software.
What is net margin?
Net margin measures what is left after the full cost stack. For ecommerce sellers, that means starting with revenue, subtracting product cost, shipping, platform fees, payment fees, ad spend, refunds, discounts, return loss, packaging, software allocation, and any other order-level or allocated operating cost.
The basic formula is: net profit margin = net profit / revenue. Net profit = revenue - total costs. This is the metric that tells you whether the order actually creates money for the business.
Example: the same $40 product has a $14 product cost. Add $5 shipping, $6 marketplace and payment fees, $8 advertising cost, $1 return allowance, and $1 overhead allocation. Total cost becomes $35, net profit is $5, and net margin is 12.5%. The product still looks positive, but it is far less attractive than the 65% gross margin suggested.
Gross margin vs net margin: the practical difference
Gross margin is a screening metric. It helps answer: is there enough spread between selling price and product cost to keep researching this product? If gross margin is already weak, the product probably cannot survive shipping, ads, and platform fees.
Net margin is an operating metric. It helps answer: after all real costs, should I buy inventory, increase ad spend, reorder, or choose another sales channel? It is more useful for decisions involving cash, inventory, and growth.
A healthy ecommerce workflow uses both. Start with gross margin when scanning many product ideas. Then move to net margin before committing money. Finally, use a cross-platform comparison if you are deciding whether the product works better on Amazon, Etsy, Shopify, TikTok Shop, or another channel.
Why sellers often calculate the wrong profit
The most common mistake is treating gross margin as final profit. A seller may see a $20 selling price and $6 product cost, then assume there is $14 of profit. In reality, the product may still need to pay $3 in marketplace fees, $4 in shipping, $5 in ads, $1 in returns, and $1 in packaging or overhead. That turns a strong-looking product into a weak one.
The second mistake is ignoring percentage costs. Referral fees, payment fees, creator commissions, and affiliate commissions often scale with revenue. If you increase price, these costs may increase too. If you discount the product, they may still take a large share of remaining revenue.
The third mistake is comparing products across channels with only gross margin. A product with the same gross margin can produce very different net margin on Amazon, Etsy, Shopify, and TikTok Shop because each channel has different fee structure, traffic cost, and fulfillment expectation.
How to calculate both before choosing a product
Step one: calculate gross margin using selling price and product cost. If you source internationally, use landed cost instead of supplier quote whenever possible. A supplier quote alone can be too optimistic because it excludes freight, duty, inspection, packaging, and damaged-unit allowance.
Step two: calculate net profit margin by adding every realistic cost. Include marketplace fees, payment processing, fulfillment, shipping, advertising, returns, discounts, software, and overhead allocation. If you do not know a number yet, use a conservative placeholder rather than leaving it at zero.
Step three: compare scenarios. Test a lower selling price, higher ad cost, higher return rate, and worse exchange rate. If the product only works under perfect conditions, it may be too fragile. If it still has positive net margin under conservative assumptions, it is a stronger candidate.
What is a good gross margin for ecommerce?
There is no universal good gross margin because category, fulfillment, ads, and channel mix change the answer. A heavy item with paid ads needs more gross margin than a lightweight item with organic demand.
As a planning rule, if gross margin is below 40%, the product usually needs very efficient shipping and traffic. Between 40% and 60%, the product needs careful fee and ad checks. Above 60%, there may be room for ads, discounts, and operational mistakes, but net margin still decides.
The better question is not only whether gross margin is high. Ask whether gross margin is high enough to survive the exact platform you plan to use.
Use the calculators
Use the Gross Margin Calculator for quick product screening: /gross-margin-calculator. It is useful when you only know selling price and product cost and want to decide whether an idea deserves more research.
Use the Net Profit Margin Calculator before spending real money: /net-profit-margin-calculator. It helps you include shipping, fees, ads, returns, and overhead so the model is closer to reality.
If you are comparing channels, use the cross-platform profit comparison tool: /profit-comparison. The same product may look average on one platform and much stronger on another once fees and traffic costs are included.
Continue with a calculator
Turn the guide into a quick estimate with the related seller margin calculator.
Open calculatorFrequently asked questions
Is gross margin the same as net margin?
No. Gross margin usually compares revenue with product cost. Net margin subtracts the full cost stack, including shipping, fees, ads, returns, discounts, and overhead.
What is the gross margin formula?
Gross margin = (selling price - cost of goods sold) / selling price. Gross profit is selling price minus cost of goods sold.
What is the net profit margin formula?
Net profit margin = net profit / revenue. Net profit is revenue minus product cost, shipping, marketplace fees, payment fees, ads, returns, discounts, and overhead.
Which calculator should ecommerce sellers use first?
Use a gross margin calculator for quick product screening. Use a net profit margin calculator before buying inventory, scaling ads, or comparing marketplaces.
Can a product have high gross margin but low net margin?
Yes. This often happens when shipping, platform fees, advertising, returns, discounts, or fulfillment costs are high.
Recommended next guides
Keep going with practical pricing, fee, and margin guides that connect to this topic.
13 min read
Amazon Handmade Referral Fee Percentage 2026: 15% Fee, $0.30 Minimum, and Profit Calculator
Amazon Handmade charges a 15% referral fee or $0.30 minimum per unit shipped, whichever is greater. Learn the formula, Handmade vs FBA cost difference, pricing examples, and margin checks for artisan sellers.
12 min read
Free Amazon Referral Fee Calculator Spreadsheet: Category Rates, Minimum Fee, Handmade & FBA
Download a free Amazon referral fee calculator spreadsheet for Excel or Google Sheets. Estimate category fees, minimum referral fees, Handmade 15%, FBA fulfillment cost, ads, returns, profit, and net margin.
15 min read
Amazon Handmade vs Etsy Fees 2026: Which Is Better for Handmade Sellers?
Compare Amazon Handmade's 15% or $0.30 referral fee with Etsy listing, transaction, payment processing, and offsite ad fees. See examples, formulas, and when each channel can produce better handmade profit.
16 min read
TikTok Shop Brazil Fees 2026: Commission Change, R$4/R$6 Item Fee, and Profit Calculator
TikTok Shop Brazil changed seller fees on July 15, 2026. Learn the new commission rates, R$4/R$6 item fee, profit formula, and pricing actions for low-price and higher-price products.