> For the complete documentation index, see [llms.txt](https://specs.enzyme.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://specs.enzyme.finance/fee-formulas/performance-fee.md).

# Performance Fee

### Principles

* Performance fee is paid after a period of constant share supply. Share supply changes on the following actions:
  * buy shares
  * redeem shares
  * claim fees
* Performance fee is only paid if the share price at the end of a share period is larger than the high watermark.
* Only the wealth created for the share price above high watermark is taken into account.
* Performance fee is paid out in shares, as all other fees.
* Order of fee registrations: Management Fee, Performance Fee, Entrance Fees, Exit Fees

### Formulas

* Call `totalSupply` = $$TS\_i$$ i.e. totalSupply before minting or burning shares for the action)
* Read `highWatermark` from storage (this is the share price after the previous performance fee calculation, see below), $$hwm$$
* Current gross share price $$g\_i = GAV\_i / TS\_i$$
* Wealth created during period: $$W\_i = max(g\_i - hwm, 0) \cdot TS\_i$$
* Value of performance fee during period $$F\_i = W\_i \cdot x%$$, where $$x$$is the performance fee percentage
* Performance fee shares (dilute existing shares): $$f\_i = \frac{F\_i \cdot TS\_i}{GAV\_i - F\_i}$$
* Calculate share price (after all fees have been minted or burnt): $$g\_i^\prime = GAV\_i / TS\_i^\prime$$ where $$TS^\prime\_i$$ is the new total supply after all fees have been settled. If $$g^\prime\_i > hwm$$ (i.e. also $$W\_i$$ and $$F\_i$$ will be larger than zero), then update storage $$hwm = g^\prime\_i$$.

{% hint style="info" %}
On Sulu(v4) we removed the crystallisation period. Without a "crystallisation period", the manager can potentially earn more performance fees through continuous accrual instead of quarterly or yearly accrual. Managers should, therefore, set the rate for the new simplified performance fee lower than the rate of the previously used performance fee.
{% 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://specs.enzyme.finance/fee-formulas/performance-fee.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.
