How to set a selling price from your cost
To set a selling price from cost, pick either a margin target or a markup target, then solve with the matching formula. Margin uses price = cost ÷ (1 − margin ÷ 100). Markup uses price = cost × (1 + markup ÷ 100). After you publish a price, a discount cuts that price and usually cuts the margin you keep. The profit margin and markup calculator solves both pricing paths and can show the margin after an optional discount percent.
The walkthrough below is general information. It is not business advice for your catalog, contracts, or books.
A short pricing checklist
- Write down unit cost in the currency you sell in (no conversion tricks on this page).
- Choose the target type: margin (share of price) or markup (uplift on cost).
- Solve for price with the formula that matches that target.
- If you plan a sale discount, recompute margin on the discounted price before you advertise the cut.
- Optional: multiply by quantity for totals, or enter fixed costs only when you want a break-even unit count.
Naming the target type in step 2 matters more than which calculator you open. For the percentage comparison itself, see profit margin vs markup explained.
Path A: price from a margin target
price = cost ÷ (1 − margin ÷ 100)
Margin must stay below 100%. At 100% the denominator is zero, and the tool rejects that input.
Worked example: cost 18, margin 40%
- Denominator = 1 − 0.40 = 0.60.
- Price = 18 ÷ 0.60 = 30.
- Profit = 30 − 18 = 12.
- Markup on that sale = 12 ÷ 18 × 100 = 66.6667%.
The library confirms price 30, margin 40%, markup 66.6667%. You asked for margin, so the headline number to report is 40% of price, even though markup looks larger.
How a discount changes that margin
Keep cost at 18 and list price at 30. Apply a 15% discount on price only.
- Discounted price = 30 × (1 − 0.15) = 25.50.
- Profit = 25.50 − 18 = 7.50.
- New margin = 7.50 ÷ 25.50 × 100 ≈ 29.4118%.
- New markup = 7.50 ÷ 18 × 100 ≈ 41.6667%.
Verified in the calculator with the discount field: after a 15% cut, margin falls from 40% to about 29.4118%. The discount did not change cost. It changed the base that margin uses. Holding the old 40% label on the discounted ticket would be wrong.
Path B: price from a markup target
price = cost × (1 + markup ÷ 100)
Worked example: cost 40, markup 25%, then a 10% discount
- Price = 40 × 1.25 = 50.
- Margin at list = (50 − 40) ÷ 50 × 100 = 20%.
- After a 10% discount: price = 45, profit = 5.
- New margin = 5 ÷ 45 × 100 ≈ 11.1111%.
- New markup = 5 ÷ 40 × 100 = 12.5%.
The library matches: list margin 20%, list markup 25%, and after 10% off, margin about 11.1111% with markup 12.5%. Starting from markup still lands you on a clear list price. The discount check is a second pass, not a rewrite of the markup formula.
Recovering cost when you only know price and margin
Sometimes you inherit a ticket price and a margin goal, and you need the cost that fits.
cost = price × (1 − margin ÷ 100)
Example: price 80, margin 25% → cost = 80 × 0.75 = 60, markup 33.3333%. Useful when a shelf price is fixed and you need the cost that still fits the margin.
Common mistakes when pricing from cost
Building price with markup math while reporting the result as margin. On cost 40 and markup 25%, the margin is 20%, not 25%.
Forgetting that discounts hit margin hard. A modest percent off price can erase a large share of profit when margins are thin.
Aiming for a 100% margin. That target has no solution in the price-from-margin formula. Stay below 100%.
Changing currency mid-example. The calculator’s currency control only picks the symbol and minor-unit rounding. It does not convert amounts. Enter costs already in the currency you sell.
Ignoring unit profit before break-even extras. Break-even units need a positive profit per unit. If a discount pushes profit to zero or below, break-even has no answer for that ticket.
Practice in the tool
Use Price from margin with cost 18 and margin 40, confirm price 30, then set discount 15 and read the new margin near 29.4118%. Switch to Price from markup with cost 40 and markup 25, confirm price 50, then try discount 10 for a margin near 11.1111%.
Frequently asked questions
Should I start from margin or from markup when I price?
Start from the definition your reports already use. Margin targets sell price as the base. Markup targets cost as the base. The calculator can solve either path.
What happens to margin when I discount the ticket price?
Cost stays the same while price falls, so profit shrinks and margin usually falls. Always recompute with the discounted price.
Why can’t I set a 100% margin?
Price from margin divides by (1 − margin/100). At 100% that denominator is zero. Keep margin below 100%.
Does quantity change the margin percentage?
No. Quantity scales total revenue, cost, and profit. The per-unit margin and markup percentages stay the same if unit cost and unit price stay the same.
Is this a pricing strategy for my shop?
No. These examples are general arithmetic only. They are not business, tax, or legal advice.
Related articles
Finance
Profit margin vs markup explained
Margin divides profit by price. Markup divides the same profit by cost. See both on the same 40 and 50 example, then try the calculator.