# Auto-Tax Calculation

<figure><img src="/files/9xNZqmSspOi9iNrdYZEJ" alt=""><figcaption></figcaption></figure>

If you're tired of using the WooCommerce Tax plugin, we offer a simple and reliable solution to automate sales tax, VAT, and GST calculations for all your transactions by leveraging Stripe Tax Calculation.

{% hint style="warning" %}
Currently, only The [<mark style="color:red;">**Checkout Redirection**</mark>](/payment-methods/checkout-redirect.md) is supported.
{% endhint %}

### Stripe Tax Setting

to getting started, You need to configure your Stripe Tax setting in the [Dashboard](https://dashboard.stripe.com/settings/tax). &#x20;

1. [Confirm your origin address](https://docs.stripe.com/tax/set-up#origin-address). Review and confirm that your details are correct.
2. [Select a preset tax code](https://docs.stripe.com/tax/set-up#preset-tax-code). We use it to apply the correct tax rate.
3. [Select whether prices include tax](https://docs.stripe.com/tax/set-up#default-tax-behavior) to have a tax behavior on every price for products. (Included or Excluded)
4. [Add tax registrations](https://docs.stripe.com/tax/set-up#add-registrations). Add an active tax registration when you’ve exceeded a tax threshold.

<figure><img src="/files/WazEPCQP1UEnWIVzQVeA" alt=""><figcaption></figcaption></figure>

### Enable Stripe Tax In Checkout

Once the preset tax is done in the Stripe Dashboard, you need to enable auto-tax calculation in our plugin's Checkout Redirection settings on your site. Navigate to Woo Stripe Pay -> Payment Methods -> Checkout Redirect -> Setup:

<figure><img src="/files/5K4kytX2p85dgn7k71rT" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
However, this setting will conflict with the WooCommerce Tax plugin. If WooCommerce Tax is enabled, our plugin will skip using the Stripe Auto Tax feature during checkout to avoid any conflicts.
{% endhint %}

Therefore, please ensure that the WooCommerce Tax is disabled. To do so, navigate to WooCommerce -> Settings -> General:

<figure><img src="/files/LdJwtwu3g5rSRKyATXen" alt=""><figcaption></figcaption></figure>

### Override Product tax code

You can also override the preset tax code if you have different product types that require different tax rates or calculations.

For instance, if your default tax code is set to "General - Electronically Supplied Services" in the Stripe Dashboard, but you have a Software as a Service (SaaS) product that needs to use the "txcd\_10103001" tax code, you can specify this by adding a "**tax\_code**" key in the WooCommerce product attributes with the value "txcd\_10103001".

To view all available tax codes and their descriptions, please refer to the Stripe documentation at <https://docs.stripe.com/tax/tax-codes>.

<div align="left"><figure><img src="/files/NYac93pbPxFOvKZnLnRw" alt=""><figcaption></figcaption></figure></div>

### Testing

Once we've completed the above settings, we can observe how it works on the Stripe-hosted checkout page with taxes. By selecting different countries during the checkout process, you'll be able to see the difference in the total price (if the tax behavior is set to exclude taxes from the product prices).

<figure><img src="/files/rNeOGJpF3pHGGPTYtRti" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://woo-docs.payaddons.com/fundamentals/auto-tax-calculation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
