# Swapping Tax Tokens

Tax tokens automatically charge a fee when you buy, sell, or sometimes even when you add liquidity or transfer them to another wallet. The tax collected from these tokens is often used for specific purposes, often outlined by the team behind the token

When considering a token to determine if it includes a transaction tax, it’s best to clarify with the team behind the token or look closely at the user interface during a trade

{% hint style="info" %}
If you see an error message like **"Error: Estimated XXX amount invalid. Check your slippage configuration"** it suggests that the token has a transaction tax. However, this alone may not necessarily mean the token has a tax - the message could appear for other reasons, such as high price volatility
{% endhint %}

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

For most Tax tokens, you’ll likely need to use V2 swap mode, but in some cases, depending on which AMM the liquidity was added, you may need to use V3 mode. To check which AMM the liquidity is added on, look through the [analytics dashboard](https://info.camelot.exchange/home/v2) and locate the liquidity pair associated with the token you want to swap on either V2 or V3

{% hint style="danger" %}
**Do not use aggregator swap mode if dealing with a Tax token**. While you can use it in some cases, you might get charged tax multiple times when performing a swap
{% endhint %}

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

### How to process a swap with a tax token?

Before initiating a swap, you'll have to increase the slippage, as the tax imposed by the token needs to be factored into the slippage settings.&#x20;

For example, if the token has a 7% tax, set your slippage tolerance to 7.5% (0.5% default)

To adjust the slippage, look for the ‘gear’ icon on the swap page. Once you click on it, you’ll see a modal where you can adjust the slippage. Once you set the slippage settings, [perform a swap](/get-started/castle-tutorials/step-by-step-guides/swap-tokens.md)

<figure><img src="/files/0Ew2TCv1UCsRWfXnsyZK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/xKJBWFsUPfFtUuALInkB" 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://docs.camelot.exchange/get-started/castle-tutorials/swapping-tax-tokens.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.
