How to Calculate Selling Price from Cost and Target Margin

Learn how to set a selling price from cost and target margin, include marketplace fees, GST and discounts, and round prices without losing profit.
Calculate Selling Price: Cost and Margin

Last updated 22 October 2026 · 10 min read

Most prices get set by feel. You glance at what other people charge, pick a number that seems fair, and hope there’s something left after the fees. There’s a better way. Decide how much profit you want first, then let the maths hand you the price.

Quick take

  • For a target margin, divide your cost by (1 − margin). A ₹1,200 cost at 25% needs a price of ₹1,600.
  • If a marketplace takes a commission, treat it as part of the margin: price = (cost + fixed fees) ÷ (1 − margin − commission).
  • A ₹500 cost, ₹60 shipping, 10% commission and 25% margin need ₹861.54.
  • After rounding to a friendly price, always recheck the margin you really earn.

This guide shows how to work out a selling price from your cost and target margin, how to fold in fees, GST and discounts, and how to round without giving profit away. It’s all explained in words first and then in rupees.

The basic formula

If you want a certain margin, divide your cost by one minus that margin.

Selling price = Cost ÷ (1 − Target margin)

Write the margin as a decimal. A 25% margin is 0.25, so one minus 0.25 is 0.75. For a product that costs ₹1,200, that’s 1,200 ÷ 0.75, or ₹1,600. Your profit is ₹400, and ₹400 is exactly 25% of ₹1,600.

The tempting shortcut is to add 25% to the cost, which gives ₹1,500. At that price you make ₹300, and that’s only 20% of the price. That’s the markup trap (more in markup vs margin), and the formula above sidesteps it.

How the price moves with margin

Here’s the same ₹1,200 product at different margins. The price doesn’t climb in even steps. Every extra point of margin costs a bit more than the one before.

Target marginSelling priceProfit per unitEqual markup
20%₹1,500.00₹300.0025%
25%₹1,600.00₹400.0033.33%
30%₹1,714.29₹514.2942.86%
40%₹2,000.00₹800.0066.67%
50%₹2,400.00₹1,200.00100%

Setting a price, step by step

  1. Find the true cost of one unit. Material or purchase cost, packaging, inward freight and payment charges.
  2. Add fixed fees per order. Shipping you pay, packing labour, a flat platform fee. They all belong here.
  3. List the percentage fees. Marketplace commission and gateway charges come out of the selling price, so they behave like a slice of your margin.
  4. Pick a target margin. Choose one that covers your running costs and leaves something over.
  5. Apply the formula. Divide cost plus fixed fees by one minus the margin minus the percentage fees.
  6. Add GST last. Put it on top of the price, not into the cost (GST and profit margin explains why).

When a marketplace takes a cut

On a marketplace, the commission is a percentage of the selling price, not of your cost. That matters, because the commission grows as your price rises. The full formula looks like this:

Price = (Cost + Fixed fees) ÷ (1 − Target margin − Commission %)

Take a product that costs ₹500. Shipping costs you ₹60, the marketplace charges 10%, and you want a 25% margin. The fixed part is 500 + 60 = ₹560. The divisor is 1 − 0.25 − 0.10 = 0.65. So the price is 560 ÷ 0.65, or ₹861.54.

Check it. Commission is 10% of ₹861.54, which is ₹86.15. Add that to the ₹560 and your costs are ₹646.15. What remains is ₹215.38, and that’s 25% of ₹861.54. It works out exactly.

Selling price planner

Enter your cost, fixed fee, commission and target margin to see the price and what you actually keep.

Rounding to a nicer price

Customers prefer ₹849 or ₹899 to ₹861.54. That’s fine, but rounding changes your margin, so check it every time.

  • At ₹899 the commission is ₹89.90 and you keep ₹249.10. That’s a 27.71% margin, a bit better than planned.
  • At ₹849 the commission is ₹84.90 and you keep ₹204.10. That’s 24.04%, just under target.

Rounding down by ₹12 cost about a point of margin. On a product that sells 300 units a month, that adds up. If the market allows, round up. Round down only when you have a clear reason.

Planning for discounts

If you’re going to run sales, build the discount into the price from day one. Say you want to show a list price and offer 15% off. The discounted price is the one that has to give you your margin, so divide it by 0.85 to find the list price. For the ₹861.54 product, that’s about ₹1,014. Give the 15% off and you still earn your 25%. Set the list price at ₹861.54 and then discount it, and the margin drops well below target.

Where pricing goes wrong

  • Adding a percentage to cost. That gives a markup, and your real margin ends up lower.
  • Forgetting fees that depend on price. Commission and gateway fees rise with the price, so they go in the divisor.
  • Leaving out shipping and returns. Free delivery isn’t free for you.
  • Pricing off competitors alone. Check their price against your own cost first. They may have cheaper supply or accept thinner margins.
  • Never updating. When a supplier raises a rate, your margin shrinks until you change yours.

Frequently asked questions

How do I calculate selling price from cost and margin?

Divide the cost by one minus the margin. For a ₹1,000 cost and a 20% margin, that’s 1,000 ÷ 0.80, or ₹1,250.

How do I calculate selling price from cost and markup?

Multiply the cost by one plus the markup. For a ₹1,000 cost and a 20% markup, the price is ₹1,200.

Should GST be added before or after the margin?

After. Work out the price from cost and margin, then add GST on top. The tax isn’t part of your profit.

How do marketplace fees change my price?

Percentage fees take a share of the selling price, so they get subtracted from your margin in the formula. Fixed fees get added to your cost.

What if my price comes out higher than the market?

Look at your cost first, then at what makes your product worth more. Cutting your margin to nothing to match a competitor is rarely a good long-term plan.

Try it on one product

Pick a product and enter its cost, fixed fee and commission in the planner above. Try two or three target margins and watch the price change, then compare it with what you charge today. If your current price gives a lower margin than you thought, you’ve found the first thing to fix. If you want somewhere to keep these prices and costs, see pricing and profit tools.

This article is for general information and education. It is not financial, tax or legal advice. All rupee figures are illustrative examples, and your own costs and fees will differ. Check current fees and tax rules or speak to a qualified accountant before making business decisions.