# PnL Calculation

Understanding Profit and Loss (PnL) is crucial to managing investments and making informed decisions. Traders have insight into the PnL of their past trades in the 'Account' page at https://trade.bluefin.io/account/history.

Unrealized PnL: The profit and loss not yet realized from closing an open position. It is calculated as the difference between the entry and current index prices multiplied by the position quantity.

$\text{Unralized PnL} = \begin{cases} \text{Position Size}\times \big(\text{Index Price} - \text{Entry Price}\big) \quad &\text{if Long}, \\ \text{Position Size}\times \big(\text{Entry Price} - \text{Index Price}\big) \quad &\text{if Short}.\end{cases}$

Realized PnL: The profit and loss that has already been realized from (partially) closing the position. It is calculated as the difference between the entry and exit prices multiplied by the quantity closed.

$\text{Realized PnL} = \begin{cases} \text{Size Closed}\times \big(\text{Exit Price} - \text{Entry Price}\big) \quad &\text{if Long}, \\ \text{Size Closed}\times \big(\text{Entry Price} - \text{Exit Price}\big) \quad &\text{if Short}.\end{cases}$

### How to View PnL on Bluefin

You can access current and historical PnL metrics on Bluefin by visiting the account page https://trade.bluefin.io/account. Bluefin provides a user-friendly interface to view and manage your PnL across all open and closed perpetual positions.