#5793·ghostfolio

[BUG] Wrong performance calculation

Author: DoublemystCreated Oct 19, 2025Updated Sep 17, 2026
Labelsquestion

Bug Description

In my performance calculation, the % gain amount is much higher, than the actual gain.

To Reproduce

  1. Import my test activity file
  2. Check the overview summary, total payment and total gain

Expected Behavior Total investment - 30531.12 CHF Absolute Net performance - 1984.65 CHF

1984.65 / 30531.12 * 100 = 6.5% Under Net Performance it is displaying +10.54%

If the net performance were 10.54%, the Total Assets should have been: 30531.12 * 1.1054 = 33749.1 CHF, but it is only 32578.77 CHF

Edit: I think I found the issue. As I understand, the net performance is calculated like: Performance 1 * Allocation 1 + ... + Performance n * Allocation n = Net Performance %

Image

In my example it would be: 8.71% * 84.24% + 19.98% + 15.76% = 10.48% (rounding issues and we have more or less the displayed 10.54%)

But the performance is calculated with wrong numbers, probably currency issues again:

1371.86 / 26019.66 * 100 = 5.27% Displayed is 8.71%

Image

And 612.79 / 4511.46 * 100 = 13.58%

Image

And the total would be: 5.27% * 84.24% + 13.58% * 15.76% = 6.58 %

This is also the total I would expect based on the total invest and absolute net performance in the overview page.

Screenshots

Image

Logs

Environment

Ghostfolio Version 2.209.0 (edit 2: also checked in 2.210.1 and in 2.211.0)
Self-hosted
Experimental Features disabled
LibreWolf
Linux

Additional Context Here is the test activity file:

ghostfolio-export-202510190919.json