How to Calculate Selling Price

Most pricing mistakes come from working forward from cost with a rough markup instead of working backward from a target margin — the difference sounds subtle but changes the actual number you land on.

By Marginory team · Online sellers with hands-on experience across Etsy, Shopify & PODUpdated Fee data verified against official platform documentation

The backward pricing formula

Price = Total cost ÷ (1 − Target margin %)

"Total cost" should include everything that comes out of the sale before profit — product cost, platform fee, shipping you absorb, and packaging. Leaving any of these out means your actual margin will land below your target, sometimes significantly.

Worked example

Product cost $12, platform fee 10%, shipping absorbed $2, target margin 25%:

Total cost (product + shipping)$14.00
Denominator (1 − 0.25 − 0.10)0.65
Required price$21.54

Run this formula with your own numbers →

Why a flat markup falls short

If you instead add a flat 25% markup to the $14 cost, you get $17.50. After the 10% platform fee ($1.75), your actual margin drops to roughly 20%, not the 25% you were aiming for. The gap between markup-based and margin-based pricing grows as the fee percentage grows — which is exactly why platforms with higher combined fees (marketplaces with affiliate commission on top, for example) punish markup-only pricing the hardest.

Sanity-checking your result

Once you have a price, verify it against a competitive check — is it in line with what similar products sell for in your niche? If the formula produces a price well above market rate, you may need to either reduce your cost inputs, accept a lower target margin, or confirm the product has enough differentiation to support a premium.

Find your absolute floor price first →

Frequently Asked Questions

What's the formula for calculating selling price?
Price = Total cost ÷ (1 − Target margin %). This works backward from your desired margin, unlike a flat markup approach that adds a fixed percentage to cost regardless of what fees or other costs will later be deducted.
What counts as 'total cost' in this formula?
Product/material cost, any platform selling fee, shipping you absorb, and packaging — everything that gets deducted from the sale before you see actual profit. Leaving out any of these overstates your real margin.
Why not just add a markup percentage to cost?
A flat markup on cost doesn't account for the platform's fee being a percentage of the final price, not your cost — so a markup-based price typically delivers a lower actual margin than intended once fees are deducted.