GST Calculator
Add or remove GST and split it into CGST and SGST or IGST, with every step shown.
Runs on your device Processed locally in your browser. Nothing is uploaded.
Find profit, margin and markup from cost and price, or the price that gives a target margin.
Enter the values above to see the result.
The rule is round money first, then percentages. Cost and selling price are rounded to two decimal places (half-up) first. Profit is calculated from those rounded amounts, and margin and markup are calculated from the rounded profit and amounts, then rounded to two decimal places. The figures you see therefore always reconcile: profit is exactly the selling price minus the cost as displayed.
Buying at ₹80 and selling at ₹100:
| Input | |
|---|---|
| Calculate | Margin from cost & price |
| Cost | ₹80.00 |
| Selling price | ₹100.00 |
| Result | |
| Margin | 20.00% |
| Selling price | ₹100.00 |
| Cost | ₹80.00 |
| Profit | ₹20.00 |
| Markup | 25.00% |
Both compare profit with something else. Margin compares profit with the selling price; markup compares it with the cost. Buying at ₹80 and selling at ₹100 gives a profit of ₹20 — a 20% margin (20 ÷ 100) but a 25% markup (20 ÷ 80). For a profitable sale, markup is always higher than margin.
Margin is profit as a share of the selling price. A 100% margin would mean the whole price is profit and the cost is zero; anything above 100% would need a negative cost. When you solve for a price or a cost, a margin of 100% or more has no answer, so the tool asks for a lower value.
A negative margin means you are selling below cost, at a loss. For example, a cost of ₹100 and a selling price of ₹80 give a profit of −₹20, a margin of −25% and a markup of −20%.
No. Enter cost and selling price on the same basis, normally both excluding GST. To add or remove GST, use the GST Calculator.
No. The calculator does the arithmetic and shows every step so you can check it. Confirm prices, tax treatment and accounting figures with your accountant before you rely on them.