Many new sellers watch the sales number and ignore what is left after costs. A product can sell well and still lose money. This guide shows you how to calculate profit margin for online selling, step by step. You will learn the difference between margin, markup and ROI, work through a full example with marketplace fees, and see which changes improve your numbers fastest.
What Is Profit Margin in Online Selling?
Profit margin is the share of your selling price that you keep as profit. If you sell an item for 100 and keep 20, your profit margin is 20%.
The key word is "keep". Margin is measured after every cost tied to that sale: the product, the marketplace fees, shipping, packaging and advertising. For a deeper definition, see this profit margin explainer from Cornell Law School.
There are two common versions:
- Gross margin counts only the direct cost of the product (what you paid the supplier or what it cost to make).
- Net margin counts all costs, including fees, shipping, ads and returns.
Net margin is the number that tells you whether a listing is worth your time. Gross margin alone is flattering and often misleading.
What Is the Profit Margin Formula?
The formula is simple:
Profit margin (%) = (Selling price - Total costs) / Selling price x 100
Total costs means everything you spend to sell that one unit. The result is always a percentage of the selling price, so a margin can never go above 100%.
For a more detailed look at how finance teams define it, the Corporate Finance Institute guide to profit margin is a good reference.
Work in one currency and one unit at a time. Calculate for a single item first, then multiply for monthly totals.
Margin vs Markup vs ROI: What Is the Difference?
These three terms are mixed up constantly, and the confusion costs sellers money. They use different bases, so the same sale gives three different percentages.
- Margin is profit divided by selling price. It answers: "How much of each sale do I keep?"
- Markup is profit divided by cost. It answers: "How far above my cost did I price this?"
- ROI (return on investment) is profit divided by the money you put in. It answers: "How hard is my money working?"
A 50% markup is not a 50% margin. If an item costs 10 and you add 50%, you sell at 15. Your profit is 5, and 5 divided by 15 is a 33.3% margin.
Marketplace fees are charged on the selling price, so margin is the safer number to plan with. Use markup only as a quick pricing shortcut, and use ROI when you compare where to spend limited cash, such as stock for two different products.
How Do You Calculate Profit Margin Step by Step?
Follow these steps for every product:
- Write down the selling price.
- List every cost per unit: product, marketplace fee, shipping or fulfilment, packaging, advertising.
- Add the costs together.
- Subtract total costs from the selling price. That is your profit per unit.
- Divide profit by the selling price, then multiply by 100.
The hard part is step 2. Most sellers remember the product cost and the main fee, then forget smaller items. The guide to hidden costs online sellers forget lists those smaller items.
Worked Example: A Full Margin Calculation
Here is an illustrative example. These numbers are round and made up for teaching. They are not current official fees, so always confirm your own fees on the marketplace's official page.
Say you sell a kitchen gadget at 30.00. Your costs per unit are:
| Cost item | Amount |
|---|---|
| Product cost (landed, delivered to you) | 9.00 |
| Marketplace referral fee (assume 15% of 30.00) | 4.50 |
| Shipping or fulfilment | 5.50 |
| Packaging | 0.50 |
| Advertising per unit sold | 2.00 |
| Total costs | 21.50 |
Check the fee: 30.00 x 0.15 = 4.50. Check the total: 9.00 + 4.50 + 5.50 + 0.50 + 2.00 = 21.50.
Now the profit and margin:
- Profit = 30.00 - 21.50 = 8.50
- Net margin = 8.50 / 30.00 = 0.2833, or 28.3%
Here is how the other measures look for the same sale:
- Gross margin (product cost only) = (30.00 - 9.00) / 30.00 = 21.00 / 30.00 = 70.0%
- Markup on total cost = 8.50 / 21.50 = 0.3953, or 39.5%
- ROI on the product purchase = 8.50 / 9.00 = 0.9444, or 94.4%
The same sale is a 70% gross margin, a 28.3% net margin, a 39.5% markup and a 94.4% ROI. None of these is wrong. They answer different questions. Only the 28.3% tells you what share of each sale you really keep.
Now scale it up. If you sell 200 units a month, profit is 200 x 8.50 = 1,700. Remember this is before any fixed monthly costs, such as software, storage or a professional seller plan. Subtract those to see what the business really earns.
What Are the Most Common Profit Margin Mistakes?
Using gross margin as if it were net margin
In the example, a seller who stops at "price minus product cost" sees 70%. The real figure is 28.3%. That gap is how sellers end up busy but broke.
Forgetting fixed per-order fees
Some marketplaces add a small fixed fee per order or per item, on top of a percentage. Read the fee pages for your platform, such as our guides to how Amazon FBA fees work and eBay final value fees.
Ignoring returns and refunds
A returned item can mean a lost sale, return shipping and a product you cannot resell. Even a small return rate lowers the average profit per unit. Add an allowance for it.
For example, if you expect 1 order in 20 to come back, and each return costs you 8.00 in lost shipping and fees, the average cost is 8.00 x (1/20) = 0.40 per unit. That is small per sale but adds up across a month of orders.
Leaving out advertising
If ads drive your sales, ad cost per sale belongs in total costs. Divide your ad spend by the units sold to get a per-unit figure.
Mixing currencies or tax treatment
Compare like with like. Decide whether your prices include sales tax or GST, and keep the same treatment in every line. If you buy in one currency and sell in another, convert at a realistic rate and add the exchange cost.
Confusing markup with margin
Pricing at "cost plus 30%" does not give you a 30% margin. It gives you roughly 23%. Fees then reduce it further.
How Can You Improve Your Profit Margin?
You have three main levers: raise the price, lower product cost, or lower selling costs. Test each one on your own numbers. Using the example above:
| Change | Working | New profit | New margin |
|---|---|---|---|
| Starting point (price 30.00) | 30.00 - 21.50 | 8.50 | 28.3% |
| Raise price to 32.00 | Fee becomes 4.80; costs 21.80; 32.00 - 21.80 | 10.20 | 31.9% |
| Cut product cost by 1.00 | Costs 20.50; 30.00 - 20.50 | 9.50 | 31.7% |
| Cut ad cost per unit to 1.00 | Costs 20.50; 30.00 - 20.50 | 9.50 | 31.7% |
Notice that a 2.00 price rise adds 1.70 profit, not 2.00, because the percentage fee rises with the price. Check that math: 32.00 x 0.15 = 4.80, and 9.00 + 4.80 + 5.50 + 0.50 + 2.00 = 21.80.
Other practical ways to lift margin:
- Order in larger batches if the supplier lowers the unit price and you can afford the stock.
- Choose packaging that is lighter or smaller, which can reduce shipping or fulfilment charges.
- Bundle two items so shipping and fees are spread over a bigger order.
- Pause ads on listings that do not repay their cost.
- Compare platforms. The same product can have a different margin on each, as shown in our Amazon vs Flipkart comparison.
If you list on more than one marketplace, read how to price products for multiple marketplaces so each channel earns its keep.
What Is a Good Profit Margin for Online Sellers?
There is no single right answer. It depends on your category, order volume, product price and how much repeat business you expect. Low-priced items need a higher percentage because a small fixed cost can swallow the profit.
Instead of chasing a number you read somewhere, set your own floor. Ask what monthly profit you need, how many units you can realistically sell, and what margin that implies. Then check that your price still looks fair to buyers.
Your floor is closely tied to your break-even point, the price where profit is exactly zero. Learn to find it in how to find your break-even price.
Which Calculator Should You Use?
Doing this by hand once is useful. Doing it for fifty products is not. A fee calculator applies each platform's fee structure for you and shows profit and margin in seconds.
- Selling on Amazon: try the Amazon FBA profit calculator.
- Selling in India: use the Flipkart profit calculator or the Meesho profit calculator.
- Other marketplaces: see the eBay profit calculator and the Etsy profit calculator.
To see all platforms and their fee sources, visit the Amazon hub or browse the full guides library.
Key Takeaways
- Profit margin is profit divided by selling price. Net margin, after every cost, is the number that matters.
- Margin, markup and ROI use different bases. A 50% markup equals only a 33.3% margin.
- List every cost per unit: product, fees, shipping, packaging, ads and a returns allowance.
- Percentage fees grow with your price, so a price rise does not turn fully into profit.
- Small changes in price, product cost and ad spend can add several points of margin.
Ready to test your own numbers? Pick the calculator for your marketplace from the list above, enter your price and costs, and compare the result with what you worked out here.