# 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="https://1914496991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bGMGaQOhEWbZAuX4oXE%2Fuploads%2FHgBdKOWne5KYhzIQYhiM%2FScreenshot%202025-06-17%20at%2012.06.56%E2%80%AFPM.png?alt=media&#x26;token=0302586f-7356-452f-a314-4a0c2eedb0e8" 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="https://1914496991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bGMGaQOhEWbZAuX4oXE%2Fuploads%2Fi8NIVC6g3e1dd2VAxa94%2FScreenshot%202025-06-17%20at%2012.24.13%E2%80%AFPM.png?alt=media&#x26;token=fe41eae0-c4e0-449e-9768-7324809a7f2d" 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="https://1914496991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bGMGaQOhEWbZAuX4oXE%2Fuploads%2F1zFutAeubBFMObCUjZr9%2FScreenshot%202025-06-17%20at%2012.26.20%E2%80%AFPM.png?alt=media&#x26;token=c6c0e848-9080-4e9d-bbaa-534cf1a02e6e" 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="https://1914496991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bGMGaQOhEWbZAuX4oXE%2Fuploads%2FbYStYBie7NCxlKPlRzkD%2FScreenshot%202025-06-17%20at%202.16.14%E2%80%AFPM.png?alt=media&#x26;token=4f0400fe-438e-4b42-83b1-1d7d4a203a43" 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="https://1914496991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bGMGaQOhEWbZAuX4oXE%2Fuploads%2Fq5EuAylerR72g5YLf7Qt%2FScreenshot%202024-06-04%20at%2012.23.38%E2%80%AFAM.png?alt=media&#x26;token=d4f143e1-e3a9-4fbe-b155-6469fc067429" alt=""><figcaption></figcaption></figure>

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


---

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