Realized vs. Unrealized Gains: When Tax Becomes Real
Realized vs. Unrealized Gains: When Tax Becomes Real
The distinction between realized and unrealized gains is one of the most powerful concepts in investment tax strategy. An unrealized gain is a paper profit—the appreciation of an asset you still own, which carries no tax consequence. A realized gain is a locked-in profit from a sale, which the IRS taxes immediately. Understanding this line determines when you owe tax, how much you owe, and what strategies are available to reduce your bill.
Quick definition: An unrealized gain is the appreciation of an asset you still own (untaxed). A realized gain occurs when you sell the asset, turning paper profit into cash and creating a tax obligation.
Key takeaways
- Unrealized gains accumulate untaxed and create no tax liability until you sell
- Realized gains occur at the moment of sale and trigger immediate tax reporting requirements
- You can hold an asset that has appreciated 300% for decades and pay zero tax as long as you never sell
- Realized gains are taxed; unrealized gains are not—this asymmetry is the cornerstone of long-term wealth building
- Tax deferral (holding unrealized gains) is one of the most underutilized wealth-building tools available to investors
- Understanding the difference helps explain why billionaires pay such low effective tax rates
The Unrealized Gain: Your Untaxed Fortune
An unrealized gain exists the moment your asset appreciates in value. You bought a stock for $100; it rises to $150. You have a $50 unrealized gain. The IRS does not care. No tax is owed. No Schedule D filing is required. You can go to bed that night with your portfolio up $50, and nothing changes on your tax return.
This is true regardless of how large the gain becomes. A stock can double, triple, or increase tenfold. You can retire at 65 with $5 million in unrealized gains in your portfolio and still owe no tax on those gains. As long as you hold the asset, the gain remains untaxed.
This tax deferral is a massive advantage. It means your money compounds without the friction of annual taxes. If you invested $100,000 in an S&P 500 index fund 30 years ago, you might have unrealized gains of $1,000,000 or more. Every dollar of that $1,000,000 has been reinvested and compounded without tax. If you had sold and repurchased annually (triggering tax), your ending wealth would be meaningfully lower.
Consider two investors:
Investor A: Buys a stock for $10,000 in 2000. Holds for 24 years. By 2024, the stock is worth $100,000. Unrealized gain: $90,000. Tax owed: $0.
Investor B: Buys the same stock for $10,000 in 2000. Sells every year at a profit, then repurchases. Each year, he pays tax on the gain (let's assume 15% average tax rate), reducing his capital available for reinvestment. By 2024, the compounded effect of annual taxes means his $100,000 is now $65,000 due to lost reinvestment.
This is not theoretical. It's the core reason buy-and-hold investing is so powerful. Unrealized gains sit in your account, compound untaxed, and magnify over decades.
The Moment of Sale: Gains Become Real
The moment you execute a sale, everything changes. The unrealized gain becomes a realized gain, and the IRS now has a claim on your profit.
Let's return to the first investor. After 24 years of holding, she sells that stock for $100,000. Her cost basis was $10,000, so her realized gain is $90,000. Within moments of that sale, a tax obligation is born. She now owes tax—not on the entire $100,000 (which is a return of capital and basis), but on the $90,000 profit.
How much tax depends on:
-
How long she held it. If the holding period exceeds one year, it's a long-term gain, taxed at 0%, 15%, or 20% (depending on income). If not, it's short-term, taxed as ordinary income (10–37%).
-
Her income bracket. The gain is added to her income, potentially pushing her into a higher tax bracket.
-
Other gains or losses in the year. Capital losses can offset gains; large realized gains in one year can trigger higher Medicare premiums or other tax consequences.
The key point: the tax obligation arises at the moment of sale. You cannot defer this tax (except through special strategies like 1031 exchanges or charitable giving). The profit is locked in, and the IRS expects payment.
The Timeline: From Unrealized to Realized
Every realized gain follows this sequence. Understanding where you are in this timeline is crucial for planning.
Why the Distinction Matters for Strategy
The unrealized/realized distinction is the loophole that enables sophisticated tax planning. Here are practical examples:
Tax-Loss Harvesting: If you own a stock with an unrealized loss ($100 purchase price, now $80), you have two choices: hold (the loss remains unrealized and worthless for tax purposes) or sell (realize the loss and use it to offset other gains). Savvy investors sell losers to realize losses, then immediately repurchase a similar (but not identical) asset to maintain market exposure. The unrealized loss is harvested and turned into a tax benefit. You've locked in market exposure while cashing out the tax loss.
Timing Charitable Gifts: If you have appreciated stock worth $50,000 with a cost basis of $10,000 (unrealized gain of $40,000), you face a choice. Option 1: Sell the stock (realize the $40,000 gain and owe ~$6,000 in tax), then donate $50,000 to charity. Option 2: Donate the stock directly to the charity. The charity sells the stock and owes no tax (they're tax-exempt). You get a $50,000 charitable deduction and avoid the $6,000 capital gains tax. This is a $6,000 advantage simply by donating the unrealized gain instead of the realized proceeds.
Holding Through Retirement: Many retirees are advised to hold appreciated assets until death. Why? Upon death, heirs receive a "step-up in basis"—the cost basis resets to the fair market value at death. If you die holding stock worth $500,000 that you bought for $100,000, your heirs inherit it with a $500,000 basis. They owe zero tax on the $400,000 unrealized gain. This strategy converts an enormous unrealized gain into tax-free wealth transfer.
Deferring Sales: An investor in a high-income year might hold appreciated securities to avoid realizing gains that year. By waiting until the next year (when income might be lower, or they're retired, or they're in a lower bracket), the same realized gain gets taxed at a much lower rate.
The $1,000,000 Example
Suppose you bought Apple stock for $50,000 in 2010 and it's now worth $1,000,000. That $950,000 unrealized gain has generated zero tax for 14 years. Your money compounded untaxed—that's why the position is so large.
Now you face a decision: sell or hold?
If you sell today:
- You realize a $950,000 long-term capital gain
- Assuming 15% tax rate, you owe $142,500
- You receive $857,500 after tax
- This $857,500 is now in cash; you must reinvest it
If you hold and die 20 years from now:
- Your heirs inherit $4,000,000 in Apple stock (assuming 8% annual growth)
- Their cost basis is $4,000,000 (stepped-up)
- When they sell, they owe zero tax on the appreciation from your purchase to your death
- The $950,000 unrealized gain you had, plus $3,000,000 in gains that occurred after your purchase, all pass to your heirs tax-free
The difference is millions of dollars. This is not a loophole for the wealthy—it's available to everyone. It's simply the law: unrealized gains are not taxed at death.
Partial Realization: Selling Some, Not All
You don't have to sell everything at once. You can realize a portion of a gain by selling some shares while keeping others.
Perhaps you own 100 shares of a stock purchased at $50/share (total basis $5,000), and it's now worth $200/share ($20,000 total). The unrealized gain is $15,000. You need cash, so you sell 30 shares. You realize a gain of $4,500 (30 × $150 profit per share). The remaining 70 shares still have a $10,500 unrealized gain—untaxed.
This granular control is another advantage of individual stocks over mutual funds. With a mutual fund, you own a small slice of a large, actively managed portfolio. You don't control which securities are sold, so you can't selectively realize gains and defer others.
Unrealized Losses and the Wash-Sale Rule
The inverse of an unrealized gain is an unrealized loss. If your stock falls from $100 to $60, you have a $40 unrealized loss.
Unlike unrealized gains, unrealized losses are generally worthless for tax purposes. You cannot deduct them unless you sell. This creates pressure to realize losses strategically.
However, if you realize a loss by selling, you cannot immediately buy the same stock back without triggering the "wash-sale rule." If you sell a stock at a loss and repurchase the same or substantially identical security within 30 days before or after the sale, the loss disallowed for tax purposes. The holding period resets, and the loss disappears.
But if you wait 31 days, or sell a loser and buy a different (but similar) fund, you can harvest the loss while maintaining market exposure. This is tax-loss harvesting—converting an unrealized loss into a realized tax deduction.
Common Mistakes
Assuming unrealized gains are "locked in" tax-wise. They're not. As long as you hold the asset, no tax is due. Many investors panic-sell during downturns, realizing unnecessary losses. If you can afford to hold, let the unrealized gain ride.
Realizing losses and not using them. If you sell a stock at a loss but don't use the loss to offset other gains or deduct against income, the tax benefit is lost. Pair realized losses with realized gains strategically.
Forgetting about the step-up in basis. Some investors realize gains late in life unnecessarily, paying tax that could have been avoided if they held until death. If you're in your 70s with large unrealized gains, holding might be optimal for your heirs.
Confusing unrealized gains with available cash. A $100,000 unrealized gain in your portfolio is not $100,000 in cash. If you sell to access the gain, you owe tax, and only the after-tax amount is available to spend.
Not coordinating gains and losses. Some investors realize gains without considering offsetting losses elsewhere in their portfolio. A holistic view of all your holdings (stocks, funds, real estate, etc.) helps minimize net tax.
FAQ
Do unrealized gains count toward my taxable income? No. Unrealized gains are not income; they're just changes in asset value. They don't appear on your tax return and don't affect your tax bracket or credits.
If I die with unrealized gains, do my heirs owe the tax? No. Heirs receive a step-up in basis, meaning their cost basis resets to the fair market value at your death. The unrealized gain you accumulated is forgiven and never taxed.
Can I avoid realizing a gain by trading one stock for another? No. Selling one stock and buying another locks in the realized gain on the first sale. (An exception: a 1031 exchange in real estate can defer the tax, but it's complex and rarely applies to stocks.)
What if I have more unrealized losses than gains? You can deduct up to $3,000 of net capital losses against other income in a given year. Excess losses carry forward indefinitely to future years.
Should I always hold to defer tax? Not always. If an asset is overvalued or you need the cash, selling might be the right choice despite the tax. But if the asset has strong fundamentals and you don't need the cash, deferral through holding is usually optimal.
Can I claim a charitable deduction for an unrealized gain? No. But if you donate appreciated stock to charity, you avoid realizing the gain and still receive a charitable deduction for the fair market value of the stock. That's often better than a deduction.
Related concepts
- What Is a Capital Gain?
- Short-Term Capital Gains Rates
- Long-Term Capital Gains Rates
- The One-Year Holding Period
- Tax-Loss Harvesting
- Glossary
Summary
An unrealized gain is profit locked in your asset but not yet taxed. A realized gain occurs when you sell and must be reported to the IRS and taxed in that year. This distinction is foundational: unrealized gains compound untaxed over decades, while realized gains trigger immediate tax. The difference between the two is the source of powerful tax strategies like holding appreciated assets until death, tax-loss harvesting, and donating appreciated securities to charity instead of selling them. Mastering the timing of realization is one of the highest-leverage decisions in investment tax planning.