🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Apply Indian GST in Magento

By Sanjay JethvaUpdated on Mar 17, 2025 6 min read

Goods and Service Tax is the largest tax reform in India. Introduced on July 01, 2017, it is compulsory for every business to follow the GST rules and Magento is no exception. Magento dominates E-commerce, and with the advent of GST in India, Magento store owners are looking for the ways to configure it in their stores. If you own a Magento store and are yet fumbling for GST implementation, you are at the right place. Read the tutorial to learn how to apply Indian GST in Magento with tax rules.

First of all, the store owners need to find the GST rates under which their products fall. Refer GST Rate Finder to decide the GST rates of your products. Once this task is done, proceed with the given method below.

Here, in the blog, consider the GST rate as 12% and business origin as Gujarat state to better understand the steps. Business origin play vital role in calculating CGST-SGST, or IGST.  If the selling is performed Intra-state i.e Gujarat to Gujarat, CGST (69%) and SGST (6%) will be applied and equally divided to make GST. However, if the selling is performed Inter-State i.e states other than Gujarat, IGST (12%) will be applied.

Now, let’s dig into the steps to apply GST in Magento.

Steps to apply Indian GST in Magento

1. First of all, navigate to Sales > Tax > Product Tax Classes and click Add New.

1_Create-Product-Tax-Class

2. Name the product tax class as GST to easily identify the tax class while creating tax rules and rates for all 3 SGST, CGST, and IGST.

2_Set-Class-Name

3. Before creating tax rates, follow this guide to install states script to get auto state selection for Indian states. Now navigate to Sales > Tax > Manage Tax Zones & Rates to create tax rates for CGST, SGST, and IGST. While creating tax rates, set 6% of rate and Gujarat as the business origin for both CGST and SGST. And for IGST, you have to create 28 rates of 12% IGST for all the states other than Gujarat to make GST work for all the states of India. Click save once all the rates have been created.

3_Create-Tax-Rate

4. Once all the 3 tax rates are created, they can be seen enlisted under Sales > Tax > Manage Tax Zones & Rates.

4_Saved-Tax-Rates

5. Whenever the selling is performed intra-state, SGST and CGST are equally divided into two halves of the whole rate of the GST, i.e., 6% to make the complete 12%.
As per the government rule, sellers have to bifurcate CGST, SGST and IGST separately in order details and invoices for every single order. To split CGST-SGST equally into two, you have to custom code as below.
Go to app/design/frontend/base/default/template/tax/checkout/tax.phtml and find the blow code at line number 54.

<?php if ($isFirst): ?>
                <td <?php echo $this->getValueProperties()?> rowspan=" 1 <?php echo count($rates); ?>">
                    <?php echo $_order->formatPrice($amount); ?>
                </td>
<?php endif; ?>

Replace the above code with this to bifurcate CGST-SGST on cart and checkout page.

<?php //if ($isFirst): ?>
               <td style="<?php echo $_style ?>" class="a-right" rowspan="1 <?php //echo count($rates); ?>">
                   <?php echo $this->helper('checkout')->formatPrice($amount / ($percent/(float)$rate['percent'])); ?>
               </td>
<?php //endif; ?>

6. Now create tax rules from Sales > Tax > Manage Tax Rules for all the 3 CGST, SGST and IGST. Select product tax class as GST and tax rate for each of them respectively as created.

5_Create-Tax-Rule

7. Once tax rules are created and saved, they can be seen enlisted under Sales > Tax > Manage Tax Rules.

6_Saved-Tax-Rules

8. Enable the “Display Full Tax Summary” in System > Configuration > Sales > Tax > Shopping Cart Display Settings to show detailed tax summary with the bifurcation of CGST-SGST and IGST.

7_Tax-Summary

9. To assign tax class as GST to all the products, simply go to Catalog > Manage Products, select all the products, select Update Attributes from the Action drop-down, go to Tax Class, tick Change and set GST from the drop-down and save.

8_Update-Attributes

10. To test the above steps and proper implementation of GST in Magento, add a product to cart and select the country as India and state as Gujarat. You will see the SGST and CGST tax rate applied on order.

9_SGST-CGST-Applied-on-Order

11. To test the IGST, select a different state in the above step. The below image shows the calculation of IGST when Goa state is chosen.

10_IGST-applied-on-order

Follow all these steps to apply Indian GST in Magento! But to make it work for all the Indian states, you have to create 28 IGST tax rates which are really a tiresome task. Moreover, the process is more complicated if you have products which belong to multiple tax rate slabs.

If you are not really ready to try your hands on creating these many tax rates and put yourself in trouble, No Worries :), you can have a look at our Magento GST India extension which is the ultimate module for auto calculation of Indian GST in your Magento store! Try our Free GST Calculator to calculate the GST rates more accurately in a precise way. Adding GST in Magento using this extension is as easy as ABC, just take a look at the features the extension serve and try the live demo to test before you buy!

Let me know which of the choices you will prefer to Apply Indian GST in Magento. In either case, if you stuck somewhere, I’ll be happy to help as always!

Award 5 stars to my GST guide if found helpful!

Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.