How taxes work in WooCommerce

For complex tax setups, understanding how WooCommerce handles tax can help with configuration and troubleshooting.

Related guides for additional reference:

Let’s take a look at a few nuances.

Defining prices

↑ Back to top

Product prices can be defined as either:

  1. Including tax
  2. Excluding tax

When we say defined including tax, we are referring to the taxes of the store’s base country. For example, if your store’s base country is the United Kingdom, you would define product prices with a tax rate of 20% (shipping prices are always defined excluding tax).

It’s important to keep in mind that if your prices include tax, the price visible to customers might change based on the country in which they are located if that country’s tax rate is different from your store’s base country.

For example, in your UK-based store with only one tax rate configured:

  • You create a product with a tax inclusive price of £120.
  • Customers with UK-based addresses pay £120 (£100 + £20 VAT).
  • Customers outside the UK pay £100, because no tax rates would match their location.

OR

Your UK-based store sells to the UK (20%), France (19%), and Norway (25%):

  • You create a product with a tax-inclusive price of £120.
  • Customers in the UK pay £120 (£100 + £20 VAT).
  • Customers in France pay £119 (£100 + £19 Tax).
  • Customers in Norway pay £125 (£100 + £25 Tax).
  • Customers outside the UK, France, or Norway again pay £100, because no tax rates are applicable to them.

See a practical example of how to configure a multi-country scenario.

Some merchants may want to charge the same price regardless of location and taxes. The base price should then be dynamically adjusted to compensate for tax variances. See our developer-level documentation for configuring this scenario.

Tax calculations (simplified)

↑ Back to top

Tax calculations are performed per line, not per item. The following calculations can be used to work out how much tax is applicable to a given price.

To calculate a tax rate of 20% for product prices that exclude tax:

Tax = Line Price * 0.2

To calculate a tax rate of 20% for product prices that include tax:

Tax = Line Price - ( Line Price / 1.2 )

Note:

When prices already include tax, the tax is not exactly 20% of the total line price. In the example in the previous section, if we simply calculate 20% of the total line price (£120), we’ll end up with an incorrect tax of £24, which includes 20% of the base product and the taxes that were already added — hence the use of a different calculation.

Cross-border/country/region taxes

↑ Back to top

To calculate taxes across various countries for tax exclusive prices, take the tax exclusive price and multiply it by the tax rate. Prices including tax are slightly more complicated.

Prices excluding tax

↑ Back to top

Let’s take an example of selling from the UK (20% tax) to Germany. The UK price of the product is £120, including tax. If UK-based sellers do not need to charge tax when selling physical goods to Germany, the German price would be as follows:

  • UK price = 120 / 1.2 = 100
  • UK tax = 20
  • German price = 100

Using the example above, let’s consider a digital good taxed at 19%. First, we remove the UK tax, then apply the German tax as follows:

  • UK price = 120 / 1.2 = 100
  • UK tax = 20
  • German price = 100 * 1.19 = 119

Prices including tax

↑ Back to top

A common request is to charge the same amount everywhere and absorb the differences in taxes. Based on our previous two examples, this would result in the following:

When selling from the UK (20% tax) to Germany, the price of the product is £120 including tax. If UK-based sellers do not need to charge tax for physical goods in Germany, then it works as follows:

  • UK price = 120
  • UK tax = 20
  • German price = 120
  • German tax = 0

The German price is the same as the UK price, except no taxes are included for the Germans, so the base product price is higher.

For digital goods where a German tax of 19% needs to be charged, the calculation would be as follows:

  • UK price = 120
  • UK tax = 20
  • German price = 120 / 1.19 = 100.84
  • German tax = 120 – (120 / 1.19) = 19.1596

The German price remains the same, but as we’re collecting taxes, we see the base product price is slightly higher than the UK.

Questions and support

↑ Back to top

Do you still have questions and need assistance? 

This documentation is about the free, core WooCommerce plugin, for which support is provided in our community forums on WordPress.org. By searching this forum, you’ll often find that your question has been asked and answered before.

If you haven’t created a WordPress.org account to use the forums, here’s how.

  • If you’re looking to extend the core functionality shown here, we recommend reviewing available extensions in the WooCommerce Marketplace.
  • Need ongoing advanced support or a customization built for WooCommerce? Hire a Woo Agency Partner.
  • Are you a developer building your own WooCommerce integration or extension? Check our Developer Resources.

If you weren’t able to find the information you need, please use the feedback thumbs below to let us know.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.