The selling price formula for a target gross margin is cost ÷ (1 − margin as a decimal). If cost is ₹800 and the target margin is 20%, the calculation is ₹800 ÷ 0.80 = ₹1,000, excluding GST.
Adding 20% to cost gives a different result. That creates a 20% markup, not a 20% margin. Choose the percentage you mean before changing a sale price in your item list.
Start with a comparable cost
Identify what your cost figure represents. It might be the recorded purchase cost per piece, or a calculated cost including directly attributable inward charges. Do not mix a carton price with a per-piece selling price. Divide by the correct number of sellable pieces first.
Use the same tax basis for cost and selling price. These examples exclude GST. Whether a particular tax belongs in cost depends on your accounting and credit eligibility; the formula does not decide that. Ask your accountant if the correct cost basis is unclear.
For an item whose buying price changes across deliveries, see weighted average purchase cost. A current supplier quote and the recorded cost of stock already on your shelf are not necessarily the same figure.
Work through the selling price formula
Suppose Dev buys an item at ₹240 per unit and wants a 25% gross margin.
- Convert 25% into the decimal 0.25.
- Subtract from 1: 1 − 0.25 = 0.75.
- Divide cost by the result: ₹240 ÷ 0.75 = ₹320.
- Check profit: ₹320 − ₹240 = ₹80.
- Check margin: ₹80 ÷ ₹320 × 100 = 25%.
The last check catches the most common mistake: treating a markup as if it were a margin. If Dev had added 25% to ₹240, his price would be ₹300. Profit would be ₹60 and margin would be 20%, not 25%.
Use the target-margin mode in the profit margin calculator to compare both approaches without rewriting the formula.
| Cost excluding GST | Target margin | Calculated selling price | Gross profit |
|---|---|---|---|
| ₹240 | 10% | ₹266.67 | ₹26.67 |
| ₹240 | 20% | ₹300 | ₹60 |
| ₹240 | 25% | ₹320 | ₹80 |
| ₹240 | 40% | ₹400 | ₹160 |
Rounded prices can produce a tiny difference in the achieved margin. The table is a set of arithmetic examples, not a pricing recommendation for a retail sector.
Round the price, then check again
Some calculated prices have more than two decimal places. Resolve the final price to paise, then recalculate the achieved margin from that price. If you choose a different practical shelf price, use that actual price for the second check.
A computed target is a starting point. It does not override a printed MRP, contractual price, applicable law or what customers will pay. Keep those decisions separate from the arithmetic. Do not automatically round every line’s tax or invoice total using your shelf-price preference.
Add tax only after choosing the basis
For a GST-exclusive selling price, use the applicable tax rate to work out the customer total. For a GST-inclusive price, back the tax out before comparing it with a GST-exclusive cost. The GST calculator shows both directions.
For example, at an illustrative 18% rate, a ₹320 taxable selling price produces ₹57.60 GST and a total of ₹377.60 before invoice round-off. The ₹57.60 is not additional trading profit. Product classification and the applicable rate must be checked separately using CBIC’s GST guidance.
Stress-test the planned discount
A target margin assumes that you receive the selling price used in the formula. If the ₹320 item costs ₹240 and you offer a 10% discount, the sale price falls to ₹288. Gross profit becomes ₹48 and margin becomes 16.67%.
The advertised discount has therefore moved your result well below the original 25% target. Read discounts and profit margin and test the actual offer before promising a price.
Record a price you can explain
Keep a short note of the cost basis, target, calculated price and any manual adjustment. Review it after a supplier price change, a pack-size change or a sustained discount. A consistent method is more useful than remembering why one particular item was priced months ago.
Yojika lets you maintain item purchase and sale prices for daily billing. Its reports help you review the trading result, but a target margin remains your business decision. Explore features, compare pricing, or try Yojika.
Frequently asked questions
Can I enter a target margin of 100%? Not with positive cost: the denominator becomes zero. Use a target below 100%.
Does this calculate net profit? No. It calculates a gross margin on the selected cost basis, before operating expenses.
Should I always use the latest purchase price? Not automatically. The cost of existing stock and a replacement-cost pricing decision can differ. Keep your accounting method and pricing decision clear.