The real cost of an e-commerce product is the sum of the acquisition or production cost, plus inbound freight, plus the share of ad spend that generated that sale, plus platform and payment method fees, plus the financing cost of installments, plus a reserve for returns. The price you paid the supplier is only the starting point — in many cases it's less than 60% of the total cost.
Why isn't the purchase price the real cost of a product?
When you ask "how much did this product cost me?", the instinctive answer is the price you paid the supplier. That number ignores everything you needed to get that product into the buyer's hands and turn it into revenue. In e-commerce there are at least six layers of cost that pile up between buying from the supplier and net profit.
Getting cost wrong isn't an academic problem: it determines what selling price you set, how much margin you have for discounts, how much you can spend on ads and whether that product makes sense in your catalog. If you underestimate cost, you can sell a lot and lose money on every sale without noticing for months.
What are the components of a product's real cost?
1. Acquisition or production cost
The price you paid the supplier (or the raw material cost if you manufacture). If you import, it includes the exchange rate, import duties, customs fees and the financing cost of capital tied up while the stock is in transit.
2. Inbound freight to the warehouse
The cost of bringing the merchandise from the supplier to your warehouse or fulfillment stock. If the supplier doesn't include shipping in the price, it's a cost of yours that has to be spread per unit.
3. Customer acquisition cost (ad spend per sale)
How much did you spend on ads to generate that sale? If you spend $100,000 on Meta and sell 50 units of a SKU, the ad cost per unit is $2,000. This is the component that varies the most and gets ignored the most. A 4x ROAS sounds good until you add up everything else.
4. Platform and payment method fees
If you sell on Tiendanube, there's a transaction fee (0.7% to 2% depending on the plan) plus the payment method fee. If you sell on Mercado Libre, the fee is higher (11.8% to 17.14% depending on the category) plus a fixed charge. These percentages apply to the selling price, so they reduce your net revenue per order.
5. Cost of interest-free installments
If you offer 3, 6 or 12 interest-free installments, you finance the difference. Mercado Pago charges an additional surcharge of 10.49% (3 installments) to 41.59% (18 installments) on the selling price, on top of the base fee. If your average ticket includes installments, ignoring this cost makes you think you have more margin than you really do.
6. Shipping to the customer and prorated returns
If you absorb the shipping cost (free shipping), it's a cost of yours. Returns are a percentage of your sales that gets lost: if 3% of orders are returned and each return costs you the product plus the return freight, that percentage has to be spread over every sale to calculate the real cost.
The real product cost formula
Real cost = Acquisition price + Inbound freight + Ad spend per unit + Platform fees + Installment cost + Shipping to customer + Prorated returns
Real gross margin is: Selling price − Real cost. The percentage margin is that result divided by the selling price, multiplied by 100.
Worked example: the cost of a $30,000 product
Say you sell a product for $30,000, buy it from the supplier for $12,000, and sell mainly on Tiendanube with Mercado Pago (18-day payout) and the option of 3 interest-free installments.
| Cost component | Calculation | Amount |
|---|---|---|
| Acquisition price | supplier price | $12,000 |
| Inbound freight | estimated per unit | $500 |
| Tiendanube fee, Impulso plan (1%) | 1% × $30,000 | $300 |
| Mercado Pago fee, 18 days (3.39%) | 3.39% × $30,000 | $1,017 |
| 3 interest-free installments surcharge (10.49%) | 10.49% × $30,000 | $3,147 |
| Shipping to customer (estimated) | — | $2,500 |
| Meta Ads spend per sale (4x ROAS) | $30,000 / 4 | $7,500 |
| Prorated returns (3%) | 3% × ($12,000 + $2,500) | $465 |
| Total cost | $27,429 | |
| Real gross margin | $30,000 − $27,429 | $2,571 (8.6%) |
An 8.6% margin on a $30,000 sale. Meta Ads spend and installments together come to $10,647 — more than a third of the selling price. Many sellers see the 4x ROAS in Meta and think they're doing well. That ROAS doesn't deduct any of the other components above.
What about fixed costs? Do they go into the product cost?
The model above is the variable cost per sale. But there are fixed costs that also have to be spread across every unit sold: team salaries, warehouse rent, management tools, software licenses, marketing agency fees. To know whether your store is truly profitable, you need to calculate not just the gross margin per product but the contribution margin and net profitability of your e-commerce business.
How do you calculate this in practice without losing your mind?
The manual way is a spreadsheet: you enter each cost component for each SKU and update them by hand whenever the supplier price, the exchange rate, the platform fee or your ad spend changes. Any error in one number contaminates the whole projection. Most e-commerce owners who try it give up within a few weeks.
The automated way is to connect your store to a tool that reads your orders in real time and applies the costs to each one. Escalafy does this: it connects Tiendanube, Shopify and Mercado Libre, reads each channel's fees and shows you the real margin by product and by SKU without you having to calculate anything. It also deducts Meta Ads spend by campaign to give you real ROAS or Blended ROAS. See how it works in Profitability by product in Escalafy.
Frequently asked questions about product cost
Is advertising part of the product cost?
It depends on how you define "cost." Ad spend is a variable cost directly tied to generating sales, so it affects the margin of every unit sold. To know whether a product is profitable with your current ad strategy, you have to include it. If you leave it out, you have the gross margin before ad spend — useful for comparing products with each other, but not for knowing whether you make or lose money.
How do I include the cost of installments if I don't know how many buyers choose them?
Use your store's historical average. If 40% of your sales are in 3 installments, 30% in 6 and the rest in a single payment, you can calculate a weighted average financing cost. Escalafy applies the real installment cost of each order individually, no averages.
How do I calculate the cost if I manufacture the product?
Manufacturing cost includes raw materials, direct labor, supplies and a share of fixed production costs divided by the units produced. To the manufacturing cost you apply the same steps as for a purchased product: freight, fees, ad spend, installments, shipping.
What's the difference between markup and margin?
Markup is the percentage applied to cost to arrive at the selling price. Margin is the percentage of profit on the selling price. A 100% markup doesn't give you a 100% margin — it gives you a 50% margin. To understand the difference with examples, read Markup vs. margin: the difference that changes your prices.
Do I have to recalculate cost when the exchange rate rises?
If you import or your costs are in dollars, yes. Every move in the exchange rate changes the acquisition cost of your stock. In Argentina this is frequent, and it's one of the main reasons static cost spreadsheets go out of date in days.
Why does my product profitability in Excel never match what hits the bank?
Because the spreadsheet doesn't capture each order's variable costs (installments chosen by the buyer, actual platform fees, shipping variations) and usually underestimates ad spend. Every time there's a gap between what you calculated and what arrived, a cost component was left out. Revenue vs. profit: why selling more doesn't always mean making more.
Keep reading
What Escalafy does for your store
Connect your channels and see the truth behind your numbers. No Excel, in real time.