# What is a liquidity provider (LP) fee?

**A Liquidity Provider (LP) fee is applied to all swaps when using the Zebra Protocol.**

&#x20;

The LP fee is taken from the input token.

&#x20;

The liquidity provider fees are distributed to liquidity providers as a reward for supplying tokens to the liquidity pool.

&#x20;

The liquidity provider fee is paid proportionally to all liquidity providers who have an active liquidity position. Liquidity providers who have a position outside of the price range at that moment will not earn fees.

&#x20;

Liquidity provider fees are paid entirely to the liquidity providers.&#x20;


---

# 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://zebra.gitbook.io/zebra-document/q-and-a/what-is-a-liquidity-provider-lp-fee.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.
