What Is a Long-Term Investment and How Is It Taxed?

Federal long-term investment tax rules reward holding an asset for more than one year: profits on those sales are taxed at preferential capital gains rates of 0%, 15%, or 20%, well below the ordinary income rates that top out at 37%. Sell one day too early and the entire gain is taxed as ordinary income. On top of that basic split, the account you use, the way you handle losses, and what happens at death all change how much tax you actually owe.

The One-Year Line

The holding period is what separates a long-term gain from a short-term one. The clock starts the day after you buy an asset and runs through the day you sell. If more than one year has passed, the profit qualifies for long-term capital gains rates. If not, it is short-term and taxed as ordinary income at your marginal bracket, which for 2026 ranges from 10% to 37%.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026, Including Amendments From the One Big Beautiful Bill

That single distinction is why timing a sale matters. Selling at the 11-month mark can cost you the difference between a 15% rate and a 24% or higher rate on the same dollar of profit.

Long-Term Capital Gains Rates for 2026

Long-term capital gains are taxed at 0%, 15%, or 20%, depending on your taxable income for the year.2Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed For 2026, the income thresholds are:

  • 0% rate: taxable income up to $49,450 for single filers, $98,900 for married filing jointly, and $66,200 for head of household.
  • 15% rate: taxable income from those thresholds up to $545,500 for single filers, $613,700 for married filing jointly, and $579,600 for head of household.
  • 20% rate: taxable income above those 15% ceilings.

The thresholds are adjusted for inflation each year.3Internal Revenue Service. Revenue Procedure 2025-32 A retiree with modest taxable income can realize significant gains at the 0% rate, while a high earner selling the same shares would pay 20%.

The 3.8% Net Investment Income Tax

Higher earners face an extra layer on top of the capital gains rate. The Net Investment Income Tax adds 3.8% to investment gains when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. Those thresholds are not indexed for inflation, so more taxpayers cross them each year.4Internal Revenue Service. Net Investment Income Tax Combined with the top capital gains bracket, the effective rate on long-term gains can reach 23.8%.

Accounts That Change the Math

Holding investments inside a tax-advantaged account replaces the capital gains framework with a different set of rules. Growth inside the account is not taxed year to year, and depending on the account type, withdrawals may be taxed as ordinary income, taxed only on the earnings, or not taxed at all.

401(k) and 403(b) Plans

These employer-sponsored plans accept contributions directly from your paycheck, generally before tax. For 2026, the employee contribution limit is $24,500. Workers 50 and older can add $8,000 in catch-up contributions, for a total of $32,500. Workers aged 60 through 63 get a higher catch-up limit of $11,250, bringing their maximum to $35,750.5Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 Withdrawals in retirement are taxed as ordinary income.

Traditional and Roth IRAs

Individual Retirement Accounts come in two versions with opposite tax structures. A traditional IRA may give you a deduction now, then taxes every dollar you withdraw in retirement. A Roth IRA takes after-tax contributions, and qualified withdrawals after age 59½ come out completely tax-free, including all the growth.6Internal Revenue Service. Topic No. 451, Individual Retirement Arrangements (IRAs)

For 2026, the IRA contribution limit is $7,500, with an additional $1,100 catch-up for those 50 and older. The traditional IRA deduction phases out at higher incomes when you or your spouse is covered by a workplace retirement plan. For single filers with a workplace plan, the 2026 phase-out runs from $81,000 to $91,000. For married couples filing jointly where the contributing spouse has a workplace plan, the range is $129,000 to $149,000.5Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500

Choosing between the two comes down to when you expect to be in a higher tax bracket. If retirement income will be lower than current earnings, the upfront deduction on a traditional IRA saves more. If tax rates are expected to stay the same or rise, locking in tax-free growth with a Roth tends to win.

529 Education Savings Plans

Earnings in a 529 plan grow tax-free at the federal level, and withdrawals used for qualified education costs are not taxed.7Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs Many states also offer income tax deductions or credits for contributions.

Under the SECURE 2.0 Act, unused 529 funds can be rolled into a Roth IRA for the same beneficiary. The 529 account must have been open at least 15 years, and only contributions that have been in the account for at least five years qualify. Annual rollovers cannot exceed the Roth IRA contribution limit for that year ($7,500 in 2026), and the lifetime rollover cap is $35,000.7Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs

Early Withdrawal Penalty and Exceptions

Tax-advantaged accounts hold their benefits behind a door. Distributions from 401(k)s, 403(b)s, and traditional IRAs taken before age 59½ generally trigger a 10% early distribution penalty on top of the regular income tax owed on the withdrawal.8Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

Several exceptions waive the penalty, though not the income tax:

  • Total and permanent disability of the account owner.
  • Unreimbursed medical expenses exceeding 7.5% of adjusted gross income.
  • Up to $10,000 from an IRA for a qualified first-time homebuyer (not available from 401(k) plans).
  • A series of substantially equal periodic payments calculated based on life expectancy.
  • Separation from service during or after the year you turn 55, or 50 for public safety employees, for employer plans only.
  • Up to $5,000 per child for qualified birth or adoption expenses.
  • Up to $22,000 for losses from a federally declared disaster.

The exceptions apply differently depending on whether the account is an employer plan or an IRA, so the specific rules for your account type matter.8Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

Required Minimum Distributions

You cannot defer withdrawals forever. Required minimum distributions start at age 73 for traditional IRAs, 401(k)s, and similar accounts. The first distribution is due by April 1 of the year after you turn 73, and by December 31 each year after that. Roth IRAs are exempt from RMDs during the owner’s lifetime, which makes them useful for long-term wealth transfer.9Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs

Selling Your Home

Real estate gets its own break. If you have owned and lived in your home for at least two of the five years before selling, you can exclude up to $250,000 of gain from your income. Married couples filing jointly can exclude up to $500,000, provided both spouses meet the use requirement and at least one meets the ownership requirement.10Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

The exclusion applies only to a principal residence, not investment properties or vacation homes. You can use it more than once, but not more often than once every two years. A couple who bought a home for $300,000 and sells 15 years later for $750,000 owes no federal capital gains tax on the $450,000 profit.

Harvesting Losses Without Breaking the Wash Sale Rule

Selling losing positions to offset gains is a legitimate strategy, but the wash sale rule sets a boundary. 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 loss is disallowed for that year.11Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities

The disallowed loss is not gone. It gets added to your cost basis in the replacement shares, reducing your taxable gain when you eventually sell those shares. Investors who want to stay invested in a market sector while harvesting losses typically buy a different fund tracking a comparable but not identical index, then wait at least 31 days before repurchasing the original holding.

Inherited Investments and Step-Up in Basis

When someone dies and leaves behind appreciated assets, the cost basis of those assets is reset to fair market value at the date of death. If a parent bought stock for $10 a share and it was worth $80 a share when they passed away, the heir’s basis is $80. A sale at $85 produces a taxable gain of only $5 a share.12Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent

This step-up wipes out decades of unrealized appreciation for tax purposes and applies to stocks, real estate, and most other capital assets passed through an estate.

Separately, federal estate tax only applies to estates above the basic exclusion amount. For 2026, that threshold is $15,000,000 per individual, as increased by the One Big Beautiful Bill signed into law in July 2025.13Internal Revenue Service. What’s New – Estate and Gift Tax Married couples can effectively shelter up to $30 million. Estates below the threshold owe no federal estate tax, so most heirs receive both a stepped-up basis and a tax-free inheritance.