Long-Term Capital Gains Tax Rates on Shares: NIIT and Losses

Long-term capital gains tax rates on shares are 0%, 15%, or 20% at the federal level, and which rate you pay depends on your taxable income and filing status. To qualify, you have to hold the shares for more than one year before selling. For tax year 2026, a single filer pays 0% on long-term gains while total taxable income stays at or below $49,450, 15% up to $545,500, and 20% above that. Sell any earlier than the one-year mark and the profit is a short-term gain taxed at ordinary income rates that run as high as 37%.

The One-Year Holding Period

The Internal Revenue Code defines a long-term capital gain as profit from selling a capital asset held for more than one year.1Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses Your holding period starts the day after you buy and ends on the day you sell. Shares purchased on March 1, 2025 have to be sold on March 2, 2026 or later to qualify.

The date that counts is the trade date, not the settlement date. Settlement is when the shares and cash actually change hands through the broker’s clearing process, but the IRS uses the day your order executes. Sell on day 365 and the gain is short-term; wait one more day and it’s long-term.

Short-term gains are taxed at ordinary income rates, which range from 10% to 37%.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses For someone in the 35% bracket, the difference between short-term and long-term treatment on a $50,000 gain is roughly $10,000 in federal tax alone. A single calendar day can be expensive.

2026 Federal Rates and Income Thresholds

The IRS adjusts the long-term brackets annually for inflation. For tax year 2026, Revenue Procedure 2025-32 sets them as follows:3Internal Revenue Service. Rev. Proc. 2025-32

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

Married individuals filing separately share the $49,450 zero-rate cap with single filers and hit the 20% rate above $306,850.3Internal Revenue Service. Rev. Proc. 2025-32 These thresholds use all your taxable income, not just your investment profits. Wages, self-employment income, and other earnings all count toward the bracket that applies to your gains.

How Gains Stack on Top of Ordinary Income

The rate on your gain isn’t determined by the gain alone. Long-term capital gains sit on top of your ordinary income for bracket purposes. Ordinary income fills the lower brackets first, and gains occupy whatever bracket space remains above that.

Here’s the practical version. You’re single with $40,000 in wages and a $30,000 long-term gain. Your wages fill the first $40,000 of bracket space. The 0% capital gains rate applies to the next $9,450 of your gain (the gap up to $49,450), and the remaining $20,550 is taxed at 15%. You don’t get 0% on the entire gain just because each piece of income individually falls below the threshold. Most people with meaningful wage income pay 15% on most or all of their long-term gains.

The 3.8% Net Investment Income Tax

Higher earners face an additional 3.8% tax on investment income under Section 1411 of the Internal Revenue Code. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single or head of household) or $250,000 (married filing jointly).4Office of the Law Revision Counsel. 26 US Code 1411 – Imposition of Tax These thresholds are not adjusted for inflation and have remained unchanged since the tax took effect in 2013.

The surtax stacks on top of the regular capital gains rate. Someone in the 20% bracket who also triggers it pays an effective federal rate of 23.8% on stock profits. A 15% bracket filer whose modified adjusted gross income clears the threshold pays 18.8%.5Internal Revenue Service. Questions and Answers on the Net Investment Income Tax Because incomes drift up with inflation while the thresholds don’t, the tax catches more people every year.

Offsetting Gains with Losses

You’re taxed on net gains, not gross proceeds. Losses on other investments sold in the same year offset your gains directly. Sell one stock for a $20,000 gain and another for a $12,000 loss and you owe tax on $8,000. Short-term losses offset short-term gains first, long-term losses offset long-term gains first, and anything left over crosses to offset the other type.

If losses exceed gains for the year, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately).6Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything beyond that carries forward to future tax years indefinitely, so a large loss from one year can trim your tax bill for years afterward.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Watch the wash sale rule. If you sell a stock at a loss and buy the same stock (or a substantially identical security) within 30 days before or after the sale, the IRS disallows the loss for that year.7Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed loss is added to the basis of the replacement shares, so you get it back eventually, but not in the current year.

Inherited vs. Gifted Shares

The basis you subtract from your sale price to calculate the gain depends on how you got the shares.

Inherited Shares

When you inherit stock, your basis resets to the fair market value on the date of the original owner’s death.8Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent If a parent bought shares for $10,000 decades ago and they were worth $100,000 at death, your basis is $100,000 and the appreciation during their lifetime is never taxed. Inherited shares are also automatically treated as long-term, regardless of how long the decedent held them.9Office of the Law Revision Counsel. 26 USC 1223 – Holding Period of Property Sell the day after inheriting and you still qualify for the long-term rates.

Gifted Shares

Gifted stock is different. You generally take on the donor’s original cost basis and the donor’s holding period.10Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If an uncle bought stock for $5,000 eight years ago and gave it to you when it was worth $25,000, your basis is $5,000 and his eight-year holding period carries over. Selling triggers long-term capital gains tax on the $20,000 of appreciation plus any further gain.

A separate rule applies when the fair market value at the time of the gift is lower than the donor’s basis. If you later sell at a loss, you use the fair market value on the gift date as your basis for calculating that loss, not the donor’s higher original figure.

Choosing Which Shares to Sell

If you bought the same stock in multiple lots at different prices and dates, which shares you designate as sold affects both your gain and your holding period. The specific identification method lets you choose which lot goes, as long as you identify the shares to your broker at the time of the sale.11Internal Revenue Service. Stocks (Options, Splits, Traders) Picking higher-cost shares reduces the taxable gain; picking shares held more than a year secures the long-term rate.

Without specific instructions, the default is FIFO (first in, first out), which sells the oldest shares first. In a steadily appreciating stock, those are usually the lowest-basis lots and produce the biggest taxable gain. Most brokerage platforms let you set your default lot method in account settings, and setting it before you sell is much easier than fixing it after.

Reporting and Paying the Tax

Each stock sale is reported on IRS Form 8949 with the description of the holding, the buy and sell dates, cost basis, and proceeds.12Internal Revenue Service. Instructions for Form 8949 (2025) Long-term and short-term transactions go on separate parts of the form. Totals carry to Schedule D of Form 1040, where the net gain or loss is calculated.13Internal Revenue Service. Form 8949 – Sales and Other Dispositions of Capital Assets

Your broker sends a Form 1099-B early in the year with the details of every sale. Compare it to your own records, especially the cost basis column. Brokers are only required to report basis for shares purchased after certain dates, and they sometimes get basis wrong for transferred shares or those acquired through corporate actions. If the 1099-B is off, report the correct basis on Form 8949 with an adjustment code.

Payment is due April 15 even if you file for an extension. An extension gives more time to file, not more time to pay.14Internal Revenue Service. Need More Time to File? Don’t Wait, Request an Extension Late payments accrue penalties and interest.15Internal Revenue Service. When to File

A large mid-year gain can trigger an underpayment penalty if you wait until April to pay. You generally owe estimated tax if you expect to owe at least $1,000 after withholding and credits, and your withholding won’t cover at least 90% of the current year’s tax or 100% of last year’s (110% if your prior-year adjusted gross income exceeded $150,000).16Internal Revenue Service. Estimated Tax for Individuals Quarterly deadlines fall on April 15, June 15, September 15, and January 15 of the following year. If the gain lands in a single quarter, the annualized installment method on Form 2210 can prevent penalties for the earlier quarters.17Internal Revenue Service. Topic No. 306, Penalty for Underpayment of Estimated Tax W-2 employees get caught here because employers withhold automatically; brokerage accounts don’t.

State Taxes Are on Top of the Federal Rate

The federal rate isn’t the full bill. Most states tax capital gains as ordinary income, with rates from roughly 3% to over 13%. A handful of states, including Florida, Texas, Nevada, and Wyoming, have no state income tax at all, so residents keep the full benefit of the federal preferential rates. The combined federal and state rate is what actually determines how much of your stock profit you keep.