# Understanding Impermanent Loss

**What Is Impermanent Loss (IL)?**

When providing liquidity, Impermanent Loss (IL) occurs when the value of your assets in a liquidity pool changes compared to simply holding them in your wallet. This happens because of price movements between the paired tokens in the pool. While liquidity provision generates fees and rewards, the divergence in token prices can lead to lower returns than expected – this is the impermanent loss.

The term “impermanent” is used because the **loss isn’t realized until you withdraw your liquidity.** If prices realign to their original ratio, the loss can disappear. However, this also means that if you **withdraw at an unfavorable price ratio, the loss becomes permanent.**

<mark style="color:red;">**RULE 1: IL is fixed only once position is closed**</mark>

***

#### **IL as Part of the PnL Equation** <a href="#il-as-part-of-the-pnl-equation" id="il-as-part-of-the-pnl-equation"></a>

Your overall PnL in liquidity provision consists of 3 components:

* **Yield Earned:** Rewards from providing liquidity.
* **Token Price Movement:** The appreciation or depreciation of the tokens in your position.
* **Impermanent Loss:** The reduction in value due to price divergence between tokens in the pool.

When users focus only on fees earned and token appreciation, they often overlook the IL component. This can make the position appear profitable when, in fact, the net returns are lower due to IL.

<mark style="color:red;">**RULE 2: Liquidity Farming has non-linear PnL**</mark>

***

#### **Long Is ONLY Long, Short Is ONLY Short Within the Range**  <a href="#long-is-only-long-short-is-only-short-within-the-range" id="long-is-only-long-short-is-only-short-within-the-range"></a>

In DefiTuna, positions operate within a specific price range. Here’s what that means:

* A **position with a** [**long setup**](/learn-more/how-to-open-different-lp-strategies/long-farming.md) benefits from token appreciation but only within the active range. Once the price exits the range, the position effectively “freezes.” No new fees are earned, and the unrealized IL is locked in.
* A **position with a** [**short setup**](/learn-more/how-to-open-different-lp-strategies/short-farming.md) works the opposite way but is similarly constrained by its range.

Many users mistakenly believe they are making money as token prices move favorably within the range. However, if the price moves out of range, the position stops earning, and any gains could be eroded by IL upon exit.

<mark style="color:red;">**RULE 3: Out-of range positions brings nothing but IL**</mark>

***

#### **Leverage and Its Effect on IL** <a href="#leverage-and-its-effect-on-il" id="leverage-and-its-effect-on-il"></a>

* **Amplification of Exposure:** Leverage magnifies both gains and losses. In the context of liquidity provision, this means that any price movement between the paired tokens has a multiplied effect on your position. If the tokens diverge in price, the impermanent loss is amplified in proportion to the leverage.
* **Higher Funding:** Leveraged positions typically involve borrowing assets, which adds to your overall costs. If the IL is already reducing your returns, the additional funding can turn a seemingly profitable position into a loss.
* **Margin Pressure:** In leveraged setups, IL can reduce your position's value to the point where margin requirements are no longer met. This could lead to forced liquidation, turning unrealized losses into realized ones.

<mark style="color:red;">**RULE 4: Leverage amplifies your IL**</mark>

***

#### Practical Considerations <a href="#practical-considerations" id="practical-considerations"></a>

* **Choose Wider Ranges for Stability:** A wider range reduces the sensitivity to price movements and mitigates IL, though it may lower your fee earnings.
* **Use Conservative Leverage:** Lower leverage minimizes the amplification of IL and gives you more room to manage your position without being forced to close.
* **Monitor Constantly:** With both leverage and narrow ranges, continuous monitoring is essential to avoid adverse outcomes.


---

# 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.defituna.com/learn-more/understanding-impermanent-loss.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.
