> For the complete documentation index, see [llms.txt](https://docs.gammaswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gammaswap.com/guides/tradeperpoptions/how-to-calculate-pnl.md).

# How to Calculate PnL

### Calculating PnL for a Long, Short or Straddle

To understand your payoff for a specific pool, simply navigate to that pool, enter a deposit in the preferred trade position and see your PnL on the left hand side.

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

Hover over the chart to see the price change % and the associated PnL change. It will also show the adjusted values based on the price of the market in the AMM and the PnL in dollars based on your trade position. \
\
If you increase your leverage, the returns will increase but your time to liquidation will be reduced.\
\
To see the payoff of a Long or Short, simply navigate to that trade position in the Trade Tool on the right.

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

To see further details on your trade like Projected LTV, Opening Cost, Delta and Theta adjusted for your trade position simply click the dropdown.

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

The PnL chart will also take into account your opening cost but it doesn't account for borrow fees.

### Calculator

There is also a built in calculator to calculate all of the position details and see your PnL based on a predetermined exit price.

To navigate to the calculator, click on this button at the top right of the trade tool for the specific market you are interested in.

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

Once you are on the calculator pop up, put in your ideal trade position, deposit size and exit price. \
\
You can then see all of the position details and your PnL for the specific exit price (not accounting for borrow fees).

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

As you increase the leverage, notice how your PnL increases but your Time to Liquidation decreases.


---

# 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.gammaswap.com/guides/tradeperpoptions/how-to-calculate-pnl.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.
