A product page shows a price, not a profit, and plenty of struggling stores are short of margin without knowing it. The cure is a per-product margin built from landed cost, fees, shipping and marketing. Ten minutes per item once you have the formula. Below: the formula, a worked mug example in invented numbers, and the pricing decisions it unlocks.
Margin is not markup, and the difference costs money
People swap these two words constantly. Markup is profit divided by cost. Margin is profit divided by selling price. A product that costs 10 and sells for 20 has a 100 percent markup and a 50 percent margin. Same product, very different-sounding numbers.
Use margin. It says how much of each sale you keep, and it lines up with ad budgets, discount depth and payment fees, all of which take a share of the price. Price by markup and you may overspend on ads and promotions without noticing, because you are dividing by the wrong number.
The formula, in one line
Per-unit profit equals selling price minus every cost that exists because that unit was sold. Margin equals that profit divided by the selling price, expressed as a percentage.
The work hides in the phrase “every cost”. Most founders count the purchase price and maybe shipping, then stop. A useful margin covers five buckets: landed cost (supplier price plus freight, duties and prep), fees that scale with the sale, shipping and packaging, returns and breakage, and the cost of getting the customer to buy. They come in that order below.
Bucket one: landed cost, not purchase price
Landed cost is what a unit has cost by the time it sits on your shelf ready to ship: supplier price, freight to your door, import duties and taxes where they apply, inspection or prep fees, and any currency conversion cost. Spread shipment-level charges across the units in that shipment.
The math is plain division. Total everything you paid to get a batch delivered, then divide by sellable units. Sellable is the key word. If some arrive damaged, divide by the good ones, since the losses have to be earned back by the units you can sell.
Duties and import taxes vary by country, product category and trade agreement, and they change. This is general information, not tax or customs advice. Check current rules for your route or ask a customs broker.
A worked example, with made-up numbers
Say a founder sells a hypothetical ceramic travel mug for 28. Everything below is illustrative, so swap in your own figures.
| Line | Per unit (hypothetical) |
|---|---|
| Supplier price | 6.00 |
| Freight and duties, spread across the batch | 1.50 |
| Landed cost | 7.50 |
| Payment fee (assume 3 percent of price plus a fixed 0.30) | 1.14 |
| Box, filler and label | 1.10 |
| Outbound postage paid by the store | 4.80 |
| Allowance for returns and breakage | 0.70 |
| Total cost before marketing | 15.24 |
| Profit before marketing | 12.76 |
That is a 45.6 percent margin before marketing on a price of 28 (12.76 / 28). Healthy-looking. Now charge the customer’s acquisition cost. If the store spends 9 on advertising for each order it wins, profit drops to 3.76, about 13 percent of the price. Same mug, same store, a different business.
The other four buckets
Bucket two: fees that scale with the sale
Payment processors usually charge a percentage plus a fixed amount per transaction, and marketplaces and some platforms add a commission or transaction fee on top. The percentage part grows with price, so no single fee figure fits every product. Calculate it item by item.
The fixed part hurts cheap products most. A small flat charge takes a visibly bigger bite from a low-priced item than from a premium one. Check low-ticket accessories separately. That is where margin tends to disappear.
Look up your own processor and platform rates in your account. Borrow nothing from an article, this one included, because tiers, regions and card types change what you pay.
Bucket three: shipping and packaging, honestly counted
Offer free shipping and the postage is your cost, so it goes in the table. Charge for shipping and count only the difference between what you collect and what you pay. Either way, price packaging per order: box, filler, tape, label, insert card. Each is trivial. Together they can take a noticeable slice of a mid-priced order.
Weight and size bands matter. A product that edges over a carrier’s weight or dimension limit can jump a pricing band. Weigh the packed parcel, not the bare product, and use the carrier’s current rate card.
Bucket four: returns, breakage and the unsold
People skip this bucket because it feels like bad luck. It is cost. Estimate it from your own history: refunds issued, items lost in transit, units stranded out of season. A new store with no history can start from a conservative placeholder and replace it once a few dozen orders have come through.
A return refunds more than the price. You may also lose the outbound postage, pay return postage and write off a unit that cannot be resold. Some stores model all of this as a flat allowance per unit sold, like the 0.70 in the table. Imperfect, and still better than zero.
Bucket five: marketing, and the break-even number it creates
Treat acquisition as a cost per order, not a side issue. Divide ad spend by the orders it produced, and add creative and tool costs for the full picture.
Then flip the question. With profit before marketing of 12.76, the most you can spend to win one order and break even is 12.76. That is your break-even acquisition cost, and it is more useful than any target someone quotes at you. Orders you can reliably win below it make money. Orders above it cost money.
Fixed costs: allocate, but separately
Software subscriptions, your own time, accounting and insurance are real costs that do not belong in per-unit margin. Track them at business level against total contribution, the profit left after all per-unit costs. If contribution cannot cover them, no pricing trick will.
Turning the number into pricing decisions
Margin per product makes three decisions easier. Pricing first: work backwards from the margin you need. Price equals total per-unit cost divided by one minus the target margin. With cost at 15.24 and a 50 percent margin before marketing, the price is 30.48 (15.24 / 0.5). Round to a price point that suits the product.
Second, discounting. Costs stay put, so a discount comes straight off profit. Take the 12.76 profit: a 10 percent discount of 2.80 leaves 9.96, a fall of more than a fifth in profit for a tenth off the price. Do this arithmetic before a sale, not after.
Third, pruning the range. Sort products by margin after costs. The bottom of that list may be full of bestsellers, which makes it feel important. Yet a bestseller on a thin margin can swallow ad budget that would earn more elsewhere.
Bundles, variants and marketplaces
Variants of one product often carry different costs. A larger size weighs more and ships dearer, and a rare colour may come from a pricier batch. Give each variant its own row when the difference exceeds a few percent of price, so the sheet shows which ones carry the product.
Bundles need the same care. Add the landed costs of every item, then count one parcel and one payment fee, not two. Shared shipping and fees can lift margin, provided the bundle discount does not eat the saving.
If you also sell on a marketplace, add its commission as a separate line and keep a second margin column. The same mug can be a good product on your own site and a poor one on a platform that takes a larger cut.
Build the sheet once, then maintain it
A spreadsheet will do: one row per product, one column per cost line, formulas for the fee percentage and the margin. Mark every variable you cannot pin down as an estimate so you remember which numbers deserve checking.
Refresh it whenever something moves: a supplier quote, a carrier rate, a fee, a packaging choice. Set a quarterly reminder even if nothing seems to have changed. Costs creep.
Margin mistakes that look like success
- Using purchase price in place of landed cost, which flatters every margin you calculate.
- Pricing by markup, then discovering that percentage-based fees and ads eat a bigger share than expected.
- Ignoring the fixed per-transaction fee on low-priced items.
- Counting free shipping as marketing instead of as a cost of goods sold.
- Leaving returns out because they are hard to predict, rather than using a conservative estimate.
- Copying another store’s margin target. Their costs are not yours.
Fill in the table for your bestseller
Take your best seller and fill in every line of the table with real figures, postage and payment fee included. Then work out the most you can spend to win one order and still break even. Cannot name that number? You do not yet know whether your ads are working. This is general information, not financial or tax advice.
Frequently asked questions
What is a good profit margin for an online store?
There is no single figure that works across categories, and published benchmarks vary widely and are hard to verify. A better test is whether profit after all per-unit costs, including marketing, covers your fixed costs with room left over. Calculate your own break-even first, then set targets above it.
Should I include ad spend in product margin?
Show both views. Profit before marketing tells you how much room you have to acquire a customer, and profit after marketing tells you what you actually keep. Looking at only one hides either a pricing problem or an advertising problem.
How do I handle shipping if I offer free shipping?
Count the postage you pay as a cost on that order, alongside packaging. Do not treat it as marketing that sits outside the margin. If shipping is charged to the customer, count only the difference between what you collect and what you pay.
How often should I recalculate margins?
Quarterly is a reasonable minimum, and any time a supplier price, carrier rate, payment fee or packaging choice changes. Costs drift quietly, and a margin that was healthy last year may not be now.
Do I need accounting software for this?
No. A spreadsheet with one row per product and a column per cost line is enough to start. Accounting software helps later with fixed costs and reporting, but it is not required to find your unit margin.