Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

What are Tax Rules and How Do I Use Them?

Tax Rules are defined as a combination of a Customer Tax Class and a Product Tax Class with a Tax Rate (see What are tax classes? (product and customer)). Each customer will be assigned a class and each product is assigned a tax class. Each region is assigned a set of up to five tax rates. Based on the class of the customer and the class of the products in the shopping cart, and the region (this can be the shipping address, billing address, or shipping origin) the system will calculate out the appropriate tax.

To create a Tax Rule go to Sales -> Tax -> Manage Tax Rules. Once there you will see a grid list of the Tax Rules you have created. To create a Tax Rule you will also have to create Tax Rates, along with the Tax Classes. See How do I define tax rates? for more on setting Tax Rates.

Once you have created your Tax Classes and Tax Rates you can create rules. In this case we are going to create four rules. We have two different customer types, Retail customers and Wholesale Customers, and two different types of products, taxable and downloadable.

In this example we are a store in California and we have created a tax rate of 8.25%. (NOTE: This is for example purposes only. Consult your state laws for tax rates). We have also left a rate as being 0%.

The first Tax Rule we create is for Retail Customers buying taxable goods.

image

We select the Customer and Product class from the dropdowns and then select the Rate we want to use for this combination. In this case we want to use the first rate, 8.25%.

Select Save Rule and Retail customers with a shipping address in California will be charged a rate of 8.25% on all items marked as being Taxable Goods. That is set, but let’s say we have downloadable items we don’t want charge tax on. We create a new rule with the combination of the Retail Customer Tax Class and the Downloadable Items Product Tax Class and select the rate we want to charge.

In this case the rate is the second we created, 0.0%, so customers will not be charged tax on these items.

Now that we have our retail customers set up with tax rates we need to set up the two rules for Wholesale Customers. We select the Wholesale Customer from the tax class, select Taxable Items and Rate 2. Then we do the same for Downloadable Items and we have our four tax rates created:

image

If you need to charge tax on shipping, you can do so by creating a Tax Rule for shipping. This means that you should create a Product Tax Class that will be applied to shipping. Navigate to System -> Configuration, and click the Sales tab. In the Tax Calculation section, you can select which product tax class will be applied to the shipping, if you choose to tax shipping. You can also determine whether tax will apply before or after discounts, and how the region of the Tax Rate will be determined (billing address, shipping destination, or shipping origin).

RSS comments feed for this entry

User Comments

|7 comments
  1. Rob Stevenson

    1Rob Stevenson |posted September 26 2007

    It is required in some jurisdictions that tax is charged on goods AND servcies. That means that the tax must be calculated after the shipping charges are added.

  2. YoavKutner

    2YoavKutner |posted September 26 2007

    Magento will have configuration values to determine how tax is calculated in near future releases.

  3. kerry

    3kerry from Texas|posted January 16 2008

    All the images are broken in this article… hard to tell how to set tax rules. :-(

  4. varienchris

    4varienchris |posted January 16 2008

    Images are back now.

  5. kerry

    5kerry from Texas|posted January 16 2008

    Yay, now it makes sense!

    Thanks Varienchris.

    ~Kerry

  6. kerry

    6kerry from Texas|posted January 16 2008

    "In this example we are a store in California...”

    I realize this module is under construction, but where will the tax rules pick up the fact that you are a store in California? Will it get this information from SYSTEM - CONFIGURATION - Shipping - Origin?

    SYSTEM - CONFIGURATION - General - Locale Options would seem likely, except the choices there are Locale (English/US) and Timezone (America/hmmm, Menominee?).

    TIA,
    ~Kerry

  7. varienchris

    7varienchris |posted January 16 2008

    Kerry,

    the tax rule picks up the tax rates, which you will set up prior to creating the rules. In this example it picked the rule up as we had set up a rate for the state of California, as described here:
    http://www.magentocommerce.com/knowledge-base/entry/how-do-i-define-tax-rates-per-product-tax-rules/

  • Comments in this section are now closed, please check out the forum for discussions about this topic.

Explore the Knowledge Base

Professional Services from the Magento Team

Professional Installation from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien    Privacy Policy|Terms of Service
Uncaught exception:
SQLSTATE[HY000]: General error: 1114 The table 'debug_page_loads' is full
#0 /chroot/home/magentoc/svn-live/store/lib/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#1 /chroot/home/magentoc/svn-live/store/lib/Zend/Db/Adapter/Abstract.php(406): Zend_Db_Statement->execute(Array)
#2 /chroot/home/magentoc/svn-live/store/lib/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query('INSERT INTO `de...', Array)
#3 /chroot/home/magentoc/svn-live/store/lib/Zend/Db/Adapter/Abstract.php(484): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `de...', Array)
#4 /chroot/home/magentoc/svn-live/backend/lib/Varien/EProfiler.php(126): Zend_Db_Adapter_Abstract->insert('debug_page_load...', Array)
#5 /chroot/home/magentoc/svn-live/index.php(146): Varien_EProfiler::log()
#6 {main}