How to Calculate GST on an Invoice
Learn how to add GST to an exclusive price or remove it from an inclusive one, split CGST and SGST or apply IGST, handle discounts and avoid rounding errors.
By BillGenn Editorial Team Published Last reviewed
GST arithmetic is simple until a discount, an inclusive price or a rounding difference appears. Then two people can produce two different totals from the same invoice. This guide shows the formulas, a worked example and the checks that catch most errors.
The arithmetic below is general. The rate and treatment depend on the goods or services and the place of supply. Confirm the current rate for your HSN or SAC code before you issue a tax invoice.
The two directions: adding and removing GST
There are only two core formulas.
| What you know | What you want | Formula |
|---|---|---|
| Taxable value (price before GST) | GST amount | taxable value × rate ÷ 100 |
| Taxable value | Total including GST | taxable value × (1 + rate ÷ 100) |
| Total including GST | Taxable value | total × 100 ÷ (100 + rate) |
| Total including GST | GST amount | total − taxable value |
The first two are for an exclusive price, where GST is added. The last two are for an inclusive price, where GST is already inside the number.
Adding GST: exclusive price
Suppose a service has a taxable value of ₹10,000 and the applicable rate is 18%.
- GST = ₹10,000 × 18 ÷ 100 = ₹1,800.
- Total = ₹10,000 + ₹1,800 = ₹11,800.
At 5% on ₹4,000:
- GST = ₹4,000 × 5 ÷ 100 = ₹200.
- Total = ₹4,200.
At 40% on ₹2,500:
- GST = ₹2,500 × 40 ÷ 100 = ₹1,000.
- Total = ₹3,500.
The 40% slab applies only to notified goods; it is not a general service rate. Always check the classification rather than assuming a slab.
Removing GST: inclusive price
If the customer agrees a total of ₹11,800 including 18% GST, the taxable value is not ₹11,800 minus 18%. That would understate the tax. Divide by 1.18:
- Taxable value = ₹11,800 × 100 ÷ 118 = ₹10,000.
- GST = ₹11,800 − ₹10,000 = ₹1,800.
The same logic at 5%: a ₹4,200 inclusive total gives ₹4,000 taxable value and ₹200 GST. At 40%, a ₹3,500 inclusive total gives ₹2,500 taxable value and ₹1,000 GST.
A quick sanity check: the tax should be 18/118 of the inclusive total at 18%, not 18% of it. On ₹11,800, 18% of the total would be ₹2,124 — clearly too high.
Splitting CGST and SGST, or using IGST
For an intra-state supply, the combined rate is split equally:
| Component | Rate | Amount on ₹10,000 |
|---|---|---|
| CGST | 9% | ₹900 |
| SGST | 9% | ₹900 |
| Total GST | 18% | ₹1,800 |
For an inter-state supply, the same 18% is charged as a single IGST line of ₹1,800. Do not show CGST and SGST as well; that would double the tax.
The split is not a choice based on convenience. It follows the place of supply. If you are unsure whether a service is intra-state or inter-state, check the place-of-supply rules or ask your accountant before issuing the invoice.
Discounts: calculate GST on the right value
A discount can be applied at the line level or on the invoice total. The key question is whether the discount is known before the supply and shown on the invoice. If it is, the taxable value is normally the post-discount value.
Example: a ₹10,000 service with a 10% discount, then 18% GST.
- Discount = ₹1,000.
- Taxable value = ₹9,000.
- GST = ₹9,000 × 18% = ₹1,620.
- Total = ₹10,620.
Do not calculate GST on ₹10,000 and then subtract the discount from the total; that overstates the tax and creates a mismatch with the taxable value shown on the invoice.
If you offer a post-supply discount, the treatment can differ and may require a credit note. That is a fact-specific area; document the arrangement and get advice if the amount matters.
A worked invoice
A registered supplier in Maharashtra invoices a Maharashtra customer for two items at 18%:
| Item | Qty | Rate | Taxable value | CGST 9% | SGST 9% |
|---|---|---|---|---|---|
| Design retainer | 1 | ₹25,000 | ₹25,000 | ₹2,250 | ₹2,250 |
| Additional revisions | 5 hours | ₹1,000 | ₹5,000 | ₹450 | ₹450 |
| Total | ₹30,000 | ₹2,700 | ₹2,700 |
Grand total = ₹30,000 + ₹2,700 + ₹2,700 = ₹35,400.
If the customer were in Gujarat, the invoice would show IGST of ₹5,400 instead of the two CGST/SGST lines. The total is unchanged.
Rounding without breaking the invoice
GST calculations rarely produce whole paise. Decide on a method and apply it consistently:
- Per line: round each line’s tax to two decimals, then add the rounded lines.
- On the total: calculate tax on the total taxable value, then round once.
The invoice should reconcile: taxable value + CGST + SGST (or IGST) = grand total. If you round the grand total to the nearest rupee, show a separate round-off line instead of changing a tax component silently.
The GST calculator shows the taxable value, tax components and total, and lets you switch between inclusive and exclusive amounts. It is a check, not a filing system.
Common GST calculation mistakes
- Treating an inclusive price as exclusive and adding GST twice.
- Calculating 18% of the inclusive total instead of 18/118.
- Showing CGST and SGST on an inter-state supply, or IGST on an intra-state one.
- Applying GST before a discount that should reduce the taxable value.
- Using an outdated 12% or 28% rate for an item that moved to a different slab.
- Rounding each component differently so the invoice does not add up.
- Charging GST when the business is not registered, or on an exempt supply.
Check the result before sending
- Confirm the rate for the HSN or SAC code.
- Confirm intra-state or inter-state treatment.
- Apply any discount before GST where appropriate.
- Calculate the tax and total.
- Check that the components add back to the total.
- Compare the invoice total with the customer’s purchase order or agreed quote.
For the document itself, see what a GST invoice must contain. For the difference between CGST, SGST and IGST, read the three GST components explained.
Sources and further reading
Primary or official sources used when checking the factual points in this guide.
Editorial note
This guide is general educational information, not tax, legal or financial advice. Rates, thresholds and document rules can change and depend on your circumstances. Verify the current position with the relevant authority or a qualified professional. Read the editorial policy and disclaimer.
Spotted an error? Email hello@billgenn.com with the page URL and the specific point so it can be reviewed.
Frequently asked questions
What is the formula to add GST to a price?
GST = taxable value × rate ÷ 100. Add that amount to the taxable value for the total. At 18%, a ₹10,000 taxable value has ₹1,800 GST and a ₹11,800 total.
How do I remove GST from an inclusive price?
Taxable value = inclusive total × 100 ÷ (100 + rate). At 18%, ₹11,800 ÷ 1.18 = ₹10,000 taxable value, so the GST is ₹1,800.
Is GST calculated on the price before or after a discount?
A discount that is known before the supply and shown on the invoice normally reduces the taxable value, so GST is calculated after that discount. Check the rules for your transaction and keep the working consistent.
Why do CGST and SGST each show half the GST rate?
For an intra-state supply, the combined GST rate is split equally between CGST and SGST. At 18%, the invoice shows CGST at 9% and SGST at 9%. The total tax is still 18% of the taxable value.
Should I round GST per line or on the total?
Either can be acceptable if you apply it consistently and the invoice reconciles. Many businesses round each line and then total the rounded amounts; others calculate on the total. Check what your accounting system and tax practitioner expect.