How to Set up Tax Rules and Related Configuration in Magento 2

  • Magento Development/Magento Team Blog

  • Published OnJanuary 28, 2021

  • Updated On June 2, 2021

Featured Image
Tax Configuration in Magento 2

One must comply with country-specific business laws and taxes when it comes to doing business. But if you are a newbie, it might be tricky for you to configure certain options in Magento 2 that work seamlessly. Brainvire offers Magento development services that take care of all your Magento needs.

Tax laws are typically a mix of product class, consumer class, and rates of tax.

A consumer tax class is assigned to each customer and a product tax class is assigned to each product. Magento 2 analyses each customer’s shopping cart and calculates the necessary tax based on the customer and product classes, and the area (based on the shipping address, billing address, or shipping origin of the customer). So let’s dig-in and clear up all your tax setup questions in Magento 2.

To simplify tax rule process rules you can also import such configuration in Magento 2.

Step 1: Complete the Tax Law Information

  1. Sign in to your Magento 2 and Go to Stores-> Taxes-> Tax Rules on the Admin sidebar.
  2. You will find an option to add a New Tax Law in the upper-right corner.
  3. Now set the name of your tax law.
  4. Choose the rate of tax to which the law applies. If a current tax rate needs to be edited, do the following:
  5. Click the Edit icon and hover over the tax rate.
  6. As required, update the form and click Save.
  7. Using one of the following methods to specify tax rates.

Method 1: Manually insert tax rates – Press Add New Tax Rate.

Method 2: Configuration based on tax zones and rates.

  1. Navigate to the Admin sidebar to identify the new tax rate, then click on Stores-> Taxes-> Tax Zone and Prices.
  2. You will find an option to add a new tax rate in the upper-right corner.
  3. Enter the Identifier for a fee.
  4. Enter the code in the Zip/Post Code area to apply the tax rate on a single ZIP or postal code.
  5. The wildcard () asterisk can be used to match up to ten characters in the code. For example, from 90000 to 90999, 90 represents all ZIP codes.
  6. Do the following stuff to extend the tax rate to a number of ZIP or postal codes:
  7. Label the Range checkbox for Zip/Post. Then enter the first and last ZIP code or postal code in the Range From and Range To fields to identify the range.

Method 3- Import Tax Rates

Navigate to Stores-> Taxes-> Tax Laws on the sidebar of Magento 2 Admin. The choice to import as well as export tax rules are available using the CSV format. You will also find the same Export Tax import option as Import/Export Tax Rates under the Magento 2 hood.

Step 2: Complete the Additional Settings


1. To open a section in the same tax rules setting section, click Additional Settings. It collapses by default, so you have to click on the title to enlarge it.

2. Pick the Consumer Tax Class that the rule applies to.

  • To edit a tax class for consumers, click the Edit button. Then, as needed, update the form and click Save.
  • Select Add a New Tax Class to create a new tax class. Then, as needed, complete the form, and click Save.

3. Select the Product Tax Class that the rule applies to.

  • Click the edit icon to edit a product tax class. Then, as needed, update the form and click Save.
  • Select Add a New Tax Class to create a new tax class. Then, as needed, complete the form, and click Save.

4. Enter a number in the Priority field to indicate a tax priority. The taxes are applied together because there is a range of taxes that are configured and the two tax laws have the same goals. If two taxes have distinct goals, the taxes are multiplied.

5. If you want to apply taxes based on the subtotal order, you should check the Calculate Subtotal Only checkbox.

6. For sorting when listed with other tax rules, the Sort Order field is used to insert a number to show the order of this tax rule when listed with others.

7. Save the configuration and you’re done.



There you have it. Configuring Tax settings in Magento 2 is super easy. All you have to do is hire a Magento development company to help you with eCommerce website development.

    Looking to move to the cloud?

    Let our extended team be part of your journey and help you.

    Related Articles

    • Progressive Web App Development In Magento 2
      Progressive Web App Development In Magento 2

      Mobile users have seen an astronomical rise in the past decade, so if businesses want to excel in this digital realm, they must approach customers who use mobile devices for

    • Secure Online Store
      How Voice Search and Mobile Commerce Can Enhance the Magento Shopping Experience

      The business world has always been known for evolving to meet changing customer needs and expectations. But this evolution has significantly progressed with the latest technological advancements transforming shopping experiences

    • magento 2 web development
      Streamline Your Online Store With Magento 2 Breeze Theme

      For a business to succeed, having an internet presence is essential. An online store is more than simply an extension of your physical store; it’s a dynamic platform where you