A taxable gain is the profit you make when you sell an asset for more than your adjusted cost in it, and the federal government treats that profit as income. If you bought stock for $10,000 and sold it for $15,000, the $5,000 difference is your taxable gain. How much tax you owe depends mostly on how long you held the asset: long-term rates for 2026 run from 0% to 20%, while short-term gains are taxed at your ordinary income rate of up to 37%.
The rules reach further than most people expect. Nearly everything you own for personal use or investment is a capital asset under federal tax law, including stocks, mutual funds, bonds, investment real estate, cryptocurrency, vintage cars, jewelry, artwork, and household furniture.1Office of the Law Revision Counsel. 26 USC 1221 – Capital Asset Defined The IRS treats digital assets like cryptocurrency as property, so selling or trading crypto triggers the same gain calculation as selling stock.2Internal Revenue Service. Digital Assets
One asymmetry worth knowing up front: if you sell personal-use property like a car or furniture at a loss, you cannot deduct that loss. Sell the same item at a profit, though, and the gain is taxable.
How To Calculate a Taxable Gain
The formula is simple: amount realized minus adjusted basis equals your gain.
Your cost basis usually equals what you originally paid for the asset, including purchase commissions or settlement fees.3Office of the Law Revision Counsel. 26 USC 1012 – Basis of Property Cost For a share of stock, that’s the price plus any broker fee. For a house, it’s the purchase price plus closing costs.
Basis then gets adjusted over time.4Office of the Law Revision Counsel. 26 USC 1011 – Adjusted Basis for Determining Gain or Loss Capital improvements raise it. Spend $25,000 replacing a roof on a rental property and your basis goes up by $25,000. Depreciation deductions lower it. Claim $40,000 in depreciation on that same rental over the years and your basis drops by $40,000. The result is your adjusted basis, and that’s the number you subtract from your sale proceeds.
The “amount realized” side includes all cash, the fair market value of any property or services you received, and any debt the buyer assumed on your behalf, minus your selling expenses like broker commissions or legal fees.5Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets Say you sell a property for $200,000 in cash and the buyer takes over your $50,000 mortgage. Your total amount realized is $250,000. Subtract $6,000 in broker commissions and you have $244,000. If your adjusted basis is $180,000, your realized gain is $64,000.
Records matter more than people expect. The IRS can ask you to prove basis during an audit, and without receipts, settlement statements, or improvement records, you may be stuck with a basis of zero. That would make the entire sale price your gain.
Short-Term vs. Long-Term Rates for 2026
The single biggest factor in your tax bill is how long you owned the asset before selling. Assets held for one year or less produce short-term gains, taxed at your regular income tax rates.6Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses For 2026, those brackets run from 10% to 37%.7Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
Hold the asset for more than one year and the gain qualifies as long-term, which gets preferential treatment. For 2026, long-term rates are 0%, 15%, or 20%, based on taxable income and filing status:8Internal Revenue Service. Rev. Proc. 2025-32
- 0% rate: taxable income up to $49,450 for single filers, $98,900 for married filing jointly, or $66,200 for head of household.
- 15% rate: taxable income above the 0% threshold up to $545,500 single, $613,700 joint, or $579,600 head of household.
- 20% rate: taxable income above the 15% thresholds.
The difference is dramatic. A single filer in the 24% ordinary bracket who sells stock after 11 months pays 24% on the gain. Wait one more month and the same gain is taxed at 15%. On a $50,000 profit, that’s $4,500 for a few weeks of patience.
When Higher Rates Apply
Not every long-term gain gets the 0/15/20% treatment. Long-term gains from collectibles like coins, art, antiques, gems, stamps, and rare wine are taxed at a maximum rate of 28%.9Internal Revenue Service. Topic No. 409, Capital Gains and Losses If your ordinary rate is lower, you pay that instead, but the gain never gets the 15% preferential rate that stock gains do.
Depreciation recapture on real property carries a maximum rate of 25%. When you sell a rental building or other depreciable real estate, the portion of your gain attributable to depreciation you previously claimed is taxed at up to 25% as “unrecaptured Section 1250 gain.”10Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 5 Any remaining gain qualifies for the standard long-term rates.11Office of the Law Revision Counsel. 26 U.S. Code 1 – Tax Imposed
The 3.8% Net Investment Income Tax
Higher earners face an additional 3.8% surtax on net investment income, including capital gains. It kicks in when modified adjusted gross income exceeds $200,000 for single filers, $250,000 for married couples filing jointly, or $125,000 for married filing separately.12Internal Revenue Service. Net Investment Income Tax The 3.8% applies to the lesser of your net investment income or the amount your income exceeds the threshold.
These thresholds aren’t adjusted for inflation, so more taxpayers cross them each year as wages rise.13Internal Revenue Service. Questions and Answers on the Net Investment Income Tax A married couple filing jointly with $300,000 in modified adjusted gross income and $225,000 in net investment income owes the 3.8% only on $50,000. That’s an extra $1,900 on top of any capital gains tax already owed.
Using Losses To Reduce a Taxable Gain
You don’t owe tax on gross gains if you also have losses. Capital losses offset capital gains dollar for dollar. Short-term gains are netted against short-term losses first, then long-term gains against long-term losses. If one category still shows a net loss, it offsets the net gain in the other.
When total losses exceed total gains for the year, you can deduct up to $3,000 of the excess against ordinary income, or $1,500 if married filing separately.9Internal Revenue Service. Topic No. 409, Capital Gains and Losses Any remaining loss carries forward indefinitely, keeping its short-term or long-term character.14Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers Investors who took large losses in a downturn sometimes carry them forward for years, chipping away $3,000 at a time.
Watch the wash sale rule. If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss. The disallowed loss gets added to your basis in the replacement, so it’s deferred rather than destroyed, but you can’t use it against current-year gains.
Inherited and Gifted Property Get Different Basis
When you receive property from someone else, the basis rules change, and the difference can be worth thousands.
Inherited property generally receives a stepped-up basis equal to the fair market value on the date the owner died.15Internal Revenue Service. Gifts and Inheritances If your parent bought stock for $10,000 decades ago and it was worth $200,000 when they passed away, your basis is $200,000. Sell it the next week for $201,000 and your taxable gain is only $1,000. All appreciation during the original owner’s lifetime is wiped out for income tax purposes. Failing to document the date-of-death value is a common and costly mistake.
Gifts work differently. When you receive property as a lifetime gift, you generally take over the donor’s basis, sometimes called a carryover basis.16Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If your parent bought stock at $10,000 and gifted it to you when it was worth $200,000, your basis stays $10,000. Sell for $200,000 and you owe tax on $190,000. There is a special wrinkle: when the donor’s basis exceeds the fair market value at the time of the gift, your basis for calculating a loss is the lower fair market value. Any gift tax the donor paid can also increase your basis, though not above the property’s fair market value at the time of the gift.
The Home Sale Exclusion
Selling your home is one of the few situations where federal law lets you walk away from a substantial gain tax-free. Under Section 121, you can exclude up to $250,000 of gain from the sale of your primary residence if you’re single, or up to $500,000 if you’re married filing jointly.17Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain from Sale of Principal Residence
To qualify, you must have owned and used the home as your primary residence for at least two out of the five years before the sale. The two years don’t need to be consecutive. You also can’t have claimed the exclusion on another home sale within the prior two years.
For a married couple who bought a home for $300,000, made $100,000 in improvements, and sold for $900,000: the adjusted basis is $400,000, the gain is $500,000, and the whole thing falls within the $500,000 exclusion. Zero tax. If the gain had been $600,000, only the $100,000 above the exclusion would be taxable at long-term capital gains rates.
If you fall short of the two-year residency because of a job relocation, a health issue, or certain unforeseeable events, you may qualify for a partial exclusion prorated by the fraction of the period you did meet.18Internal Revenue Service. Publication 523, Selling Your Home
Deferring a Gain on Investment Real Estate
Real estate investors can defer gain by swapping one investment property for another through a like-kind exchange under Section 1031. Since 2018, this deferral applies only to real property held for business or investment use, not personal residences, stocks, or other assets.19Office of the Law Revision Counsel. 26 U.S. Code 1031 – Exchange of Real Property Held for Productive Use in a Trade or Business or for Investment
The deadlines are strict. After you sell the relinquished property, you have 45 days to identify potential replacement properties and 180 days to close on one. Miss either deadline and the entire gain becomes taxable immediately. The exchange doesn’t eliminate the gain; it rolls your old basis into the new property, so the deferred gain resurfaces when you eventually sell.
Reporting a Taxable Gain
You report the sale of capital assets on Form 8949, which requires a line-by-line accounting of each transaction. For every sale, you list the asset description, the date acquired, the date sold, the proceeds, and your cost basis.20Internal Revenue Service. 2025 Instructions for Form 8949 – Sales and Other Dispositions of Capital Assets The form separates transactions depending on whether your broker reported the cost basis to the IRS.
Totals from Form 8949 flow to Schedule D of your Form 1040, where short-term and long-term gains and losses are tallied separately. Schedule D is also where you apply the $3,000 ordinary income offset if losses exceed gains. Brokerage firms usually provide a Form 1099-B with basis information, but its accuracy depends on whether the broker has your complete purchase history. If you transferred shares between brokers or received gifted or inherited assets, you may need to calculate and report the correct basis yourself.