> For the complete documentation index, see [llms.txt](https://alembic.gitbook.io/alembic-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alembic.gitbook.io/alembic-docs/introduction/getting-started/user-guide/fees-and-rewards/apy-calculation-explained.md).

# APY Calculation Explained

**APY (Annual Percentage Yield)** represents the **annualized rate of return** earned from a given vault, including compounding effects over time.

#### **How Alembic Calculates APY**

1. **Track Real-Time Performance:** Smart contracts monitor rewards generated by the vault continuously.
2. **Annualize the Return:** The system extrapolates short-term performance (e.g., daily or weekly yield) into an annual rate.
3. **Display Dynamic Results:** APY is updated in real-time based on actual strategy performance and market data.

> *Formula:*\
> **APY = (1 + r/n)ⁿ – 1**\
> where *r* is the periodic yield rate and *n* is the number of compounding periods per year.

#### **Important Notes**

* **APY is indicative, not fixed.** Returns fluctuate depending on token prices, rewards, and network conditions.
* **Auto-compounding vaults** may achieve higher effective APY through reinvestment of rewards.
* **Historical data** is available within the dashboard for transparency and performance tracking.


---

# 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://alembic.gitbook.io/alembic-docs/introduction/getting-started/user-guide/fees-and-rewards/apy-calculation-explained.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.
