Pricing Calculator
Calculate a selling price from your unit cost and a profit target. The calculator works in either direction: set a target margin or markup to get a price, or enter a price to see the profit it leaves.
Pricing formula
The two standard cost-based pricing methods give different prices from the same target percentage:
- Price from target margin:
price = cost / (1 - margin / 100) - Price from target markup:
price = cost x (1 + markup / 100)
Margin measures profit against the selling price, while markup measures it against cost (margin = profit / revenue, markup = profit / cost). Pricing for a 40% margin therefore requires more than adding 40% to cost. When percentage-based selling fees apply, extend the margin formula so the fee is priced in: price = cost / (1 - margin / 100 - fee rate / 100).
Worked example
A product costs 24 per unit and the seller wants a 40% margin.
- Price:
24 / (1 - 0.40) = 24 / 0.6 = 40 - Profit:
40 - 24 = 16, and16 / 40 = 40%, confirming the margin - The same price expressed as markup:
16 / 24 = 66.7%
Now add a selling fee of 12% of the price, used here purely as an example value. To keep the full 40% margin after the fee: price = 24 / (1 - 0.40 - 0.12) = 24 / 0.48 = 50. At 50, the fee is 6, leaving 50 - 6 - 24 = 20 of profit, and 20 / 50 = 40% as intended.
When to use this calculator
- Listing a new product. Turn landed cost and a margin target into a concrete asking price instead of guessing and checking later.
- Selling through a marketplace. Price fees in from the start so commission and payment processing come out of the price, not out of your margin.
- Repricing after a cost change. When a supplier raises prices, recompute rather than adding the increase in absolute terms, which silently shrinks your margin percentage.
- Sanity-checking a competitor-matched price. If matching the market means accepting a thin margin, this shows exactly how thin before you commit.
Common mistakes
- Using the markup formula to chase a margin target; a 40% markup on cost delivers only about a 28.6% margin.
- Pricing from purchase cost alone. Freight, duties, packaging, storage, and payment fees all belong in the unit cost you price from.
- Forgetting percentage fees compound with discounts: a discounted price cuts both your revenue and the margin the fee formula assumed.
- Copying competitor prices without knowing their costs; a price that works for a high-volume seller may be below your break-even.
- Never revisiting prices. Costs drift upward over time, and a price set two years ago may quietly be earning half its original margin.
Related calculators
The contribution margin calculator shows what each sale at your chosen price contributes after variable costs, and the Etsy fee calculator estimates the platform fees to price in. The discount percentage calculator helps plan promotions from your list price, while the ROAS calculator and customer lifetime value calculator connect pricing to advertising efficiency and long-run customer value.