Using Short-Term Losses to Offset Gains and Raise Cost Basis
October 9, 2025 · 5 min read

Using Short-Term Losses to Offset Gains and Raise Cost Basis

Short-term capital losses can be valuable because they first offset short-term capital gains, which are generally taxed at ordinary federal income-tax rates. If losses remain after that category is netted, the Schedule D calculation determines how they interact with long-term gains.

That ordering can support a second strategy: realizing selected gains to raise the basis of appreciated holdings without creating as much net taxable gain.

Start With the Netting Rules

Federal capital-gain calculations generally net short-term transactions separately from long-term transactions, then net the two category results. If an overall net loss remains, an individual may generally deduct up to $3,000 against other income and carry the rest forward.

Do not assume a short-term loss can be assigned to whichever gain produces the largest benefit. The tax return applies the required sequence.

A Gain-and-Loss Pairing Example

Suppose an investor has:

  • A $12,000 short-term capital loss from one sale.
  • A $5,000 short-term capital gain already realized.
  • An appreciated long-term fund lot with a $7,000 gain.

The short-term loss first offsets the $5,000 short-term gain, leaving a $7,000 net short-term loss. If the investor has a real portfolio reason to sell the appreciated long-term lot, the category results may then net to zero, subject to the complete return.

If the investor wants to continue owning the appreciated fund, selling it at a gain and repurchasing it can establish a new, higher basis. The wash-sale rule disallows losses, not gains, although other tax and trading considerations still apply.

Why a Higher Basis Can Help

A higher basis can reduce the gain recognized on a later sale. That may make future rebalancing, spending, or diversification easier.

But the strategy is not automatically free. Realizing a gain starts a new holding period on replacement shares, may affect state taxes or income-based thresholds, and gives up continued deferral on the old position. A harvested loss also has future value that should not be consumed without a purpose.

Use Specific-Lot Identification

The same security can contain short-term loss lots, long-term gain lots, and nearly flat lots. Confirm which shares the broker will sell and retain written confirmation. A default FIFO method can create a gain when the investor intended to harvest a loss.

Before executing, document:

  1. The character and amount of each expected gain or loss.
  2. The lot selected for every sale.
  3. The replacement for each loss position.
  4. Purchases inside the wash-sale window.
  5. The portfolio reason for realizing the gain.

See raising cost basis with gains and losses for another worked example and tax-lot optimization for lot selection.

Bottom Line

Short-term losses can offset highly taxed short-term gains and may create room for a deliberate long-term gain. Use the required netting order, raise basis only when it supports a portfolio goal, and confirm the final calculation with a tax professional.

Official Source

Stop overpaying — get started free →