Features Integrations Pricing Calculator Blog Sign in Start free trial
PortuguêsEspañolEnglish简体中文
Margin and costs

Ideal price: start with the margin you want, not the competitor

The marketplace pricing formula divides, it doesn’t add. Add up your costs in reais—product, packaging, and shipping—and divide that total by 1 minus the sum of the percentages charged on the sale: commission, tax, Ads, and your desired margin. If you add the percentages to the cost, which feels intuitive, you end up with an 8% margin when you wanted 20%.

This isn’t just an accounting detail. It’s the difference between a store that grows and one that works hard but never sees the money.

#Why adding it up goes wrong

Because commission, tax, and ad spend are calculated on the sale price—and the sale price is exactly what you don’t know yet.

When you add 46% to your cost, you’re applying those 46% to a smaller base than the real one. The marketplace will charge on the higher number. The difference looks small, but it’s not.

In this example, I added 46% to R$ 55.55 in cost, packaging, and shipping of R$ 14.95—which is the shipping for a product close to R$ 100—and got R$ 81.10. At R$ 81.10, the real shipping drops to R$ 12.95, and even with that help, you’re left with just 8%.

I took a product with a cost of R$ 40, packaging of R$ 0.60, 12% commission, 6% tax, and 8% ad spend, aiming for a 20% margin:

Method Price found Actual margin
Add percentages to cost R$ 81.10 8,0%
Divide by the complement R$ 99.17 20,0%

Eighteen reais difference in price. Twelve margin points. Same product.

#The formula, written out

Preço = (custo + embalagem + envio) ÷ (1 − comissão − imposto − ads − margem desejada)

With the numbers from the example, and shipping of R$ 12.95 for a 300-gram package in the right price range:

(40,00 + 0,60 + 12,95) ÷ (1 − 0,12 − 0,06 − 0,08 − 0,20) = 53,55 ÷ 0,54 = R$ 99,17

Check it: at R$ 99.17, you pay R$ 11.90 in commission, R$ 5.95 in tax, R$ 7.93 in Ads, R$ 40.60 in product and packaging, and R$ 12.95 in shipping. You’re left with R$ 19.84, which is exactly 20%.

One thing that often trips people up: the sum of the percentages must be below 1. If commission, tax, Ads, and your desired margin add up to 100% or more, there’s no price that works. In that case, the problem isn’t pricing—it’s the product.

#The detail almost no one notices: there’s more than one right price

On Mercado Livre, shipping cost changes depending on the product’s price range. This creates a funny loop: the price sets the shipping, and the shipping sets the price.

In the example above, if I redo the math using the shipping from the next range, R$ 14.95, I get R$ 102.87. And here’s the curious part: both prices give you a 20% margin. R$ 99.17 with R$ 12.95 shipping, and R$ 102.87 with R$ 14.95 shipping. Both calculations work.

When this happens, pick the lower price. You keep the same margin and show up cheaper in the storefront. It’s a free win, and it only shows up for those who test more than one range instead of accepting the first number the formula spits out.

In practice. A home and bath store repriced 60 SKUs using the formula, then tested the next lower range for each one. In 19 of them, there was a lower price with the same margin. They lowered those 19 prices, and the store’s margin didn’t change at all—but conversion went up, because the storefront price looked better.

#Where the competitor fits in the calculation

It comes after, and only as a reality check.

The formula gives you the price your operation needs. The market tells you if that price will sell. When both match, great. When the market is much lower, you have four options—and none of them is "sell at a loss and make it up in volume": negotiate better with your supplier, reduce weight and packaging to lower shipping, accept a lower margin on this specific SKU, or drop the product.

Choosing a lower margin on purpose is a business decision. Finding out later that your margin was lower is an accident. The difference is doing the math first.

#Do this without opening a spreadsheet

The formula is simple, but no one applies it to fifty products a week, because commission varies by category, shipping varies by weight and price range, and everything changes when the marketplace updates its table.

Milewa’s profit calculator does this math in reverse: you enter the margin you want, and it gives you the price, already using the current tables from Mercado Livre and Shopee. And in the system, this ideal price is calculated for your whole catalog, automatically updated when the fee or your cost changes.

#Frequently asked questions

What’s the formula for marketplace sale price?

Price equals costs in reais divided by one minus the sum of the percentages. In other words: add up product cost, packaging, and shipping, and divide that total by 1 minus commission, minus tax, minus Ads percentage, minus your desired margin. Adding percentages to cost instead of dividing gives you a much lower margin than you planned.

Why does adding the fees to cost go wrong?

Because commission, tax, and Ads are charged on the final price, not the cost. When you add 46% to the cost, those 46% are calculated on a smaller base than the real charge. In an example with a 20% target margin, the added-up math gives you about 8%.

Can there be more than one price with the same margin?

Yes, when shipping cost changes by price range. In a 300-gram product example, both R$ 99.17 and R$ 102.87 give you a 20% margin, because at the higher price, shipping is also higher. In this case, pick the lower price: same margin for you, more competitive price in the storefront.

#Sources

Marketplace fees change. The numbers in this article are valid for the period mentioned — before setting your price, check the current table in your account.

Want to see these numbers with your own data?

Milewa pulls your orders from Mercado Livre and Shopee, applies commission, shipping, tax, ADS, and your cost, and shows the margin for each order and each SKU. You can start with the calculator and then connect your store.

Try it free with my store Open the calculator