A realized gain is the profit you lock in when you sell an investment or other capital asset for more than you paid for it. Until you sell, any rise in value is a paper profit with no tax consequence. The moment the sale closes, the difference between what you receive and your cost basis becomes taxable income, and you report it to the IRS on Form 8949 and Schedule D.1Internal Revenue Service. Instructions for Form 8949 (2025) How much you owe depends almost entirely on one thing: how long you held the asset before selling.
Realized vs. Unrealized
Buy 100 shares at $50 and watch them climb to $75, and you are sitting on a $2,500 paper profit. That gain is unrealized. You still own the shares, no tax is due, and nothing goes on your return. Hold them for another decade and the gain stays unrealized the entire time.
The gain becomes realized the moment you dispose of the asset. Disposition covers more than a straightforward sale; it includes exchanges, certain gifts, and other transfers.2Legal Information Institute. 26 USC 904(f)(3) – Definition: Disposition Selling those 100 shares at $75 converts the $2,500 paper profit into a realized gain that lands on your tax return for that year. You control when that happens, which is what makes realization a planning tool rather than just a reporting event.
How the Gain Is Calculated
The arithmetic is straightforward. Subtract your adjusted cost basis from your net sale proceeds. Net proceeds are the sale price minus transaction costs like brokerage fees. Cost basis is generally what you paid, plus purchase commissions, adjusted for events like reinvested dividends (which raise basis) or return-of-capital distributions (which reduce it).
Sell shares for $10,000, pay $50 in fees, and start from a $7,000 basis, and your realized gain is $2,950. If your basis had been $11,000 instead, you’d have a $1,050 realized loss. Positive is a gain, negative is a loss, and both get reported.
Your broker will usually report both the sale proceeds and your basis on Form 1099-B, but basis accuracy is ultimately your responsibility. Securities purchased before broker reporting rules took effect may arrive with missing or incomplete basis, and you’ll need your own records to fill the gap.1Internal Revenue Service. Instructions for Form 8949 (2025) If you’ve bought the same stock at different prices over time and sell only part of your position, the IRS defaults to first-in, first-out, which typically produces the largest taxable gain because the oldest lots usually have the lowest basis.3Internal Revenue Service. Stocks (Options, Splits, Traders) 3 Specific identification lets you pick which lots to sell, as long as you identify them before the trade settles.
Short-Term vs. Long-Term Rates
Holding period is the single biggest factor in the tax bill. The dividing line is one year, counted from the day after you acquired the asset through the day you sold it.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Short-Term (One Year or Less)
Gains on assets held a year or less are taxed as ordinary income, at the same rate as your wages. For 2026, the top ordinary rate is 37%, which kicks in above $640,600 of taxable income for single filers and $768,700 for joint filers.5Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 A large short-term gain can also push you into a higher bracket, raising the effective rate on the gain itself.
Long-Term (More Than One Year)
Hold the asset longer than a year and the gain qualifies for preferential long-term rates of 0%, 15%, or 20%. For tax year 2026, the brackets are:6Internal Revenue Service. Rev. Proc. 2025-32
- 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), $49,450 (married filing separately), or $66,200 (head of household).
- 15% rate: taxable income above the 0% ceiling up to $545,500 (single), $613,700 (joint), $306,850 (separate), or $579,600 (head of household).
- 20% rate: taxable income above the 15% ceiling.
The 0% bracket is worth planning around. Keep total taxable income under the threshold and you can realize long-term gains and owe nothing on them at the federal level. Even partial use of the 0% bracket reduces the overall bill.
Collectibles and Real Estate
Two categories of long-term gains face higher ceilings. Collectibles such as art, coins, and precious metals are taxed at a maximum 28% rate. Gains from depreciable real estate that are attributable to depreciation you previously claimed are taxed at a maximum 25% rate.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses If you sell a rental property at a profit after years of depreciation deductions, the portion of the gain equal to the accumulated depreciation gets taxed at that 25% rate before the regular long-term rates apply to anything above it.
The 3.8% Surtax
Higher earners pay an additional 3.8% net investment income tax on realized capital gains. The tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single), $250,000 (joint), or $125,000 (married filing separately).7Internal Revenue Service. Topic No. 559, Net Investment Income Tax Those thresholds are not indexed for inflation, so more taxpayers cross them each year. Stacked on top of the 20% long-term rate, the effective federal rate for the highest earners reaches 23.8%.
Using Losses to Shrink the Bill
Realized losses directly reduce the tax on realized gains. Schedule D requires you to net them in a set order: short-term gains against short-term losses, long-term against long-term. If one category ends up net positive and the other net negative, those two results are then netted against each other for your final figure.1Internal Revenue Service. Instructions for Form 8949 (2025)
If total losses exceed total gains, you can deduct up to $3,000 of the excess against ordinary income, or $1,500 if married filing separately.8Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything beyond that carries forward to the next tax year with its character (short- or long-term) intact. For individual taxpayers the carryforward has no expiration; unused losses roll forward until fully used.9Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers
Watch the Wash Sale Rule
You cannot sell a position at a loss and immediately buy it back to harvest the deduction. If you acquire a substantially identical security within 30 days before or after the loss sale, the IRS disallows the loss.10Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount isn’t lost forever; it gets added to the basis of the replacement shares, so you’ll see the benefit when you eventually sell those in a qualifying transaction. The rule reaches options and contracts to acquire the same security, so buying a call on the same stock inside the 61-day window (30 days before through 30 days after) triggers the same disallowance.
Paying the Tax
A large realized gain often creates a tax bill that your paycheck withholding won’t cover. The IRS expects estimated tax payments when you’ll owe at least $1,000 after withholding and credits, and when withholding won’t cover 90% of your current-year tax or 100% of last year’s (110% if your prior-year AGI exceeded $150,000).11Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc.
Quarterly estimated payments are due April 15, June 15, September 15, and January 15 of the following year. You can annualize income and make a larger payment in the quarter the gain occurred rather than spreading it evenly. Sell a big position in October and the payment is due January 15; miss it and you’ll face an underpayment penalty that functions as interest on what you should have paid.
Reporting on Form 8949 and Schedule D
Every realized gain or loss from a capital asset sale goes on Form 8949, with Part I for short-term transactions and Part II for long-term. For each sale you report the description, acquisition date, sale date, proceeds, and basis.12Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets The totals flow to Schedule D, which handles the netting between short- and long-term, applies the $3,000 ordinary-income offset, and calculates any carryforward.1Internal Revenue Service. Instructions for Form 8949 (2025)
If your only capital gains come from mutual fund or REIT distributions on Form 1099-DIV and you have no losses to report, you can sometimes report directly on Schedule D and skip Form 8949. Any direct sale of stock, bonds, cryptocurrency, or other capital assets requires the full Form 8949. Brokers file the same information with the IRS, and mismatches between your return and their 1099-B filings are among the most common triggers for automated IRS notices.
Special Situations to Know About
Selling Your Home
Sell your primary residence and you can exclude up to $250,000 of the gain as a single filer, or $500,000 filing jointly.13Internal Revenue Service. Topic No. 701, Sale of Your Home You must have owned and used the home as your main residence for at least two of the five years before the sale, and you generally can’t have claimed the exclusion on another home within the previous two years. Anything above the exclusion is a taxable realized gain reported on Schedule D at the usual long-term rates.
Inherited and Gifted Assets
Inherited assets get a basis reset to the fair market value on the date the original owner died.14Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent A stock your parent bought at $10 that was worth $200 at their death becomes yours with a $200 basis; the lifetime appreciation never gets taxed. Inherited assets are also treated as long-term holdings regardless of how long the decedent held them. Gifted assets work differently: you generally inherit the donor’s basis, with a split-basis rule that uses the lower of donor basis or fair market value at the time of the gift when calculating a loss.15Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust
State Tax
Federal rates aren’t the whole story. Most states tax capital gains as ordinary income, with rates ranging from zero in states without an income tax to above 13% in the highest-tax states. The combined federal and state burden on a large long-term gain can approach 37% in the most expensive jurisdictions, so check your state’s rules before timing a sale.