An unrealized gain is the amount by which an investment you still own is worth more than its cost basis, and an unrealized loss is the shortfall when it is worth less. Both exist only on paper and can grow, shrink or reverse with every price move. The gain or loss becomes realized when you dispose of the asset, usually by selling it, and under US federal tax rules that is ordinarily the moment it counts: a brokerage balance that rose 20% this year owes no tax on that rise until something is sold. This entry reflects the rules as of November 2, 2026; tax law changes, so ask a tax professional how it applies to you. The stocks hub covers investing in shares more broadly.
How are realized and unrealized gains calculated?
Both measure value against the same adjusted cost basis: market value for shares still held, and net sale proceeds for shares already sold.
Basis starts as the price paid plus buying costs and moves with splits, return-of-capital payments and reinvested dividends, as the cost basis entry shows. Every dollar a position has gained since purchase sits in exactly one of the two columns. Selling moves gain from the unrealized column to the realized one without changing the total, so a partial sale leaves part of the gain behind on the shares you keep. A position's total return counts both, plus any income. Market value is the share count times the latest price, the figure on stock price pages for listed shares, while a realized result is fixed on the trade date and ignores later price moves.
When does an unrealized gain become taxable?
An unrealized gain becomes taxable when it is realized, normally by a sale or an exchange, and it belongs to the tax year of the trade date.
| Event | Realizes a gain or loss? | Note |
|---|---|---|
| Selling shares, fund units or coins | Yes | Counted on the trade date, not the settlement date |
| Swapping one crypto asset for another | Yes | Publication 550 lists digital asset exchanges as taxable |
| A fund selling holdings at a profit | Yes, for the fund | Net gains usually reach you as a taxable distribution |
| A security becoming completely worthless | Yes | Treated as sold on the last day of the tax year |
| A price rise, a stock split or a move between your own accounts | No | Basis and holding period carry on |
| Giving shares away | No | The recipient generally takes over your basis |
| Holding until death | No | The heirs' basis resets to the value at death |
A few rules tax gains with no sale at all. Section 1256 contracts, which include regulated futures and nonequity options, are treated as sold at market value on the last business day of the year, with 60% of the result counted as long-term and 40% as short-term whatever the holding period. Shorting a stock you already own at a profit, known as shorting against the box, can be a constructive sale that realizes the gain on the spot. Under section 877A, a covered expatriate is treated as selling all property the day before expatriation, with the resulting gain reduced by an exclusion of $910,000 for 2026, under Revenue Procedure 2025-32.
Whether the Constitution requires realization is unsettled. In Moore v. United States, decided June 20, 2024, the Supreme Court upheld a one-time tax on American shareholders' portions of a foreign company's undistributed income, and wrote that it did not decide whether an income tax requires realization.
What makes a realized gain short-term or long-term?
The holding period on the day of sale decides it: more than one year is long-term, and one year or less is short-term.
Count from the day after the purchase's trade date through the sale's trade date, ignoring settlement. Shares bought on February 3, 2026 become long-term with a sale on February 4, 2027 or later, while a sale on February 3, 2027 is still short-term. For 2026, long-term gains are taxed at 0% up to $49,450 of taxable income (single) or $98,900 (married filing jointly); 15% above that; 20% above $545,500 (single) or $613,700 (joint), and short-term gains join wages at the ordinary rates of 10%, 12%, 22%, 24%, 32%, 35% and 37%, with the top rate applying above $640,600 of taxable income for single filers and $768,700 for married couples filing jointly. An unrealized gain has no rate yet. Brokerage screens often tag open lots as short- or long-term by today's date, and the tag can change before you sell.
How does selling part of a position split the gain?
A partial sale realizes the gain only on the shares sold, so which lots count as sold decides how much of the total becomes taxable now.
Worked example: Selling 150 of 300 fund shares on November 2, 2026
You hold 300 shares of an index fund priced at $55, in two lots.
| Lot | Bought | Shares | Basis | Value at $55 | Unrealized |
|---|---|---|---|---|---|
| A | May 12, 2023 | 200 | $8,000 | $11,000 | +$3,000, long-term |
| B | February 3, 2026 | 100 | $5,800 | $5,500 | −$300, short-term |
| Total | 300 | $13,800 | $16,500 | +$2,700 |
You sell 150 shares for $8,250, with no commission.
| Shares treated as sold | Realized now | Still unrealized |
|---|---|---|
| 150 from lot A, oldest first | $8,250 − $6,000 = $2,250 long-term gain | $450: +$750 on 50 lot A shares, −$300 on lot B |
| All of lot B plus 50 from lot A | A $300 short-term loss and a $750 long-term gain, netting to $450 | $2,250 on 150 lot A shares |
- At a 15% long-term rate, the first choice costs $2,250 × 0.15 = $337.50 and the second $450 × 0.15 = $67.50
- The $270 difference is deferred, not erased: the 150 lot A shares kept in the second case still carry $2,250 of gain
- Either way, realized plus unrealized gain still adds up to $2,700
Unless you name lots when you sell, shares are generally treated as sold oldest first, although the 1099-B instructions let a broker use average cost as its default for fund shares. Capital gains tax on stocks compares the lot methods and works through the brackets.
How can unrealized losses be harvested?
Selling an investment below its basis realizes the loss, which first offsets realized gains and then up to $3,000 of ordinary income a year.
In the example, lot B could be sold on its own to bank a $300 short-term loss against other gains. The limit on the income offset is $3,000 a year against ordinary income ($1,500 if married filing separately), and unused losses carry forward to later years. The catch is the wash sale rule: buying substantially identical shares within 30 days before or after the sale (a 61-day window) disallows the loss for now and adds it to the new shares' basis. The tax loss harvesting guide covers the strategy and the wash sale rule guide the timing. For crypto, Publication 550 frames the rule around stock or securities, and H.R. 9172 and H.R. 10357 would apply the wash-sale rule to digital assets; neither had passed the House as of November 1, 2026; crypto tax loss harvesting has the detail.
Where do you see realized and unrealized gains?
Account screens show unrealized gains on open positions and realized gains in a year-to-date report, while tax forms show only realized results.
- Brokerage and exchange apps list unrealized gain or loss by position or lot, often labelled unrealized P&L, and keep a separate report of gains and losses realized during the year.
- Tax forms. Form 1099-B and Form 1099-DA report sales of securities and digital assets, so they carry realized results only; Form 1099-DA explained covers the crypto version. Box 2a of Form 1099-DIV reports gains a fund realized and paid out.
- Bank balance sheets. FDIC-insured banks held $326.7 billion of unrealized losses on securities at the end of June 2026, 5.5% of the securities' amortized cost, according to the FDIC's Quarterly Banking Profile for the second quarter. Of that, $216.9 billion sat in held-to-maturity securities and $109.8 billion in available-for-sale securities.
- A paper loss turning real. On March 8, 2023, Silicon Valley Bank announced it had sold $21 billion of available-for-sale securities and was booking a $1.8 billion after-tax loss. More than $40 billion of deposits left the next day, and the bank failed on March 10, as the Federal Reserve's April 2023 review recounts.
How are realized gains different from recognized gains and distributions?
A realized gain is the result of a disposal; a recognized gain is the part the tax code counts as income that year, and usually the two match.
| Term | Meaning | Taxed this year? |
|---|---|---|
| Unrealized gain | Value above basis on an asset you still own | No, apart from the exceptions above |
| Realized gain | Amount realized above basis after a sale or exchange | Usually |
| Recognized gain | Realized gain that must be included in income | Yes |
| Realized but not recognized | Gain on an exchange the code defers, such as a like-kind swap of investment real estate | No, deferred to a later sale |
| Disallowed loss | Realized loss blocked by the wash sale rule | No, added to the replacement shares' basis |
| Capital gains distribution | Gains a fund realized and paid out | Yes, as long-term gain |
Publication 544 says a gain or loss realized from a sale or exchange is usually recognized, then lists the exchanges where it is not. The like-kind rule now covers only real property held for business or investment, so it no longer shelters a trade of one stock or coin for another.
What mistakes do people make with realized and unrealized gains?
The common errors are expecting tax on paper gains, or missing the events that quietly realize them.
- Assuming reinvesting avoids tax. Selling one fund and buying another the same day still realizes the gain on the first.
- Treating a crypto swap as tax-free. Trading one coin for another disposes of the first, at its dollar value on the day.
- Overlooking fund distributions. A fund can realize and pay out gains in a year when you sold nothing and its price fell.
- Selling a day early. A sale on the one-year anniversary of the purchase is still short-term.
- Waiting for a collapsed stock to hit zero. Until it is completely worthless, a deduction requires a sale.
- Rebuying too soon after harvesting. A purchase inside the wash sale window defers the very loss you meant to use.
