> For the complete documentation index, see [llms.txt](https://docs.algebra.finance/algebra-integral-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algebra.finance/algebra-integral-documentation/liquidity-provisioning-tutorials-and-faqs/how-apr-is-calculated.md).

# How APR is Calculated

{% hint style="info" %}
**Note for DEX Teams:**

Here you can explain how your platform calculates the APR shown to liquidity providers.

**Tailor the section to reflect your specific UI and reward mechanics. Ensure that any APR displayed on your frontend is clearly broken down and matches this explanation.**
{% endhint %}

In an Algebra-powered DEX with concentrated liquidity, each liquidity provider position earns its own fee share based on its specific price range. The displayed APR reflects a combination of earned swap fees and any additional rewards from active farming campaigns.

### LP Fee APR <a href="#lp-fee-apr" id="lp-fee-apr"></a>

<figure><img src="/files/4hdaAGr3YooycL2agyoR" alt="" width="331"><figcaption></figcaption></figure>

• **dayFees**: daily fees in the pool (USD)

• **liquidity**: total liquidity in the pool

• **positionLiquidity**: liquidity provided by the position (in range)

• **amount0USD**: value of token 0 in USD

• **amount1USD**: value of token 1 in USD

{% hint style="info" %}
APR is calculated **every 2 minutes**
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.algebra.finance/algebra-integral-documentation/liquidity-provisioning-tutorials-and-faqs/how-apr-is-calculated.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
