BuyMeWhiskey
🇺🇸 US

Can selling losing stocks reduce capital gains tax?

GlobalPublished · Written by BuyMeWhiskey Editorial Team · How we check facts

Selling an investment for less than you paid can create a capital loss that offsets capital gains, but buying and selling random stocks is not a sound tax strategy. The sale should make sense for your portfolio as well as your tax position.

Want to check the US rules before selling? Start with IRS guidance on capital gains and losses.

IRS capital gains and losses

Run your own numbers: Compound interest and savings calculator.

A loss can reduce a gain, but it does not make a bad investment good

For US taxpayers, a realised capital loss can generally be used against capital gains. That is the useful part of tax-loss harvesting. The tax benefit comes from changing the tax result of an investment you have actually sold; it does not arise merely because a share price has fallen on your screen.

That distinction matters because the question suggests buying random stocks and selling whichever ones decline. Doing that solely to manufacture deductions can leave you holding a portfolio with poor diversification, higher trading friction or a risk profile you never wanted. A sensible loss sale usually starts with the investment decision, then considers the tax consequence.

What the loss is actually offsetting

Suppose one holding has a $7,000 gain and another has a $3,000 loss. The realised results combine to leave a $4,000 net capital gain before considering any other tax rules. The loss has therefore reduced the amount of gain exposed to capital-gains tax; it has not created a $3,000 tax refund.

Capital gains and losses are grouped under the federal rules described by the IRS. The character of the transaction also matters, because short-term and long-term gains are treated differently. Do not assume that any loss has the same tax value as any other loss.

The wash-sale rule can block the deduction

The biggest practical trap is the wash-sale rule. The IRS generally disallows a loss when you sell stock or securities at a loss and, within the 30-day window before or after the sale, acquire substantially identical securities. Investor.gov describes the same rule in plain language.

That means a tax-loss sale followed immediately by buying the identical fund is not automatically a clean way to harvest the loss. Keep the investment objective separate from the tax manoeuvre: if you need market exposure, consider whether a genuinely different holding meets the purpose without creating an unintended wash sale.

Do not let the tax tail wag the portfolio

A falling share price can mean several things. The business may have deteriorated, the valuation may still be too high, or the whole market may have repriced. Selling only because the position is down ignores why you bought it and what your allocation needs today.

Tax-loss harvesting is more compelling when you would be comfortable replacing the investment with something that serves the same broad role. For example, an investor who wants US equity exposure might compare alternative diversified holdings rather than jumping into an unrelated company just because it happens to be showing a loss.

“Buy low, sell high” is not a tax rule

Trying to sell at every 52-week high or buy only after a fall is an investing rule, not a tax strategy. A market high does not tell you that a security is about to fall, and a loss does not tell you that the investment is attractive.

If you are rebalancing, use your target asset mix, risk tolerance and investment horizon as the starting point. A tax saving can strengthen the case for a sale you already wanted to make. It should rarely be the sole reason to own a particular share.

When a loss sale can be useful

  • You already want to reduce or exit the position.
  • You have realised gains elsewhere that the loss can help offset.
  • The replacement investment fits the portfolio rather than merely filling a tax slot.
  • You have checked the wash-sale timing and the tax character of the transactions.

If the numbers are large or the portfolio contains funds, options, restricted stock or multiple taxable accounts, a tax professional can help confirm whether the trades create the result you expect.

Illustrative realised gains after loss harvesting
Fund B gain$7,000Fund A loss-$3,000Net gain$4,000

Worked example

Illustrative US example: Maria bought Fund A for $8,000 and later sells it for $5,000 because she no longer wants that holding. That realises a $3,000 capital loss. In the same tax year, she sells Fund B for a $7,000 capital gain.

  • Fund A loss: $5,000 − $8,000 = −$3,000.
  • Fund B gain: $9,000 − $2,000 = $7,000.
  • Net gain before other items: $7,000 − $3,000 = $4,000.

The $3,000 loss has therefore reduced the realised gain to $4,000. It has not created a $3,000 tax credit. If Maria bought substantially identical securities inside the relevant wash-sale window, the tax result could be different, so the replacement trade needs to be checked before she treats the loss as deductible.

Does selling a stock at a loss reduce capital gains tax?#

It can reduce the gains included in your tax calculation because realised capital losses can offset capital gains under US rules. The saving depends on the tax character of the gains, the other transactions in the year and whether any wash-sale rule prevents the loss from being currently deductible.

Can I sell a losing stock just to get a tax deduction?#

You can realise a genuine investment loss, but tax should not be the only reason for the transaction. Selling a security you still want and replacing it with a substantially identical one can trigger the wash-sale rule, while buying an unrelated asset merely to create a deduction can distort your portfolio.

What is a wash sale in simple terms?#

A wash sale generally occurs when you sell stock or securities at a loss and acquire substantially identical securities within 30 days before or after the sale. The IRS rules can disallow the immediate deduction, so the calendar around both the sale and repurchase matters.

Should I sell a stock when it reaches a 52-week high?#

A 52-week high is a market reference point, not a tax instruction. Selling can make sense when the holding has become too large, your outlook has changed or you need to rebalance. A price milestone by itself does not establish that the investment is overpriced.

Can capital losses offset any type of income?#

Capital losses first interact with capital gains under the federal rules. If losses exceed gains, additional rules determine whether and how much excess loss can be used against other income and carried forward. The detailed limit should be checked against your filing position and the current IRS guidance.

Is tax-loss harvesting worth it for a small portfolio?#

It can be useful, but the tax benefit may be modest compared with spreads, trading costs, record-keeping and the risk of changing an otherwise sensible portfolio. The strongest case is usually a sale you already wanted to make, where a realised loss also has a clear tax use.

Keep reading

Next question →How much does financial advice cost in the UK?

Sources

  1. IRS Topic No. 409: Capital Gains and Losses
  2. IRS Publication 550: Investment Income and Expenses
  3. Investor.gov: Wash Sales
  4. IRS: Capital Gains, Losses, and Sale of Home

Figures were checked against these sources before publication. If a rule changes, we update the page and show the new date.

General information, not personal financial advice. Rules depend on your circumstances; check the official source or speak to a regulated adviser before acting.