What Is Capital Gains Tax: Short-Term vs Long-Term and How to Minimize It
Capital gains tax applies when you sell an asset for more than you paid. Learn the difference between short-term and long-term rates, which assets are affected, and the legal strategies to reduce your capital gains tax bill.
What Is a Capital Gain?
A capital gain arises when you sell a capital asset — stocks, bonds, real estate, collectibles, cryptocurrency, or business interests — for more than you paid for it. The difference between the sale price (proceeds) and your original purchase price (cost basis) is the gain, and it is generally subject to tax in the year the sale occurs. If you sell for less than your basis, you have a capital loss, which can offset gains and in limited amounts reduce ordinary income.
The concept of taxing gains from asset sales has been part of the U.S. tax code since 1913, though the rates, holding period requirements, and applicable assets have changed dramatically over the decades. Understanding how capital gains taxes work is essential for investors because the tax treatment of investment returns can differ dramatically depending on how long you held the asset, what type of asset it was, and how you structured the transaction. The difference between ordinary income tax treatment and long-term capital gains rates can amount to tens of thousands of dollars on a single transaction.
Short-Term vs. Long-Term: The Critical Distinction
The most important determinant of capital gains tax treatment is holding period. Assets held for one year or less before sale generate short-term capital gains, which are taxed as ordinary income — at the same marginal rates as wages, salaries, and other earned income, currently ranging from 10 to 37 percent federally. Assets held for more than one year generate long-term capital gains, which receive preferential rates of 0, 15, or 20 percent depending on the taxpayer's total taxable income.
The long-term rates represent one of the most significant preferential treatments in the U.S. tax code. A taxpayer in the 22 or 24 percent ordinary income bracket pays only 15 percent on long-term gains. A married couple filing jointly with taxable income up to $94,050 (2025) pays zero percent on long-term capital gains — meaning they can realize gains from appreciated investments entirely tax-free. High earners with income above $583,750 (single) or $693,750 (married filing jointly) pay the top 20 percent rate, and the 3.8 percent Net Investment Income Tax stacks on top, producing an effective federal rate of 23.8 percent on long-term gains for top earners.
Cost Basis and How It Is Calculated
The cost basis of an asset is your tax investment in it — roughly, what you paid for it. For purchased assets, the initial basis is the purchase price plus any transaction costs (commissions, fees). For inherited assets, the basis is "stepped up" to the fair market value on the date of the original owner's death, which is one of the most powerful wealth transfer provisions in the tax code — meaning an heir who immediately sells inherited stock pays no capital gains tax on decades of appreciation. For gifted assets, the recipient generally takes the donor's original basis, so the gain accrued during the donor's lifetime remains taxable when the recipient eventually sells.
For investors who have purchased shares of the same stock or fund multiple times at different prices, choosing which specific shares to designate as sold can significantly affect the gain recognized. The default accounting method used by brokers is FIFO (first in, first out) — the oldest shares are treated as sold first. But investors can elect to use specific identification (SpecID), selecting which specific shares to sell to optimize their tax outcome. Selling shares with the highest cost basis minimizes realized gain (or maximizes loss), while selling shares with the lowest basis maximizes gain — useful if a taxpayer is in a zero-percent long-term gain bracket and wants to reset basis at current higher prices.
Special Rules for Real Estate
Real estate receives special treatment under capital gains rules, including one of the most generous exclusions in the code. Under Section 121, homeowners who have owned and used a property as their primary residence for at least two of the five years before sale can exclude up to $250,000 of gain from taxation ($500,000 for married couples filing jointly). A couple who bought a home for $400,000 and sells it for $900,000 owes no federal capital gains tax on the $500,000 gain. This exclusion can be used repeatedly, though not more often than once every two years.
Rental property and investment real estate do not qualify for the Section 121 exclusion, but investors can defer gain recognition through a Section 1031 exchange — a like-kind exchange in which the proceeds from selling one investment property are reinvested in another qualifying property within specific time limits (45 days to identify replacement properties, 180 days to close). Properly executed 1031 exchanges allow investors to defer capital gains taxes indefinitely, building equity in larger properties without tax friction at each transaction. The gain eventually becomes due when the final property in the chain is sold without reinvesting.
Depreciation recapture adds a wrinkle to real estate gains. When investors take depreciation deductions on rental property (deducting a portion of the building's cost each year over 27.5 years for residential, 39 years for commercial property), they reduce their cost basis. When the property is eventually sold, the gain attributable to prior depreciation deductions is subject to a special "unrecaptured Section 1250 gain" rate of 25 percent — higher than the standard 0/15/20 percent long-term rates — creating an additional tax cost that investors must account for in their net return calculations.
Collectibles, Cryptocurrency, and Special Asset Classes
Not all long-term capital gains qualify for the standard 0/15/20 percent rates. Gains from collectibles — art, antiques, coins, gems, wine collections — are taxed at a maximum rate of 28 percent regardless of holding period. This makes collectibles tax-disadvantaged relative to financial assets for high-income investors. Small business stock (Section 1202 qualified small business stock) receives the opposite treatment: gains from the sale of QSBS held for more than five years in a C corporation are excluded from federal tax up to $10 million or ten times the investor's basis — a provision heavily used in startup investing.
Cryptocurrency is treated as property by the IRS, meaning every disposition — sale, exchange, or even using crypto to purchase goods and services — is a taxable event subject to capital gains rules. The short/long-term distinction applies: crypto held more than a year receives long-term rates, while crypto held for a shorter period is taxed as ordinary income. The high volatility and frequent trading nature of cryptocurrency portfolios creates significant tax complexity, particularly for active traders who may have thousands of transactions in a single year. Dedicated crypto tax software is essentially required for accurate reporting.
Tax-Loss Harvesting and Gain Deferral Strategies
Tax-loss harvesting — the deliberate sale of assets at a loss to offset gains elsewhere in the portfolio — is one of the most practical strategies for reducing capital gains tax. If you have $20,000 of realized capital gains from selling a stock, selling other positions in the portfolio that currently sit at a $20,000 loss can completely offset the gain. The sold position is then replaced with a similar (though not identical) investment to maintain portfolio exposure — but be careful of wash-sale rules that disallow the loss if you repurchase the same or substantially identical security within 30 days before or after the sale.
Long-term deferral of gain recognition is the most powerful strategy available to buy-and-hold investors. By simply not selling appreciated assets, you defer the gain indefinitely — and if you hold the assets until death, your heirs receive a stepped-up basis eliminating the gain entirely. Donor-advised funds and charitable remainder trusts allow investors to contribute highly appreciated assets to charitable vehicles without triggering capital gains tax, receiving a charitable deduction at fair market value and eliminating the tax liability on the embedded gain — effectively allowing the full pre-tax proceeds to compound within the charitable account. For investors with philanthropic goals, donating appreciated securities is almost always more tax-efficient than donating cash.
Related Articles
taxes
1099 Contractor Taxes: Quarterly Payments, Safe Harbor, and Schedule C
Independent contractors must pay estimated taxes quarterly and file Schedule C. Learn 2024 deadlines, safe harbor rules, 1099-NEC vs. 1099-MISC differences, and penalty avoidance.
9 min read
taxes
Bonus Depreciation 2024: 60% Rate, Phase-Down Schedule, and Qualified Property
Bonus depreciation drops to 60% in 2024, 40% in 2025, and 20% in 2026. Learn qualified property rules, anti-churning provisions, and how to plan around the phase-down.
9 min read
taxes
Capital Gains Tax Explained: Rates, Rules, and How to Minimize It
Understand how capital gains tax works, the difference between short-term and long-term rates, special rules for home sales, and legal strategies to reduce your bill.
9 min read
taxes
Charitable Giving and Taxes: Deductions, Donor-Advised Funds, and QCDs
Donating to charity can reduce your tax bill significantly — if you use the right strategies. Learn how charitable deductions work, how donor-advised funds amplify benefits, and what qualified charitable distributions offer retirees.
9 min read