> For the complete documentation index, see [llms.txt](https://help.mystocksportfolio.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mystocksportfolio.app/help-guide/calculations/unrealized-and-realized.md).

# Unrealized and realized

Unrealized P/L (Profit and loss) refers to your holdings that haven't been sold yet. To sell a holding, add a transaction of type Sell.

Realized P/L refers to your holdings which have been sold.

The app uses FIFO accounting by default for calculating unrealized and realized P/L. To adjust to a different accounting method (such as LIFO, average cost, selected lot), you can edit a transaction and change the accounting method.
