# Withdrawal Price Impact

Now let’s assume we are withdrawing from the BAL/WETH 80/20 Pool, we want to remove 5 WETH from the pool not knowing how many pool tokens we will need to redeem. We will be charged swap fees on the portion of our withdrawal which is “off-balance”. In this case 80% of our pool is not in the form of WETH, therefore that is the taxed portion. In this case we know we will receive the total of 5 WETH from the withdrawal, (At), this means our “sent” value will be unknown and slightly higher to compensate the swap fee we are charged.

The current pool traits are as follows:

* ***Swap fee: 0.05%***
* ***BAL: 5,598,984***
* ***WETH: 5,798.4836***
* ***BPT: 2,816,401.77912812***

![](/files/moO6AZ07v9YM0fQcGQ0A)

![](/files/3rcB4IPRioesjutsULfC)

This equation can be rearranged to solve for A (sent) in terms of our BPT (P\_redeemed) as follows:

![](/files/6M5driSLcVbYAprP8Tvq)

Using this equation, we can solve for A (sent):

For our Spot Price:

$$
A\_{t}=B\_{t} \ \* \ \Bigg(1-\bigg(1-{\frac {P\_{redeemed}}{P\_{supply}}} \bigg)^{\frac {1}{W\_{t}}} \Bigg)
$$

![](/files/j3gu56wf7PfnENVa98tB)

From here we can calculate the amount of pool tokens we redeemed to receive our 5 WETH:

Then, we must calculate the ratio of the pool’s invariant before and after the withdrawal.

![](/files/HNaNOQe9i7sSi9OjL1xu)

Using the invariant ratio, we can determine the new total number of pool tokens and in the same stroke, calculate the amount of pool tokens needed to exchange for our WETH.

![](/files/41pTZfHWjZCM3jne4cuU)

Knowing the amount of BPT we needed to redeem and the amount of WETH we received in the withdrawal we can determine the effective price of a pool token to compare with our spot price:

![](/files/MkvSEd4x1Hqxd9dyuAo2)

Please note the swap fee and pool traits change dynamically over time making calculations such as these valid for only a short period of time. The purpose of these examples is to deepen the understanding of our platform for those interested in are already utilizing Balancer Protocol.


---

# 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://balancer-dao.gitbook.io/learn-about-balancer/fundamentals/white-paper/deposits-and-withdrawals/withdrawals/singled-sided-withdrawals/withdrawal-price-impact.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.
