Your broker shows +45% on a stock, a friend who owns the same one sees +30%, and another app shows yet another number. Often nobody is wrong: each one calculates the cost basis differently, or in another currency. Here is how to make sense of it.
Average cost per share
The average cost is the average price paid for each share you still hold, fees included. If you buy 10 shares at €100 and then 10 at €120, your average cost is €110 (plus fees divided by 20).
When you sell part of the position, the most common method keeps the same average cost for the remaining shares. The gain from the sale is then "realised" and leaves the position.
The partial-sale trap
- Average cost kept: the 10 remaining shares cost €500 and are worth €1,400, i.e. +€900 (+180%). The €700 gain from the sale is shown separately, as a realised gain.
- Money taken back: some brokers deduct the sale proceeds from the cost. You have already taken back more than you invested, so the remaining shares are "free" and the percentage no longer makes sense.
Both are correct. What matters is the total return (here +€1,600), which does not depend on any convention.
Currency effect: when the dollar eats your performance
For a stock priced in dollars, your performance in euros combines two things: the share price and the exchange rate.
The company did +30%, but you made 19%. It is not your broker's mistake: it is the dollar. Over the long run currency effects tend to even out, but they can weigh heavily over a few years.
Stock splits
When a company splits its stock (say 1 share becomes 10), your number of shares is multiplied and your average cost divided accordingly. Nothing changes in the value of your position. A tracker that misses the split will still show a 90% drop: the most common spreadsheet error.