How Does LTCG Tax Work? | Pay Less When Selling

Long-term capital gains get lower federal rates than short-term gains after you net gains and losses and apply your taxable-income bracket.

LTCG means long-term capital gains. It’s the tax label for profit you realize when you sell a capital asset you’ve held long enough to be “long-term.” Stocks, ETFs, mutual funds, crypto, real estate, and collectibles can all land here.

The confusion usually comes from thinking LTCG is one rate. It isn’t. The bill depends on four things: how long you held the asset, what your true cost basis is, how gains and losses net together, and where your taxable income lands on the worksheet.

What LTCG tax means in plain terms

Long-term capital gains tax is the federal tax on your profit from selling a capital asset held for more than one year. Hold for one year or less and the profit is short-term, taxed at ordinary income rates.

Two rules drive the whole process:

  • Tax is triggered when you sell. Price swings before a sale don’t create tax on their own.
  • Netting happens before rates. The IRS has you combine gains and losses into net short-term and net long-term results.

How does LTCG tax work for stock sales and other investments

Think of the calculation as a straight line: confirm the holding period, compute gain or loss, net everything, then apply the long-term rate buckets and any special rules.

Confirm the holding period

The holding period starts the day after you acquire the asset and ends on the sale date. More than one year usually means long-term. When you’re near that one-year line, check the lot details in your broker before placing an order.

Compute gain or loss using basis

Gain is proceeds minus basis. Basis is often what you paid plus trade costs that are part of the purchase. Basis can shift with splits, reinvested distributions, gifted or inherited assets, and wash sale adjustments. If you’re unsure which rule applies, the IRS outline is the cleanest reference: IRS Topic No. 409 on capital gains and losses.

Net gains and losses in the IRS order

Short-term gains net with short-term losses. Long-term gains net with long-term losses. Then, if one side is negative and the other positive, they net together. If you end the year with a net capital loss, you may deduct up to $3,000 against other income, with the rest carried forward under the normal rules.

The filing steps and worksheets are in the IRS instructions, and they’re worth skimming once so you know what your software is doing. See the Instructions for Schedule D (Form 1040) for the netting sequence and the tax worksheets that handle capital gains.

Apply the long-term rate buckets

After netting, most net long-term gains are taxed at 0%, 15%, or 20% depending on your filing status and taxable income. The income cutoffs shift each year, so the right answer comes from the worksheet for the year you’re filing, not a random chart saved online.

What counts as an LTCG event

You generally owe capital gains tax when you sell or exchange a capital asset and you end up with a gain after netting. Common triggers include:

  • Sales of stock, ETFs, mutual funds, options, and crypto
  • Capital gain distributions from funds
  • Sales of real estate that aren’t fully excluded
  • Sales of collectibles, such as coins or art

Unrealized gains aren’t taxed. If your account value rises and you don’t sell, you haven’t realized a gain for federal income tax purposes.

How the worksheet blends gains with your income

LTCG doesn’t get taxed in a vacuum. The worksheet stacks your taxable income, then applies capital gain rates to the portion classified as net capital gain, while the rest of your taxable income keeps ordinary rates.

That’s why two people can sell the same stock for the same profit and pay different tax. Their taxable income levels are different, so the gain lands in different buckets.

If you want the IRS’s fuller walk-through of investment income, capital gain distributions, and sale reporting, use Publication 550 on investment income and expenses.

Recordkeeping that makes LTCG math easier

Your broker’s 1099-B is a strong start, but it isn’t always the final word on basis. Some positions are “covered,” meaning the broker reports basis to the IRS. Others are “noncovered,” where the broker may not report basis, or the basis may be incomplete after transfers, old holdings, or certain corporate actions.

If you move shares between brokers, keep the transfer statement and verify that each lot’s basis and acquisition date arrived correctly. If you drip dividends, your basis rises with each reinvestment, so your records matter even when you never added fresh cash.

Wash sales are another common mismatch. If you sell at a loss and buy the same or a substantially identical security within the wash sale window, the loss is deferred and added to the basis of the replacement shares. Many brokers track wash sales inside one account, but cross-account trades can slip through, so you still want a quick scan before filing.

Real estate and home sales: two extra gates

Real estate gains still follow the “sell, compute basis, net, apply rates” pattern, but two extra gates show up often. One is depreciation recapture on rental property, which can tax part of the gain under a different rate cap. The other is the home sale exclusion, which can let qualifying sellers exclude some or all of the gain on a primary residence.

Even when an exclusion removes the tax, the sale can still affect worksheets, credits, or NIIT calculations. Treat real estate sales as a separate line item in your planning, not as “just another long-term gain.”

Common LTCG situations and what changes the result

This table is a quick scan of the places where long-term gains stop behaving like “plain stock sales.” It’s meant to help you spot which extra rules or forms might enter the picture.

Situation What changes the tax treatment Typical form trail
Long-term stock or ETF sale 0/15/20% bucket depends on taxable income after netting Form 8949 → Schedule D
Mutual fund capital gain distribution Distribution may be long-term even with a short holding period in the fund 1099-DIV → worksheet/Schedule D
Crypto held over one year Property rules plus basis tracking drive the result Form 8949 → Schedule D
Collectible sale Special maximum rate can apply to collectibles gains Schedule D with special-rate lines
Rental property sale Depreciation recapture rules can change part of the rate Form 4797 + Schedule D
Qualified small business stock Exclusion rules may reduce taxable gain; remaining taxable gain can have its own cap Schedule D + required statements
Net loss year Loss can offset gains and up to $3,000 of other income, with carryforward Schedule D loss lines
High-income filer NIIT can add 3.8% on some net investment income, including gains Form 8960

Net Investment Income Tax for higher-income filers

NIIT is a separate 3.8% surtax that can apply to net investment income when modified adjusted gross income crosses the NIIT threshold for your filing status. Capital gains can be part of net investment income, so a big long-term gain can pull NIIT into the year even if you’ve never filed it before.

If you’re near the threshold, follow the IRS line-by-line calculation in the Instructions for Form 8960. Brokerage statements won’t settle NIIT for you.

Ways people trim LTCG tax without drama

These are practical moves that fit inside normal filing rules. They won’t fit every situation, but they’re common enough that it’s worth knowing what levers exist.

Wait for long-term status when you can

Crossing the one-year mark can shift a gain from ordinary rates to long-term buckets. When you’re close, confirm the lot’s holding period before you sell.

Pick the lots you sell

If your broker supports specific identification, you can choose which shares you’re selling. Selling higher-basis lots can reduce realized gain. Selling long-term lots can keep the profit out of short-term rates. The only safe version is the one your broker records on the trade confirmation.

Use losses on purpose

Real losses can offset realized gains in the same year through netting. If you plan to buy back a similar position soon after selling at a loss, watch wash sale rules so the loss isn’t deferred.

Plan around taxable income

Long-term buckets depend on taxable income. Retirement contributions, deductions, and the timing of other income can shift your taxable income and change which portion of the gain sits in each bucket.

Checklist for estimating LTCG tax before you sell

This table is built for quick decision-making. It’s not a calculator. It’s a set of checks that prevents the most common “I didn’t see that coming” moments.

Check What to verify Common miss
Holding period Acquisition date, sale date, lot view Selling a short-term lot by accident
Basis Trade records, reinvested distributions, split history Overstating gain due to missing basis
Lot selection Which lots your broker will sell FIFO default when you meant specific lots
Netting impact Other gains and losses already realized Forgetting a loss that could offset the sale
Taxable income estimate Year-to-date income and expected deductions Gain landing in a higher bucket than you expected
NIIT exposure Modified AGI estimate and filing status 3.8% surtax showing up late
Cash for tax Withholding and estimated payment timing Underpayment penalty due to no set-aside

How Does LTCG Tax Work?

LTCG tax works by taxing your net long-term profit after netting at 0%, 15%, or 20% for most filers, with special rules for certain assets and possible NIIT for some higher-income returns.

If you anchor on holding period, basis, netting, and taxable income, you can usually estimate the range before you sell and avoid surprises at filing time.

References & Sources