The tax rate is the same. What changes is how it is split, and that depends on where your buyer is.
On an invoice, GST appears either as two lines or as one. Which one you use depends only on whether the sale stays inside one state.
Same state: CGST plus SGST
If you and the buyer are in the same state, the tax is split equally. An 18% GST becomes 9% CGST and 9% SGST.
Different states: IGST
For a sale across states, you charge a single IGST at the full rate, for example 18%. The buyer can claim it as input credit, which is why printing the wrong split is a real problem and not just a formatting slip.
A quick way to check
The first two digits of a GSTIN are the state code. If your GSTIN and your buyer's start with the same two digits, use CGST and SGST. Otherwise use IGST. Our GST calculator shows both splits for any amount.
