> For the complete documentation index, see [llms.txt](https://help.margex.com/help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.margex.com/help-center/leverage-trading-guide/how-leverage-works/roe-calculation.md).

# RoE and Trade Interface Layout

## Trade Layout

The PnL/RoE indicator visualization in the interface switch can be performed by changing the toggle on the '[Settings](https://margex.com/app/settings)' page of your Margex account.

* In order to switch between layouts, first, proceed to the '[Settings](https://margex.com/app/settings)' page of your Margex account:

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

* From there, press on the 'Trade Layout' switch:

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

From now on, the RoE indicator would be reflected in your 'Trading Module' as the evaluation of your positions' performance.

## What is RoE and how it's calculated?

**Return on Equity** (ROE%), is an indicator which reflects the current **NET** performance of an open trade.

* <mark style="color:green;">Positive</mark> ROE means that the trade is currently profitable
* <mark style="color:red;">Negative</mark> ROE means that the trade is currently at a net loss currently

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

ROE is calculated based on the trader’s **margin reserved for a trade**, using the following formula:

* **ROE%** = (Unrealized PnL + Realized PnL - CloseOrderCommission) / Margin

For example, if a trader has used $100 as Margin for a position, a ROE value of +20% will mean that the trade is essentially at a net profit of $20.

{% hint style="success" %}
ROE always takes into account not only the flat PnL from the price movement of the asset being traded - but also any associated [trade fees and funding](https://margex.com/margex-fees).\
\
When initially opening a position, the ROE% indicator will show a negative value. This is due to the ROE% indicator taking into account the opening and closing trade fees which are incurred for the position.

This provides traders with a fully transparent and precise ROE indicator.
{% endhint %}
