Long-Term Capital Gains Tax on Stocks: Brackets, Losses, and Reporting

The long-term capital gains tax on stocks is charged at federal rates of 0%, 15%, or 20%, and the rate you pay depends on your filing status and where your total taxable income lands within the IRS bracket thresholds. To get these rates instead of ordinary income rates that can reach 37%, you have to hold the shares for more than one year before selling. High earners can owe an additional 3.8% on top.

What Counts as Long-Term

Your holding period has to exceed one year. Not equal it. The clock starts the day after you buy and runs through the date you sell, so selling on the exact one-year anniversary is still a short-term sale taxed at ordinary rates.

Buy on March 15, 2025, and the earliest qualifying sale date is March 16, 2026. Trade confirmations from your broker show the acquisition and sale dates you’ll need. If you bought the same stock in separate lots on different days, each lot carries its own holding period.

2026 Long-Term Capital Gains Brackets

For the 2026 tax year, the IRS set the rate tiers at these taxable income levels, published in Revenue Procedure 2025-32:

  • 0% rate: up to $49,450 single, $98,900 married filing jointly, $66,200 head of household.
  • 15% rate: above the 0% ceiling up to $545,500 single, $613,700 married filing jointly, $579,600 head of household.
  • 20% rate: any long-term gains on taxable income above the 15% ceiling.

How Your Gain Stacks on Top of Other Income

The rate isn’t decided by looking at the gain alone. The IRS stacks your long-term gains on top of your ordinary income, and the stack decides which bracket each dollar falls in. A single filer with $40,000 in wages and a $20,000 long-term gain sees the first $9,450 of gain fall in the 0% bracket (that’s $49,450 minus the $40,000 already used up by wages), and the remaining $10,550 taxed at 15%. Modest incomes don’t automatically mean a tax-free sale; a large enough gain pushes part of itself into the next bracket.

The 3.8% Net Investment Income Tax

Higher earners owe a separate 3.8% surtax called the Net Investment Income Tax. It applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Those thresholds are set by statute and don’t adjust for inflation, so more taxpayers cross them every year. At the top, the combined federal rate on a long-term stock gain reaches 23.8%.

Figuring the Taxable Gain

The gain is your sale proceeds minus your cost basis. Basis is what you originally paid, including any purchase commissions or fees. Stock splits and returns of capital during your holding period adjust the basis.

Which Shares Did You Sell?

When you’ve bought the same stock at different prices over time, you need a method to decide which shares went out the door. The IRS recognizes two for individual stocks:

  • Specific identification. You tell the broker before the trade which lot you’re selling. This gives you control, because selling higher-cost shares first shrinks the reported gain.
  • First-in, first-out. If you don’t identify a lot, the IRS treats your oldest shares as sold first, which in a rising market usually means the largest gain because your earliest shares cost the least.

An average cost method is available for mutual funds and certain dividend reinvestment plans, but not for ordinary stock positions.

One boundary worth knowing: for stock purchased after 2010, your broker tracks and reports basis to the IRS on Form 1099-B (a “covered security”). Shares held from before 2011 are noncovered, and you’re responsible for the basis records yourself.

Using Losses to Reduce the Bill

Capital losses offset capital gains dollar for dollar. If your losses for the year exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income ($1,500 if married filing separately), and any remainder carries forward indefinitely until it’s used up.

The character of the loss carries with it. A net long-term loss stays long-term and offsets long-term gains first. Deliberately selling losing positions to soak up gains is often called tax-loss harvesting, and it’s one of the few real controls you have over the annual bill.

The Wash Sale Rule

There’s a limit. Sell a stock at a loss, then buy the same stock or something substantially identical within 30 days before or after the sale, and the IRS disallows the loss. The 61-day window blocks investors from claiming a deduction while keeping essentially the same position.

The disallowed loss isn’t destroyed. It gets added to the basis of the replacement shares, and the original holding period tacks on, so the tax benefit is deferred rather than lost. The rule covers stocks, bonds, ETFs, and mutual funds, and currently does not apply to cryptocurrency.

Inherited and Gifted Shares Follow Different Rules

Stock that came to you from someone else doesn’t use the basis you’d expect from a normal purchase.

Inherited Stock

When you inherit shares, your basis resets to the fair market value on the date the original owner died. This step-up can erase decades of built-in gain in one moment. If a parent paid $10,000 for shares worth $100,000 at death, your basis is $100,000, and a next-day sale at that price produces no tax. Inherited stock is automatically treated as long-term no matter how briefly you hold it, or how briefly the deceased did. The step goes both directions; if the shares had lost value, the basis steps down.

Gifted Stock

A gift during the donor’s lifetime does not get a step-up. You generally take the donor’s original basis and their holding period. Shares the donor bought for $5,000 and gave you when worth $25,000 leave you with a $5,000 basis, and any years the donor already held them count toward your one-year test.

A special rule applies when the fair market value at the time of the gift is below the donor’s basis. For calculating a loss, your basis is the gift-date fair market value rather than the donor’s higher figure. If you sell somewhere between the two, you report neither gain nor loss.

Reporting the Sale

Your broker sends Form 1099-B after year-end with acquisition dates, sale dates, proceeds, and basis for covered securities. You transfer that information onto Form 8949, using Part II for long-term transactions, one line per sale. A checkbox at the top indicates whether the broker reported the basis to the IRS.

Totals from Form 8949 flow to Schedule D of your Form 1040, which combines long-term and short-term results to produce your net figure. Tax software handles the transfer, but the numbers on your forms need to match the 1099-B the IRS already has.

Estimated Payments After a Big Sale

A large mid-year sale can produce a tax bill that ordinary payroll withholding doesn’t cover, and the IRS charges an underpayment penalty when too little is paid in during the year. You avoid the penalty if any of these are true:

  • You owe less than $1,000 after withholding and refundable credits.
  • You paid at least 90% of your current-year tax liability through withholding and estimated payments.
  • You paid at least 100% of your prior-year liability, or 110% if your prior-year adjusted gross income was above $150,000.

The prior-year safe harbor is usually the easiest, because that number is already known. Estimated payment deadlines fall on April 15, June 15, September 15, and January 15 of the following year.

State Taxes Add to the Federal Bill

Federal rates are only part of what you owe. Most states tax capital gains as ordinary income, at rates that vary widely; a few states have no income tax at all, and others impose rates above 10% on high earners. Your combined federal and state rate can approach or exceed 30% depending on where you live. Your state tax agency publishes the rate that applies to your bracket, and the difference between states is large enough to affect when, and sometimes where, investors choose to sell.