Invoicing#gst calculation#sales invoice#cgst

How to Calculate GST on a Sales Invoice

A worked, line-by-line method for calculating GST on a sales invoice — with discounts, mixed rates, CGST/SGST vs IGST and rounding.

Bhavesh AkabariAuthor, E-Way EasyPublished Updated 6 min read

Last verified against official sources: 10 Oct 2026

Sales invoice with three line items, a discount column and CGST, SGST and IGST totals
Table of contents
  1. The method in five steps
  2. Worked example (illustrative): three products, one discount
  3. Step 1–2: Taxable value per line
  4. Step 3: Group by rate
  5. Case A: Buyer in Ahmedabad (intra-state, Gujarat → Gujarat)
  6. Case B: Buyer in Indore (inter-state, Gujarat → Madhya Pradesh)
  7. What the e-way bill picks up
  8. Working backwards from a GST-inclusive price
  9. Rounding
  10. Discounts: what reduces the taxable value and what does not
  11. Common mistakes
  12. Making this automatic
  13. Official sources

Quick answer: For each line, deduct the invoice discount from quantity × rate to get the taxable value, add any incidental charges that form part of it, and apply the GST rate. Within a state, split the rate equally into CGST and SGST; across states, charge IGST. Then total the tax and round once.

GST on a single-item bill is easy: price × rate. Real invoices are rarely that simple. There are several products, different tax rates, a trade discount on one line, freight added at the bottom, and the question of whether the buyer is in your state or another. Get any of these wrong and the invoice, the e-way bill and your GST return all carry the error.

This guide walks through the method line by line, then works a full example both ways — intra-state and inter-state.

Rates used here are for illustration only. GST rates are notified by the government and have changed over time. Always confirm the current rate for your goods on official sources before invoicing.

The method in five steps

  1. Compute the gross amount for each line: quantity × unit rate.
  2. Subtract the discount shown on the invoice for that line to get the taxable value. A discount given at or before supply and recorded on the invoice reduces the value on which GST is charged (Section 15(3) of the CGST Act).
  3. Add incidental charges charged by you (packing, freight, loading) to the value of supply where they form part of it, and tax them at the applicable rate.
  4. Decide the tax type from the place of supply:
    • Supplier and place of supply in the same state → CGST + SGST (or UTGST in a Union Territory), each at half the rate.
    • Different states, or supply to an SEZ → IGST at the full rate.
  5. Compute tax per line, total it, then round the invoice total in one consistent way.

Worked example (illustrative): three products, one discount

A Rajkot hardware manufacturer (sample GSTIN 24ABCDE1234F1Z5) sells to a dealer. The invoice has:

#ItemQtyRate (₹)DiscountIllustrative GST rate
1Brass ball valve 1"200310.005%18%
2CPVC pipe 3 m150245.00nil18%
3Plumbing tool kit40875.00₹1,500 flat5%

Freight charged on the invoice: ₹2,400 (treated here as part of the value of supply; for illustration, it is taxed at the highest rate on the invoice — 18%. The correct treatment of freight in a mixed-rate invoice depends on facts; check with your adviser).

Step 1–2: Taxable value per line

#Gross (Qty × Rate)DiscountTaxable value
1200 × 310 = 62,000.005% = 3,100.0058,900.00
2150 × 245 = 36,750.000.0036,750.00
340 × 875 = 35,000.001,500.0033,500.00
Freight——2,400.00
Total1,31,550.00

Step 3: Group by rate

RateTaxable value
18% (lines 1, 2 and freight)58,900 + 36,750 + 2,400 = 98,050.00
5% (line 3)33,500.00

Case A: Buyer in Ahmedabad (intra-state, Gujarat → Gujarat)

RateTaxable valueCGSTSGST
18% (9% + 9%)98,050.008,824.508,824.50
5% (2.5% + 2.5%)33,500.00837.50837.50
Total1,31,550.009,662.009,662.00

Invoice total = 1,31,550.00 + 9,662.00 + 9,662.00 = ₹1,50,874.00

Case B: Buyer in Indore (inter-state, Gujarat → Madhya Pradesh)

RateTaxable valueIGST
18%98,050.0017,649.00
5%33,500.001,675.00
Total1,31,550.0019,324.00

Invoice total = 1,31,550.00 + 19,324.00 = ₹1,50,874.00

Notice that the total tax is the same in both cases (₹19,324). Only the split changes. IGST = CGST + SGST for the same rate and value.

What the e-way bill picks up

Since the consignment value is ₹1,50,874 (above the general ₹50,000 threshold), an e-way bill is needed. Its Part A will carry the taxable value of ₹1,31,550 and the tax split — CGST/SGST for Case A, IGST for Case B. These must match the invoice exactly. See common e-way bill errors for what happens when they do not.

Working backwards from a GST-inclusive price

Retail and some B2B quotes are given inclusive of GST. To find the taxable value:

Taxable value = Inclusive price × 100 ÷ (100 + rate)

Example (illustrative): A dealer quotes ₹11,800 inclusive of 18% GST.

  • Taxable value = 11,800 × 100 ÷ 118 = ₹10,000
  • GST = ₹1,800 (CGST ₹900 + SGST ₹900 if intra-state)

Our GST inclusive/exclusive calculator does this instantly.

Rounding

  • Compute tax per line or per rate group to two decimals.
  • Round the final invoice total to the nearest rupee if that is your practice, and show the round-off amount separately.
  • Do not round each line to the rupee and then also round the total — the small differences add up and cause mismatches with the e-way bill and returns.

Discounts: what reduces the taxable value and what does not

Discount typeReduces taxable value on this invoice?
Trade discount shown on the invoice at the time of supplyYes
Cash discount for early payment, known and recorded on the invoiceGenerally yes, if on the invoice
Year-end volume discount given laterNot on the original invoice; handled through a credit note subject to Section 15(3)(b) conditions
Free item given as a "discount"Needs separate analysis; not a simple deduction

Common mistakes

  • Charging GST before discount. Tax should be on the discounted value when the discount is on the invoice.
  • Charging CGST + SGST on an inter-state sale (or IGST on an intra-state sale). The tax paid under the wrong head is a problem to fix, not a rounding issue. Read CGST vs SGST vs IGST explained.
  • Using one rate for the whole invoice when items carry different rates.
  • Leaving freight or packing out of the taxable value when you are charging it on the invoice.
  • Splitting 18% as 18% CGST + 18% SGST. It is 9% + 9%.
  • Rounding at every line.
  • Using an outdated rate. Rates have been revised; keep your product master current.

Making this automatic

If you keep products with their HSN and rate in a master list, and buyers with their GSTIN and state, the calculation becomes mechanical. In the E-Way Easy app, products and buyers are saved, HSN fills from the product and the buyer's state comes from their GSTIN, which drives the tax type. You still review everything on the invoice preview before saving. For quick checks, try our GST calculator and quantity and tax calculator.

Official sources

Value of supply is defined in Section 15 of the CGST Act, and the invoice particulars in Rule 46 of the CGST Rules. Current tax rates are notified by the government — check cbic-gst.gov.in and cbic.gov.in, and the GST portal for return-related guidance.

Frequently asked questions

Is GST calculated before or after discount?

A discount shown on the invoice at the time of supply is deducted before calculating GST, so tax is charged on the reduced value. Post-sale discounts follow separate conditions.

Is freight charged on the invoice subject to GST?

Generally, incidental charges such as packing or freight charged by the supplier in the invoice are included in the value of supply. Check the treatment for your situation.

How do I split GST into CGST and SGST?

For an intra-state supply, the rate is split equally — for example an 18% rate becomes 9% CGST and 9% SGST. For inter-state supply, the full rate is charged as IGST.

Sources and references

This article is general information, not tax or legal advice. GST and e-way bill requirements depend on the transaction, applicable notifications and state-specific provisions. Check the official portals before you rely on it.

Written by

Bhavesh Akabari

Bhavesh Akabari writes the E-Way Easy guides on e-way bills, GST invoicing and day-to-day compliance workflows for Indian manufacturers, wholesalers and traders. Every compliance article is checked against official GST and e-way bill sources and carries a "last verified" date.

Android app

Make your e-way bill workflow simpler

Create the sales invoice, review e-way bill details and generate, all from your phone with E-Way Easy.

Related articles