How do I calculate GST from a price that includes GST?
Divide the price by (1 + rate ÷ 100) to get the taxable value; the GST is the price minus that. At 18%, a ₹1,299 price has a taxable value of ₹1,299 ÷ 1.18 = ₹1,100.85 and GST of ₹198.15. Within your state, split the GST into two halves for CGST and SGST, giving the odd paisa to one of them so they add back exactly.
Try it with your own numbers in the free GST calculator.
What's the formula?
Taxable value = price × 100 ÷ (100 + rate). GST = price − taxable value.
Working backwards like this is sometimes called the reverse calculation. Don't take 18% of the inclusive price: 18% of ₹1,299 is ₹233.82, which overstates the tax by ₹35.67.
| Inclusive price | Rate | Taxable value | GST |
|---|---|---|---|
| ₹999.00 | 5% | ₹951.43 | ₹47.57 |
| ₹1,299.00 | 18% | ₹1,100.85 | ₹198.15 |
| ₹2,500.00 | 18% | ₹2,118.64 | ₹381.36 |
| ₹4,999.00 | 5% | ₹4,760.95 | ₹238.05 |
Round the taxable value to the paisa and take the GST as the remainder, so taxable value plus GST always equals the price.
Which rate do I use?
The GST rate for the product's HSN code; most goods are now at 5% or 18%.
The GST Council moved to a standard rate of 18% and a merit rate of 5%, with a special 40% rate for a few goods, from 22 September 2025, except pan masala and tobacco products (EY summary of the 56th GST Council recommendations). Check each product's rate against its HSN code with your CA; see how to add HSN codes to Shopify products.
How do I split GST into CGST and SGST?
Halve it; if there's an odd paisa, give it to one head consistently.
For a sale within your state, half the GST is CGST and half is SGST (or UTGST in a union territory without a legislature). ₹198.15 doesn't halve evenly, so one head gets ₹99.08 and the other ₹99.07. Rounding both halves up would give ₹198.16, a paisa more than the buyer paid; rounding both down loses a paisa. Pick one head for the extra paisa and stick to it. Our app gives it to CGST.
For an inter-state sale or export, the whole ₹198.15 is IGST. See why Shopify shows IGST instead of CGST and SGST.
Should I calculate per line or per invoice?
Per line, then add up; each line can have its own rate and HSN code.
An invoice with a 5% tee and an 18% attar needs separate taxable values and tax per line, because the rates differ and the GSTR-1 HSN summary reports by code and rate. A worked order:
| Line | Inclusive | Rate | Taxable | GST |
|---|---|---|---|---|
| Organic cotton tee × 2 | ₹1,998.00 | 5% | ₹1,902.86 | ₹95.14 |
| Sandalwood attar | ₹1,299.00 | 18% | ₹1,100.85 | ₹198.15 |
| Total | ₹3,297.00 | ₹3,003.71 | ₹293.29 |
Within the state that's CGST ₹146.65 and SGST ₹146.64 (each line split separately, the odd paisa to CGST).
How do discounts work with inclusive prices?
Take the discount off the inclusive price first, then take out the GST.
If the ₹1,299 attar sells with a ₹200 discount, the buyer pays ₹1,099, and the GST is worked out on that: taxable ₹931.36, GST ₹167.64. Rule 46 asks for the taxable value "taking into account discount or abatement, if any" (Rule 46 text via GSTZen). A cart-wide discount code has to be spread across the lines (Shopify allocates order discounts to the line items), so each line's taxable value reflects its share.
How does Shopify handle tax-inclusive prices?
Turn on the setting, and Shopify works out the tax backwards from your prices.
In Settings > Taxes and duties, select Include sales tax in product price and shipping rate. Shopify then charges the listed price, and "the included amount of tax is displayed to customers next to the total at the checkout" (Shopify Help Center). Shopify's GST FAQ warns that with inclusive prices "it might appear that tax has not been charged", because the total doesn't grow at checkout.
Shopify shows one tax line, though: "You can't set multiple tax line items in Shopify." The CGST/SGST split is up to your invoice.
Can my calculation differ from Shopify's?
Sometimes by a paisa, which is why invoices should use the tax Shopify actually charged.
Shopify rounds per line and spreads discounts across lines in its own way, so recalculating from the price can occasionally land a paisa away from what the order shows. If your invoice disagrees with the order, the books won't match. Use the tax amounts on the order and only split them.
Doing this for every order?
Fizz GST Invoice does it from the order itself. It takes the tax Shopify charged on each line after discounts, works out the taxable value, and splits the tax into CGST + SGST or IGST by place of supply in whole paise, with odd paise to CGST. If a product has no tax line, it uses your default rate and works backwards for inclusive prices. It's free to install while it launches. The templates haven't been reviewed by a chartered accountant yet, so have yours check the first month.
For one-off sums, use the GST calculator.
Related: How to set up GST rates in Shopify · How to issue a GST credit note for a Shopify refund