What Are Unrealized Gains and How Are They Taxed?

Unrealized gains—the increase in value of something you own but haven’t sold—are not taxed by the IRS in most situations. Your profit exists only on paper until a sale converts it into cash, and only then does the tax bill arrive. A few narrow exceptions force you to recognize gains before selling, and several planning moves can shrink or defer what you eventually owe. This is the core of how unrealized gains tax works for individual investors.

What Counts as an Unrealized Gain

An unrealized gain is the difference between what you paid for an asset and what it’s worth now, when the current price is higher. Buy 100 shares of a stock at $50 and watch them climb to $75, and you’re sitting on a $2,500 unrealized gain. Nothing hits your bank account. The gain lives on your brokerage statement, which is why people call it a paper profit.

Every calculation starts with your cost basis: the purchase price plus any acquisition costs like brokerage commissions or real estate closing costs. Current market value minus cost basis equals the unrealized gain. If the price drops below what you paid, the same math produces an unrealized loss.

The moment you sell or otherwise dispose of the asset, the gain becomes realized. That’s the number the IRS cares about. Sell those 100 shares at $75 and the $2,500 paper profit turns into a $2,500 realized gain, reported on Form 8949 and carried to Schedule D of your return.1Internal Revenue Service. Instructions for Form 8949 – Sales and Other Dispositions of Capital Assets Before that sale, the gain can grow, shrink, or vanish. After it, the number is locked in.

The General Rule: No Tax Until You Sell

The IRS does not tax unrealized gains. You can hold an asset that has tripled in value and owe nothing for years, decades, or your entire lifetime, provided you never sell. Tax liability is triggered by a realization event—typically a sale, exchange, or other disposition in which you receive cash or property in return.

This principle applies across the assets most people hold. Publicly traded stocks, ETFs, and mutual fund shares carry unrealized gains you can watch tick up and down in real time. Real estate carries them quietly, whether it’s your home or a rental. Cryptocurrency and other digital assets are treated as property by the IRS, so the same cost-basis framework applies; starting in 2026, brokers must report cost basis on digital asset transactions using Form 1099-DA.2Internal Revenue Service. Final Regulations and Related IRS Guidance for Reporting by Brokers on Sales and Exchanges of Digital Assets Private business stakes, gold, art, and collectibles fit the same pattern: appreciation isn’t taxed until it’s realized.

What You Pay When You Do Sell

Once you sell, holding period sets the tax rate. Assets held one year or less produce a short-term capital gain, taxed at your ordinary income rate. For 2026, the top ordinary rate is 37%, hitting single filers with taxable income above $640,600 and married couples filing jointly above $768,700.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026

Hold the asset longer than one year and it qualifies for long-term capital gains rates, which for 2026 single filers work out this way:4Tax Foundation. 2026 Capital Gains Tax Rates and Brackets

  • 0% on taxable income up to $49,450 ($98,900 married filing jointly)
  • 15% on taxable income from $49,451 to $545,500 ($98,901 to $613,700 married filing jointly)
  • 20% on taxable income above $545,500 (above $613,700 married filing jointly)

The gap is significant. Selling on day 365 versus day 366 can be the difference between a 37% rate and a 15% rate on the same profit.5Internal Revenue Service. Topic No. 409 – Capital Gains and Losses

Higher earners owe an extra 3.8% Net Investment Income Tax on capital gains and other investment income once modified adjusted gross income exceeds $200,000 single or $250,000 married filing jointly. These thresholds aren’t adjusted for inflation.6Internal Revenue Service. Net Investment Income Tax Stacked on the 20% long-term rate, the top federal rate on long-term gains reaches 23.8%.

Sell your primary home and up to $250,000 of gain ($500,000 for married couples filing jointly) can be excluded from tax if you meet the ownership and use requirements.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

When Unrealized Gains Are Taxed Before You Sell

The “no tax until you sell” rule has real exceptions. Knowing which ones apply to you matters more than knowing the rule itself.

Section 1256 Contracts

Regulated futures contracts, foreign currency contracts, and nonequity options are marked to market at year-end. The IRS treats these positions as if you sold them at fair market value on December 31, and you owe tax on the resulting gain even if you still hold the position.8Office of the Law Revision Counsel. 26 USC 1256 – Section 1256 Contracts Marked to Market These contracts get a blended rate regardless of holding period: 60% long-term, 40% short-term.

The Section 475 Election for Traders

Securities dealers and qualifying active traders can elect to mark all positions to market at year-end, with gains and losses taxed as ordinary income.9Office of the Law Revision Counsel. 26 USC 475 – Mark to Market Accounting Method for Dealers in Securities The election is irrevocable without IRS consent, so it’s not a decision to make lightly.

Mutual Fund Capital Gain Distributions

This one surprises people. When a mutual fund sells profitable holdings inside the fund, it distributes the capital gains to shareholders. You owe tax on those distributions even if you reinvested every dollar and never sold any of your fund shares. The fund reports them on Form 1099-DIV, and they’re treated as long-term gains regardless of how long you’ve owned your shares.10Internal Revenue Service. Mutual Funds – Costs, Distributions, Etc. Index funds and ETFs typically generate fewer of these because they trade less.

The Expatriation Exit Tax

U.S. citizens or long-term residents who renounce citizenship or end residency can be taxed on their worldwide unrealized gains as if they sold everything the day before expatriating. You’re a “covered expatriate” subject to this treatment if you meet any of these tests:11Internal Revenue Service. Expatriation Tax

  • Net worth of $2 million or more on the expatriation date
  • Average annual net income tax over $211,000 for the five prior years (2026 threshold)
  • Inability to certify five years of U.S. tax compliance

The first slice of net gain is excluded—$890,000 for 2025, adjusted annually. The tax is reported on Form 8854, and covered expatriates can elect to defer payment with adequate security, though interest runs on the deferred balance.12Internal Revenue Service. Instructions for Form 8854 – Initial and Annual Expatriation Statement

Why Holding Until Death Can Erase the Tax

One provision quietly wipes out unrealized gains entirely. When the owner of an appreciated asset dies, the heir’s cost basis resets to the fair market value on the date of death. If a parent bought stock for $10,000 thirty years ago and it’s worth $200,000 when they die, the heir’s basis is $200,000. Selling immediately produces zero capital gains tax.13Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent

The step-up applies to stocks, real estate, business interests, and most other inherited property. It’s a large part of why financial advisors often recommend that elderly investors with substantial unrealized gains hold rather than sell. The lifetime tax on that appreciation disappears.

Ways to Reduce or Defer the Eventual Bill

Planning around unrealized gains is about controlling when and how you realize them.

Tax-Loss Harvesting

Selling a losing investment to offset a winning one is the most common move. Realize $10,000 in gains, sell another position with a $10,000 loss, and the two cancel out. If your losses exceed your gains for the year, you can deduct up to $3,000 of the excess against ordinary income ($1,500 married filing separately), and any remaining losses carry forward indefinitely.14Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses

Watch the wash sale rule. If you buy the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss. The disallowed amount is added to the basis of the replacement shares, deferring rather than destroying the benefit.15Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The rule applies across all your accounts, including IRAs and your spouse’s accounts.

Donating Appreciated Assets to Charity

Give stock or other appreciated property held more than a year to a qualified charity, and you avoid capital gains tax on the appreciation while deducting the full fair market value. For most donations of appreciated property to public charities, the deduction is capped at 30% of adjusted gross income, with excess carrying forward for up to five more years.16Internal Revenue Service. Publication 526 – Charitable Contributions

Section 1031 Like-Kind Exchanges

Sell investment or business real estate and roll the proceeds into a similar property, and Section 1031 defers the entire capital gain. The replacement property inherits your original basis, pushing the tax to a future sale. You have 45 days to identify a replacement and 180 days to close. Personal residences and vacation homes don’t qualify.17Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

Keep Your Cost Basis Records Straight

Every calculation above starts with basis. For securities held at a brokerage, the firm tracks basis and reports it on Form 1099-B when you sell.18FINRA. Cost Basis Basics Check those figures against your own records, especially for older holdings, gifted shares (which carry the donor’s basis), and assets transferred between accounts.

For anything outside a brokerage, the recordkeeping is on you. Real estate basis includes the purchase price, closing costs, and capital improvements; keep the closing statement and improvement receipts for as long as you own the property. Digital asset broker reporting starts in 2026, but for coins held in private wallets or acquired before then, your own records are the only source.2Internal Revenue Service. Final Regulations and Related IRS Guidance for Reporting by Brokers on Sales and Exchanges of Digital Assets