Tax Rules

Tax rules incorporate a combination of product class, customer class and tax rate. Each customer is assigned to a customer class, and each product is assigned a product class. Magento analyzes the shopping cart of each customer and calculates the appropriate tax according to the customer and product classes, and the region (based on the customer’s shipping address, billing address or shipping origin).

When numerous taxes must be defined, you can simplify the process by importing them.

Tax Rules

Step 1: Complete the Tax Rule Information

  1. On the Admin sidebar, go to Stores > Taxes > Tax Rules.

  2. In the upper-right corner, click Add New Tax Rule.

  3. Under Tax Rule Information, enter a Name for the new rule.

  4. Choose the Tax Rate that applies to the rule. If you need to edit an existing tax rate, do the following:

    • Hover over the tax rate, and click the Edit icon.

    • Update the form as needed, and click Save.

    Tax Rule Information

  5. To enter tax rates, use either of the following methods:

Method 1: Enter Tax Rates Manually

  1. Click Add New Tax Rate.

  2. Complete the form as needed. See Tax Zones and Rates.

  3. When complete, click Save.

    New Tax Rate

Method 2: Import Tax Rates

  1. Scroll down to the section at the bottom of the page.

  2. To import tax rates, do the following:

    • Click Choose File, and navigate to the CSV file with the tax rates to be imported.

    • Click Import Tax Rates.

  3. To export tax rates, click Export Tax Rates. See Import/Export Tax Rates.

Import / Export Tax Rates

Step 2: Complete the Additional Settings

Click Additional Settings to open the section. Then, do the following:

  1. Choose the Customer Tax Class to which the rule applies.

    • To edit a customer tax class, click the edit icon. Then, update the form as needed and click Save.

    • To create a new tax class, click Add New Tax Class. Then, complete the form as needed, and click Save.

  2. Choose the Product Tax Class to which the rule applies.

    • To edit a product tax class, click the edit icon. Then, update the form as needed and click Save.

    • To create a new tax class, click Add New Tax Class. Then, complete the form as needed and click Save.

  3. In the Priority field, enter a number to indicate the priority of this tax, when more than one tax applies.

    If two tax rules with the same priority apply, the taxes are added together. If two taxes with different priority settings apply, the taxes are compounded.

  4. If you want taxes to be based on the order subtotal, select the Calculate off Subtotal Only checkbox.

  5. In the Sort Order field, enter a number to indicate the order of this tax rule when listed with others.

    Additional Settings

  6. When complete, click Save Rule.