# Chapter 7 - Comparing Yields across ranges

Comparing yields in AMMs can be quite difficult. \
\
We have a way to compare any APY regardless of range using this [spreadsheet](https://docs.google.com/spreadsheets/d/1GaAggnEQ26-QoSvuIrIKbpqB2jazToBu7xtKe6IQXkY/edit?usp=sharing).

## Spreadsheet

In the spreadsheet, you can visualize how the UniV3 Yield increases by range.

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

You can see how the Impermanent Loss varies by range.

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

Finally, you can see how leveraged the V3 liquidity range is compared to a full range V2 position.

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

## Convert V3 range to V2 APY

To convert a V3 range that is \~30% to a V2 APY, here is how. Enter the yield for the 30% range "UniV3 APY", the lower price of the range "Lower Price" and the upper price of the range "Upper Price" into the orange input boxes.

<figure><img src="/files/FSyPxuJVpy1HFfk5WrJ9" alt="" width="563"><figcaption></figcaption></figure>

Then we get the outputs - the "Log Range Mid Price" (which should equal the current price), the "Log Range %" (it matches 30%...looks good), and the "Leverage Multiplier" (showing how leveraged your range is vs full range).\
\
Finally, in the last row we can see the "Deleveraged APY" of 6.73%.

If we don't know what the range should be, we can use the following range calculator.

<figure><img src="/files/EPNIYXx6f65962ss2NDV" alt="" width="563"><figcaption></figcaption></figure>

By entering in the "Current Price" and the "Range" %, we can get the "Lower Price" and the "Upper Price" based on the range.

## Convert V2 APY to range

We can also convert a full range UniV2 APY into any range. Here is how.

First input in the full range yield into "UniV2 APY", the "Lower Price" for your desired range and the "Upper Price".&#x20;

<figure><img src="/files/kAXlDHkNqL72F42GSH0W" alt="" width="563"><figcaption></figcaption></figure>

In the grey boxes, you will receive as output the "Log Range Mid Price" which is the middle of the range, the "Log Range %" so the % length of the range, the "Leverage Multiplier" or how leveraged the range is compared to full range.\
\
Finally, in orange we have the "Leveraged APY" which is the yield for the selected range.\
\
**Congratulations, you can now compare yields across any range!** 🥳


---

# 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://academy.gammaswap.com/3-hedge-il-in-clamm/chapter-7-comparing-yields-across-ranges.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.
