Skip to content

Total Gain vs. Unrealized Gain

Learn why a position's unrealized gain can differ from your portfolio's Total Gain, with an example of cost basis and the starting value of the measurement period.

By Truefolio team4 min readWritten Published
In this guide

Different questions, different starting points

Total Gain measures portfolio profit over the period being tracked. Unrealized Gain compares the current value of positions you still hold with their cost basis. A purchase can predate the tracked period, so the figures can differ even when each calculation is consistent with its own baseline.

Start by asking which question you want to answer: how much have these open positions gained relative to their cost, or how much did the portfolio earn over this particular period? The answer tells you which baseline to use.

One position can show +80% and +20%

Suppose you bought a position for $1,000. It was worth $1,500 when the measurement period began and is worth $1,800 today. You still hold the entire position. For this hypothetical example, assume no other holdings, cash movements, income, fees or currency changes.

The same $1,800 position measured from two different baselines.
MeasureCalculationResult
Unrealized Gain$1,800 − $1,000 cost basis+$800
Unrealized Gain percentage$800 ÷ $1,000+80.00%
Total Gain over the period$1,800 − $1,500 starting value+$300
Total Gain percentage$300 ÷ $1,500+20.00%

The earlier $500 increase happened before the measurement period. It is part of the open position's Unrealized Gain, but it is not profit earned within this period. Both percentages become understandable once their starting points are visible.

What Total Gain measures in Truefolio

Truefolio calculates period profit by subtracting starting value and net external contributions from ending value. Its Total Gain percentage divides that profit by starting value plus net contributions. A deposit is additional funding, not investment profit, and a withdrawal is not automatically an investment loss.

Cash movements can still change the denominator of the simple percentage. When that denominator is too small or unsuitable, Truefolio can withhold the percentage while a dollar gain remains available. Read the amount and the percentage as related measurements rather than assuming every account must show both.

On a Truefolio profile, Total Gain covers the available tracked history. On the Performance tab, the selected period determines the starting baseline. Tracked history can include reconstructed records from before the account was connected, so the connection date is not necessarily the measurement start date.

What Unrealized Gain measures

For a simple long position, Unrealized Gain compares current value with cost basis. That basis reflects acquisition costs and any applicable adjustments. When a position was bought before the tracked period, its unrealized gain can include appreciation that happened before the portfolio performance baseline.

A sale changes which positions remain open. The sold shares' gains are no longer unrealized, but the sale does not erase their contribution to portfolio performance. For that reason, adding the unrealized figures on your current holdings will not necessarily reproduce Total Gain for the period.

Cost-basis coverage matters too. When acquisition information is unavailable, a meaningful position gain may be unavailable as well. Treat a missing value as unknown rather than zero. Short positions, options and corporate actions can require additional treatment beyond the simple long-position example above.

Make the comparison useful

  • Check the period: are you measuring from a purchase date or a portfolio baseline?
  • Check the scope: does the figure cover current open positions or the whole measured portfolio?
  • Check income and costs: portfolio gain can include dividend and interest income, after operating fees, while a position's value-versus-cost comparison answers a different question.
  • Check valuation time, currency and cost-basis coverage before comparing figures across services.

Truefolio uses market closing prices for its performance calculations, which can differ from figures captured at another time. Neither Total Gain nor Unrealized Gain alone describes portfolio risk or determines a personal tax bill. These are performance explanations, not tax or investment advice.

Sources

See the measures in context.

Explore Truefolio's sample portfolio without connecting an account. The sample uses invented data and is not a real investor's track record.

Explore the sample portfolio

Educational content only, not personalized investment advice. Investing involves risk. Past performance does not guarantee future results.