📣🌞🏖️🏄 Sunny Deals - Summer Sale! | Exclusive offers for Cloud Shared Hosting - 70% OFF | Starting from $3.99/mo
Learn Magento 2

One of the most used Opensource E-Commerce Platform build on Enterprise level!

• Last Updated: 01/09/2020
• ( 8 minutes reading )

How to setup Tax Rules in Magento 2

Introduction

In Magento 2Tax Rules” combine three elements: product class, customer class, and tax rate. Each of your products will be assigned to a specific product class, similarly, each customer will be assigned to a given customer class. The Tax Rule takes the defined tax rate and applies it to a combination of the product and customer classes, so the appropriate tax based on the above-mentioned classes and the region (shipping address/billing address of the customer or shipping origin) could be calculated. This is why configuring “Tax Rules” is important when it comes to applying taxes to purchases for which taxes are relevant.

 

Getting Started

In order to being, please log in to your Magento Admin Dashboard and navigate through the left menu bar to Stores > Tax Rules.

 

Accessing the Tax Rules page

 

The “Tax Rules” page is where you will be able to manage your existing tax rules and create new ones. You will notice that at this point there are no available tax rules, therefore you will not be able to charge taxes on your store. Now, let’s review how to add your first tax rule.

 

Adding Tax Rules

In order to add a tax rule, please click on the “Add New Tax Rule” button positioned at the top right corner of the page.

 

Adding new tax rule

 

Once you do that, you will be redirected to the “New Tax Rule” page where you will first need to fill the Tax Rule Information.

 

Configuring Tax Rule Information

Now, let’s review the first section of the page and explain what information you need to define in each of the fields.

 

Entering the tax rule information

 

Please, specify the following:

  • Name - In this field, you will need to define the Tax Rule name.
  • Tax Rate - From this list, you will need to select the tax rate(s) that will be applicable to the Tax Rule. If you need to select multiple tax rates, please press the “ctrl” (PC) / “Command” (Mac) key on your keyboard and click on the rates.

Note that you are able to edit the existing tax rates on the fly by hovering over them and clicking on the “Pencil” icon. Additionally, if needed you can add new tax rates by clicking on the “Add New Tax Rates” button and filling the required information.

 

Adding new tax rate

 

You will need to specify the name of the Tax rate under the “Tax Identifier” field. Select the country, the state and Zip/Post codes applicable to the rate. Please note that the “*” sign can be used as a wildcard, meaning it will stand for all states in the selected country or all Zip/Post Codes in the selected state. You can also set a Zip/Post code range, for example, “100*” will apply the rate for all codes starting with 100. In the last field, please enter the tax rate percentage value. Finally, please make sure to click on the “Save” button and your new rate will be successfully added.

 

Configuring Additional Settings

Next, you will need to configure the additional settings of the Tax Rule. Please click on the arrow next to “Additional Settings” to expand the section and display all its settings.

 

Configuring the additional settings

 

Please, specify the following:

  • Customer Tax Class - From this list, you will need to select the Customer tax class(es) applicable to the Tax Rule. Similarly to the previous example, you are able to edit the existing Customer Classes by hovering over them and selecting the “Pencil” icon. You can also add new classes on the go by clicking on the “Add New Tax Class” button.
  • Product Tax Class - From this list, you will need to determine the Product Tax Class(es) (the type of products) applicable to the Tax Rule. Again, if you need to edit an existing class, please click on the “Pencil” icon and if you need to add a new one, click on the “Add New Tax Class” button.
  • Priority - The value specified here will determine the priority of the Tax Rule compared to other Tax Rules applicable to the same purchase. The lower the value is, the higher the priority will be. If two Tax Rules have the same priority value they will be applied together, while if they have different values they will be compounded. In other words, if you have two Tax rules with the same priority, each for 10%, a 20% tax rate will be calculated on the total amount. For example, if the amount is $100, the subtotal will be $120. If they are with different priorities, the first 10% will be applied to the subtotal and the second 10% will be applied on top of the accumulated amount. For example, if the amount is $100, after the first tax it will become $110 and then the second 10% will be applied on top of that, so, it will become $121.
  • Calculate Off Subtotal Only - Enabling this setting will calculate the tax rate based on the cart subtotal opposed to based on the products. We do believe that in most cases your customers’ carts will contain products applicable to different tax rules and the tax rates will not be calculated accurately, therefore you might want to consider leaving this setting disabled.
  • Sort Order - This setting determines where the Tax Rule will be positioned on your store backend.

The last two options you will see on this page are “Import Tax Rates” and “Export Tax Rates”. Importing tax rates comes really handy when you have a lot of tax rates and you do not want to add them manually one by one. You can create a spreadsheet in a CSV file format containing the values of your tax rates and directly import it in Magento. Respectively, you can also export your tax rates in a CSV file format if needed.

 

Importing tax rates

 

When you are ready with all of the settings, please do not forget to click on the “Save Rule” button at the upper-right corner of the page.

 

Saving the tax rule

 

Now, your new Tax Rule is successfully saved. Even though Magento does not require you to flush the cache when creating Tax Rules, in order to ensure everything will be working properly, please go ahead and do so. You can do that by going to System > Cache Management > Flush Magento Cache.

We will strongly recommend you to test the newly created Tax Rule on your store frontend in order to ensure the tax rates are accurately calculated. Once you confirm it is all working as expected, you are all set.

 

Hopefully, you have found the information provided in this tutorial useful and our instructions easy to follow. In case you do have any additional questions, please do not hesitate to contact our Support Team.



...
Sebahat
Technical Support Captain

Sebahat is a young and bright woman who has become an invaluable part of our team. She started as a Customer Care Representative, mastering that role and, along the way, growing into a tech-savvy individual who is well acquainted with every support layer of the company. Driven by her aim to improve our customers’ experience constantly, she is committed to enhancing the extraordinary support we deliver.