A realized gain is the profit locked in when an investment is sold; an unrealized gain is the increase in value of an investment that is still held. Funds that report at fair value show both in income, so when a holding is sold, the unrealized gain booked in earlier periods is reversed and replaced by the realized gain, the step most spreadsheets get wrong.
This guide sets out the key facts, works through two years of one position with the journal entries, explains why a spreadsheet and a fund accounting system can show different numbers, and covers tax and reporting for funds and family offices.
Key takeaways
- Realized means sold; unrealized means still held and marked to its current value.
- At fair value, both hit income: funds report net realized gains and the net change in unrealized gains.
- A sale reverses prior unrealized gains. In our example, year two’s profit is $3,800, not the $13,800 a spreadsheet adds up.
- Tax usually follows realization: gains are generally taxed when sold, with exceptions such as mark-to-market regimes.
- Lot selection changes realized gains, so the cost basis method matters for tax and reporting.
Realized vs unrealized gains: key facts
| Question | Realized gain | Unrealized gain |
|---|---|---|
| What it is | Profit on an investment that has been sold | Increase in value of an investment still held |
| When it is recorded | On the trade date of the sale | At each valuation date |
| Fund reporting | Net realized gain in the statement of operations | Net change in unrealized appreciation |
| Tax | Generally taxable when realized | Generally not taxed until sold, with exceptions |
| Can it reverse? | No, it is final | Yes, it moves with prices and reverses on sale |
Example: one position over two years
A fund buys 1,000 shares at $50. At the end of year one, the price is $60. In year two, it sells 600 shares at $65, and the price is $62 at year-end:
| $ | Year 1 | Year 2 |
|---|---|---|
| Shares held at year-end | 1,000 | 400 |
| Year-end price (cost $50) | 60 | 62 |
| Realized gain: 600 shares sold at $65 | 9,000 | |
| Unrealized gain at year-end | 10,000 | 4,800 |
| Change in unrealized gain | 10,000 | (5,200) |
| Total gain for the year (realized + change in unrealized) | 10,000 | 3,800 |
| Spreadsheet error: realized + year-end unrealized | 13,800 |
The year 2 entries
| Year 2 entry | Debit | Credit | $ |
|---|---|---|---|
| Sell 600 shares at $65 | Cash $39,000 | Investments at cost $30,000; realized gain $9,000 | 39,000 |
| Reverse unrealized gain on shares sold | Change in unrealized gain | Investments, unrealized appreciation | 6,000 |
| Mark remaining 400 shares from $60 to $62 | Investments, unrealized appreciation | Change in unrealized gain | 800 |
Year two shows a $9,000 realized gain, but the 600 shares sold had already contributed $6,000 of unrealized gain in year one, which is reversed. Adding realized gains to the year-end unrealized balance counts year one’s gain twice, giving $13,800 instead of the correct $3,800. Over both years, the total is the same either way: $13,800, of which $9,000 is realized.
Illustrative example; figures calculated by script and checked.
Realized and unrealized P&L from the same ledger
FundCount’s portfolio accounting posts realized and unrealized P&L to the general ledger, with tax lots by FIFO, LIFO, HIFO, average cost, or specific identification per book.
Why a spreadsheet and a fund system can differ
- The reversal: systems reverse unrealized gains on sold units automatically; spreadsheets often do not.
- Lot selection: FIFO, specific identification, or average cost give different realized gains on the same sale; see our guide to tax lot accounting.
- Trade date vs settlement: a sale near period end can fall in different periods.
- FX: foreign holdings split gains into price and currency parts, realized and unrealized.
- Accruals and fees: commissions adjust cost and proceeds, changing realized gains.
Tax and reporting for funds and family offices
- Tax: gains are generally taxed when realized, short-term or long-term depending on the holding period; exceptions include certain futures and options marked to market, and traders who elect mark-to-market treatment.
- Funds: the statement of operations shows both lines, and partners’ capital accounts include both; see our guide to PCAP statements.
- Family offices: performance reports include unrealized gains, while tax reports show only realized ones, so both views come from the same lots.
- Performance: time-weighted returns include both; see our guide to time-weighted return.
How FundCount reports realized and unrealized gains
- FundCount’s portfolio accounting posts realized and unrealized P&L to the general ledger across equities, fixed income, derivatives, private equity, and real estate.
- Tax lots run by FIFO, LIFO, HIFO, average cost, or specific identification per book, with automated wash-sale detection and cost-basis adjustments at the lot level.
- Multi-book accounting keeps book and tax views from the same transactions.
To compare tools, see our guide to investment performance reporting software.
See gains reported by book and by lot in FundCount
In a guided walkthrough, we sell part of a position and show the realized gain, the reversal of unrealized gains, and the tax lot detail.
FAQs
What is the difference between realized and unrealized gains?
Realized gains come from investments that have been sold; unrealized gains are increases in the value of investments still held.
Are unrealized gains taxed?
Generally not until the investment is sold, with exceptions such as mark-to-market regimes for certain contracts and traders.
Do unrealized gains count as income?
For funds reporting at fair value, yes: the change in unrealized gains is part of the statement of operations.
What happens to unrealized gains when you sell?
They are reversed and replaced by the realized gain, so the total gain is not counted twice.
Can an unrealized gain become a loss?
Yes. Until the investment is sold, its unrealized gain moves with the price.
How do family offices report unrealized gains?
In performance and net worth reports, while tax reporting shows only realized gains from the lots sold.
Sources and methodology
Sources: investment company reporting under US GAAP (ASC 946); US tax rules on realization, holding periods, and mark-to-market exceptions (Sections 1256 and 475). FundCount capabilities reviewed in November 2026.
Example: fictional; figures calculated by script and checked.
Scope: general information, not tax advice.
Published: November 2026.