# [Bug] Incorrect calculation of Portfolio growth

Hello team,

I noticed that the current way of calculating portfolio growth is incorrect and can lead to misrepresentation of facts and cause your customers to report taxes incorrectly.

Here’s an example of what I mean:

1. I purchased 1 TSLA @446.5 a few weeks ago
2. I purchased 1 TSLA @497.87 today
3. I sold 1 TSLA @498 later today

How Trading212 calculates my TSLA portfolio:

1. On first purchase, shows me “Price” as 446.5 and “Result” as difference between market value and this “Price”
2. On next purchase, uses average of two amounts 446.5 and 497.87 to show me “Price” as 472.18 and “Result” as the difference between market value and this averaged “Price”
3. On partial sale, it doesn’t recalculate “Price” or “Result”, and this is where my problem is.

Assume if TSLA falls to a value less than this incorrect averaged “Price” of 472.18, like 460, then it will render “Result” as GBP equivalent of -12.18 USD, indicating that my portfolio is going in a loss, where as actually I would be running a profit of 13.63 USD (that is 460 - (446.5 + 497.87 - 498)) minus negligible conversion charges.

The correct way to calculate “Price” should be as follows:

1. Sum all purchase amounts of a given share till date (446.5 + 497.87 = 994.37)
2. Subtract sum of all sales of this share till date from the above amount (994.37 - 498 = 446.37)
3. Divide the resulting amount by number of shares currently held (446.37 / (1 + 1 - 1) = 446.37)

Then the “Result” can simply be rendered by computing “(Market Value - GBP equivalent of Price) * number of shares held” and it will reflect accurate portfolio growth.

I do understand that your current implementation lists “Profit” on sale of each share as the difference between market price and previously calculated averaged price, but that profit entry is only visible in “History” section of Android app, and the “Portfolio” section wrongly suggests “Return” value because of the missing sale information, which cannot even be checked on Desktop at all.

Looking forward to a resolution soon,
Nirdh

It is not incorrect. There are many methods of calculating returns.

I believe they are working on showing the different types.

1 Like

We had this topic debated some times ago.

Currently “industry” standard is UK tax method, average weighted. However I would say many EU countries use FIFO or maybe FILO method.

Maybe I missed T212 commitment reply, that the feature will be delivered. But I am also personally interested in option to choose method.

However to @nirdh I don’t understand what method are you using, because what you display is neither FIFO or FILO.

The current value and return in the app does not take into account previously sold shares, it only calculates the position of what you currently hold.

Current method is Weighted Average method.

The way Trading 212 does it is consistent with UK tax rules for computing capital gains, except that they do not correctly take account of matching rules for trades taking place the same day or within 30 days.

If you were UK taxpayer your gain on sale 3 would be 498 - 487.87 because you are selling a share bought the same day.

It is pretty much impossible for a broker to show results that are correct by all different tax computation conventions applied by different governments. These vary a lot from country to country and can change year to year. Also, your taxable result can also depend on the cost of shares in the same company that you may have bought on other platforms since basis cost per share will be average over all shareholdings where ever held. Trading 212 cannot know about those.

Investors with taxable gains need to keep their own records.