Capital gains tax in plain English
Capital gains tax is not a single flat charge on sale proceeds. Federal tax depends on the gain after adjusted basis, whether it is short-term or long-term, other gains and losses, taxable income, filing status, and the kind of asset.
State income tax may also apply under a different framework. Some sales trigger additional federal rules, including the net investment income tax or depreciation recapture.
The correct sequence is to calculate the gain, net all capital transactions, determine taxable income, and then apply the relevant rates.
Tax applies to gain, not proceeds
Suppose an investment is bought for an adjusted basis of $20,000 and sold for net proceeds of $27,000. The starting gain is $7,000, not $27,000.
Acquisition costs, selling expenses, reinvested distributions, returns of capital, improvements, depreciation, and other adjustments can change basis or amount realized.
Poor basis records can cause an overstated tax bill. They can also create an understated return, penalties, and interest. Reconcile broker information with original records before calculating tax.
Short-term gains use ordinary rates
A net gain from assets held one year or less is generally short-term and taxed at the same federal rates that apply to ordinary taxable income.
That does not mean every short-term gain is taxed at the taxpayer's top bracket. The progressive rate schedule applies in layers, and deductions, losses, filing status, and other income all affect the result.
Holding only a few extra days can sometimes change character, but investment risk, transaction terms, and wash-sale issues also matter. Tax should not be the sole reason to keep an unsuitable position.
Long-term gains use a separate rate schedule
Most net long-term capital gain is subject to federal rates of 0%, 15%, or 20%, based on taxable-income thresholds and filing status. The thresholds are indexed and should be checked for the applicable tax year.
The 0% rate does not mean all taxpayers below a threshold owe no tax on every sale. Ordinary taxable income uses the lower part of the income range first, and long-term gain fills the remaining ranges.
A sale can therefore span more than one long-term rate. Part may fall at 0% and the remainder at 15%, for example.
How capital-gain stacking works
Think of taxable ordinary income as the lower layer and net long-term gain as a layer placed above it. The gain is taxed according to the long-term brackets it occupies.
Assume a simplified example with $45,000 of taxable ordinary income and $20,000 of net long-term gain. The gain begins above $45,000, not at zero. The filing status and current annual thresholds determine how much falls into each capital-gain rate band.
Tax software worksheets perform the actual calculation because qualified dividends, special-rate gains, deductions, and other items interact with the layers.
Losses can offset gains
Capital losses first offset capital gains under the short-term and long-term netting rules. A net capital loss can generally offset up to $3,000 of other income for an individual, or $1,500 if married filing separately, with unused amounts carried forward.
Realizing a loss may reduce current tax, but the wash-sale rule can defer a loss when substantially identical securities are acquired around the sale.
Tax-loss harvesting should consider portfolio allocation, transaction costs, spreads, future tax rates, and replacement investments—not just the current deduction.
The 3.8% net investment income tax
The net investment income tax, or NIIT, is a separate 3.8% tax that can apply to certain net investment income when modified adjusted gross income exceeds the statutory threshold for the filing status.
Capital gains can be included in net investment income, but the tax is generally imposed on the lesser of net investment income or the excess over the income threshold.
The NIIT is not one of the 0%, 15%, or 20% long-term rates. A taxpayer can owe it in addition to the regular capital-gain tax.
Special maximum rates and recapture
Some long-term gains do not fit entirely within the general rate bands:
- collectibles gain and certain qualified small-business stock gain can face a maximum 28% rate;
- unrecaptured Section 1250 gain related to depreciated real property can face a maximum 25% rate; and
- depreciation recapture on business or rental property may be taxed as ordinary income under separate rules.
The stated percentages are maximum rates, not automatic rates on every dollar. The return calculation and ordinary bracket still matter.
Main-home sales
An eligible taxpayer may exclude up to $250,000 of gain from the sale of a main home, or up to $500,000 on certain joint returns, when ownership, use, and other tests are satisfied.
The exclusion applies to gain, not sale price. Basis generally includes purchase cost and qualifying improvements, while certain depreciation after the home was used for business or rental purposes may not be excludable.
Reduced exclusions and reporting exceptions can apply. Keep purchase, improvement, and closing records for as long as they affect basis.
Retirement and tax-advantaged accounts
Trades inside an IRA or qualified workplace retirement plan generally do not produce current Schedule D capital-gain tax for the owner. The account's distribution rules govern later tax.
Traditional-account taxable distributions are generally ordinary income. Qualified Roth distributions may be tax-free. A taxable brokerage account does not receive that same wrapper.
Asset location can change when tax is recognized, but fees, investment selection, access rules, contribution limits, and diversification remain important.
Estimated tax and withholding
A profitable sale may create tax that wage withholding does not cover. Federal underpayment rules generally examine payments made during the year, not only whether the balance is paid by the return deadline.
Estimated-tax safe harbors, annualized-income methods, and withholding timing can affect penalties. Tax withheld from wages is generally treated differently from an estimated payment for timing purposes.
Model the sale before closing when possible. Reserve cash for federal and state tax instead of reinvesting or spending all proceeds.
State capital-gain tax
Federal long-term rates do not determine state tax. A state may tax gain at ordinary rates, provide exclusions, apply special deductions, or impose no individual income tax.
Residency, property location, part-year moves, and source-income rules can affect which state may tax the gain. Moving after a sale does not necessarily change the source of the transaction.
Use the current state revenue agency guidance for the relevant year and transaction.
Planning before a sale
Useful questions include:
- What is the adjusted basis for the exact lot or property?
- Will the holding period be short-term or long-term on the sale date?
- Are capital-loss carryforwards available?
- Will the gain affect NIIT, credits, deductions, Medicare premiums, or other income-based items?
- Is an estimated payment needed?
- Does the state apply a separate tax?
Spreading sales across tax years, donating appreciated property, or choosing lots may change the outcome, but each strategy has eligibility and documentation requirements.
Common misconceptions
“The broker already withheld the tax.” Brokerage sales often do not include withholding sufficient for the final liability.
“Every long-term gain is taxed at 15%.” The general federal rates are 0%, 15%, and 20%, with income thresholds and exceptions.
“Entering a higher bracket taxes all income more.” Progressive brackets apply only to the portions within each range.
“A 0% gain has no consequence.” It can increase adjusted gross income and affect other tax or benefit calculations.
“Proceeds equal profit.” Adjusted basis and selling costs determine the gain.
Capital gains tax is a return-level calculation. Estimate it with the complete income picture, then preserve the records that make the estimate defensible.