The difference between realized and unrealized gains comes down to whether you have sold the investment. A realized gain is profit you have locked in by selling for more than you paid, and it is taxable in the year of the sale. An unrealized gain is the increase in an asset’s market value while you still own it, and it generally owes no tax at all until you sell. That single line separates a taxable event from a paper number on a brokerage statement, and it shapes decisions about when to sell, how to use losses, and how to plan around retirement and inheritance.
When a Gain Becomes Realized
You realize a gain the moment a sale settles for more than your cost basis. Cost basis is the original purchase price plus transaction costs like commissions or transfer fees.1Internal Revenue Service. Topic No. 703, Basis of Assets Once the trade goes through, the profit converts from a fluctuating position into cash. You no longer have exposure to that investment’s future price.
Say you buy 200 shares at $50 and pay a $10 commission, for a basis of $10,010. You later sell all 200 at $75 and pay another $10 commission, netting $14,990. Your realized gain is $4,980, and it is fixed the instant the sale clears, no matter what the stock does next.
Basis calculations get more involved when you reinvest dividends, receive stock splits, or buy in batches at different prices. The IRS requires accurate tracking of adjusted basis because it directly determines the taxable amount you report.2Internal Revenue Service. Publication 551 (12/2025), Basis of Assets
What an Unrealized Gain Actually Is
An unrealized gain is the gap between what your investment is worth right now and what you paid, measured while you still own it. These figures are sometimes called paper profits. Your brokerage statement uses them to estimate portfolio value, but no cash has changed hands.
The defining feature is volatility. A stock might be up 30% one quarter and give back half of that the next. Until you sell, every gain is tentative. An investor sitting on a large unrealized gain in a single stock can feel wealthy on paper, then watch a correction erase the surplus before they lock anything in. That is the real content behind the old line that you have not made money until you sell.
How the Tax Treatment Splits
Federal law generally requires a recognition event before a gain becomes taxable, and a sale is the classic recognition event. As long as you continue to hold the asset, no sale has happened and no tax is due.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses The gain on a sale equals proceeds minus adjusted basis and is recognized in the year of sale.4Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss
How much you owe on a realized gain depends on how long you held the investment.
Short-Term Versus Long-Term
Hold an investment for one year or less and the profit is a short-term capital gain, taxed at your ordinary income rate. Hold it for more than a year and it qualifies for long-term capital gains rates, which are significantly lower.5Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed For the 2026 tax year, the long-term brackets are:6Internal Revenue Service. Rev. Proc. 2025-32
- 0% on taxable income up to $49,450 for single filers or $98,900 for married couples filing jointly.
- 15% on taxable income from $49,450 to $545,500 for single filers, or $98,900 to $613,700 for joint filers.
- 20% on taxable income above $545,500 for single filers, or above $613,700 for joint filers.
That gap is why advisors push investors to hold winning positions past the one-year mark. Selling at 11 months can nearly double the federal tax bill compared with waiting one more month.
Net Investment Income Tax
Higher-income investors face an additional 3.8% net investment income tax on top of those rates. It applies to the lesser of net investment income or the amount modified adjusted gross income exceeds $200,000 for single filers and $250,000 for joint filers.7Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax Those thresholds are not indexed for inflation, so more taxpayers get pulled in each year. Combined with the 20% long-term rate, the effective top federal rate on long-term capital gains reaches 23.8%.
Why Unrealized Gains Escape
Because tax attaches to the sale rather than to changes in value, an untouched position produces no federal capital gains tax no matter how much it appreciates. That deferral compounds. Every dollar that would have gone to tax stays invested and continues to earn returns. Over a long horizon, deferral alone can account for a substantial share of total portfolio growth, and it is one of the strongest arguments for a buy-and-hold approach when the underlying investment is sound.
Using Losses to Reduce the Tax on Gains
Selling at a loss also matters here, because a realized loss can offset a realized gain. The IRS requires you to net within categories first: short-term losses against short-term gains, long-term against long-term. Any leftover net loss in one category then offsets net gain in the other.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses
If your total capital losses exceed your total capital gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Anything beyond that carries forward to future years indefinitely, keeping its short-term or long-term character.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Selling losing positions on purpose to soak up gains elsewhere is called tax-loss harvesting.
The Wash Sale Rule
There is a catch. If you sell a security at a loss and buy a substantially identical security within 30 days before or after, the IRS disallows the loss deduction.8Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss from Wash Sales of Stock or Securities The disallowed loss gets added to the basis of the replacement shares, so it is not permanently gone, but you cannot use it against gains in the current year.9Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses To keep similar market exposure while harvesting, you either wait out the 30-day window or buy a security that is not substantially identical.
Where the Distinction Nearly Disappears
Inside tax-advantaged retirement accounts, the realized/unrealized line matters far less. In a traditional IRA or 401(k), you can buy and sell without triggering capital gains tax on any individual trade. Gains compound tax-deferred, and the entire eventual distribution is taxed as ordinary income, regardless of whether the underlying gains were short- or long-term.10Internal Revenue Service. Traditional IRAs
Roth IRAs flip the setup. Contributions are after-tax, but qualified distributions of both contributions and earnings come out entirely tax-free. Gains realized inside a Roth are never taxed if you follow the rules, which makes it one of the strongest shelters available for investments you expect to appreciate. Because trades inside these accounts create no tax event, rebalancing a 401(k) has no capital gains cost at all. The tax picture only shows up when money leaves the account.
The Step-Up in Basis at Death
Unrealized gains get their most favorable treatment when the investor dies. Under federal law, inherited property receives a new cost basis equal to its fair market value on the date of death.11Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired from a Decedent The step-up effectively erases the unrealized gain that built up during the original owner’s lifetime.
A parent buys stock for $20,000 that grows to $200,000 by the time they die. The child who inherits it gets a basis of $200,000. Sell immediately at that price and the taxable gain is zero. The $180,000 of lifetime appreciation is never taxed by anyone. Inherited property also qualifies automatically for long-term capital gains treatment regardless of how long the heir actually holds it.
This is one of the largest tax benefits in the code, and it shapes estate planning for anyone sitting on highly appreciated assets. Selling a large position now to diversify triggers a tax bill. Holding until death can pass the full value to heirs with no capital gains tax on the built-in appreciation. That trade-off between diversification and tax efficiency has no universal answer.
State Taxes Sit on Top
Federal rules are only part of the calculation. Most states tax capital gains as ordinary income, and rates vary widely. Some states impose no income tax at all; others charge rates above 13% on high earners, and a few give partial exclusions for certain gains. Your total tax on a realized sale depends heavily on where you live, so checking your state’s rates before a large sale can prevent a surprise.
Liquidity Versus Risk
Taxes aside, the practical difference is what you can do with the money. A realized gain is cash. You can pay debt, cover expenses, or reinvest in something else. An unrealized gain shows up in your net worth on paper, but you cannot spend it without selling and taking whatever price the market gives at that moment.
This shows up most in downturns. An investor whose portfolio shows $500,000 in unrealized gains might watch $200,000 evaporate in a correction without doing anything wrong. The gain was never guaranteed because it was never locked in. An investor who realized gains along the way has cash that no future crash can touch, though they paid tax to get it.
Neither approach is categorically better. Realizing gains gives certainty and liquidity but triggers taxes and ends the upside. Holding preserves deferral and further growth potential but keeps the downside exposure. Most investors do some of both, selling when they need cash or when rebalancing calls for it, and holding when the tax cost of selling outweighs the benefit. The point is to make that call on purpose rather than by inertia.