Skip To Content

Selling stocks? 3 ways to help trim your tax bill

When you sell stocks to lock in investment gains or bring your portfolio mix back into balance, you could face tax consequences. These tips may help you limit what you owe.

 

WHEN YOU SELL INVESTMENTS you’ve owned for years, you may be looking at significant gains — and a significant tax bill. Outside of a tax-deferred account, you could face a capital gains tax as high as 20%1 on your profits (rates vary depending on your income — and there could be proposals in the future that could raise the capital gains rate).

 

Capital gain

Your profit when you sell a stock, house or other capital asset. If you owned the asset for more than a year, the gain is considered long-term, and special tax rates apply. The current capital gains tax rates are generally 0%, 15% and 20%, depending on your income.1

Even a 20% tax “may be a small price to pay for success,” says Joe Curtin, head of CIO Portfolio Management, Chief Investment Office, Merrill and Bank of America Private Bank. “You can celebrate keeping the 80%.” Still, there are several strategies you might consider discussing with your tax professional to help reduce what you may owe in capital gains taxes, Curtin suggests, including the three below.

 

Offset your gains by taking investment losses, too

“If a good part of your portfolio is up in value, while a smaller part is down,” Curtin says, “selling some of those ‘down’ investments at a loss — known as tax-loss harvesting — could help offset the tax you owe from the gains earned on your sale of better-performing stocks.” What’s more, if your capital losses are worth more than your capital gains in any given year, you can generally deduct up to $3,000 (or $1,500 if married and filing separately) of that excess from your ordinary income. And if your net capital losses exceed even that yearly limit, you can carry over the unused losses to claim in later years.2

 

Wash-sale rule

A tax law that prohibits you from claiming an investment loss on your taxes if you purchase the same or a “substantially identical” investment within 30 days of the sale.

Selling a poor performer to harvest a tax loss doesn’t necessarily mean giving up on investments you believe in. Maybe you own investments that have dropped in value since you bought them, but you want to keep them in your portfolio in the hopes of future gains. In that case, you could consider selling them, harvest the loss and then buy them again. Just work with your tax professional so that you’re waiting more than 30 days before repurchasing the same or similar stock — if you buy substantially similar investments 30 days before or after the initial sale, you might trigger wash-sale rules and the losses would not be allowed.

 

Stretch your investment gains over several years

Another option to discuss with your tax professional is to “spread the sale over multiple tax years — that can help ease the burden,” says Jonathon McLaughlin, investment strategist for Bank of America.

 

With an investment that has performed strongly, you might, for example, sell a portion of it at the end of 2024, another part during 2025 and the final portion at the beginning of 2026. That way you complete the sale in a little over 12 months while spreading potential capital gains over three tax calendar years for tax purposes, McLaughlin notes.

 

But don’t forget that waiting to sell involves risks. The advantages of holding on to those assets, McLaughlin notes, may not outweigh the benefits of selling immediately and reaping the rewards, even if it comes with a greater tax bill now.

 

Give away your investments more efficiently

To avoid paying capital gains taxes entirely, one option you may want to discuss with your tax advisor is to give certain appreciated investments away — either to charity or to your beneficiaries as part of your estate plan.

 

If you regularly donate to a particular charity, you might consider giving appreciated stock instead of cash. You may be able to deduct the fair market value of the stock if you’ve held it for more than one year (subject to certain adjusted gross income limitations). A charity typically does not have to pay capital gains taxes when it sells the shares, and you can use the cash you would have donated to purchase new investments. You can also give in this way by donating appreciated stock to a donor-advised fund.

 

Cost basis

The original price you paid for an investment plus or minus certain adjustments, which determine your taxable gain or loss when you sell.

The tax rules are different when you pass on investments to your beneficiaries. When assets go to your beneficiaries as part of your estate upon your death, the cost basis for tax purposes is generally stepped up to fair market value. However, if you give investments to your beneficiaries during your lifetime, the assets maintain a “carryover basis” or the same basis you held in the stock.

 

Any actions you may take should be based on your specific situation and needs rather than your desire to sidestep taxes, Curtin notes. So be sure to speak with your tax specialist and financial advisor before making any decisions.

 

Test your tax knowledge. True or False: The capital gains tax rate applies to both short- and long-term gains.

Select + to see the answer and learn more.

True

False

Choose your advisor in a more personalized way

All our advisors are committed to putting your needs and priorities first. Find some who match your personal preferences too.

Loading...

Try Advisor Match

Want us to contact you?

1 Plus a potential 3.8% net investment income tax.

2 Internal Revenue Service, “Topic No. 409, Capital Gains and Losses,” Jan. 30, 2024.

 

Important Disclosures

 

Opinions are as of July 17, 2024, and are subject to change.

 

Investing involves risk including possible loss of principal. Past performance is no guarantee of future results.

 

Merrill, its affiliates, and financial advisors do not provide legal, tax or accounting advice. You should consult your legal and/or tax advisors before making any financial decisions.

 

This information should not be construed as investment advice and is subject to change. It is provided for informational purposes only and is not intended to be either a specific offer by Bank of America, Merrill or any affiliate to sell or provide, or a specific invitation for a consumer to apply for, any particular retail financial product or service that may be available.

 

The Chief Investment Office (CIO) provides thought leadership on wealth management, investment strategy and global markets; portfolio management solutions; due diligence; and solutions oversight and data analytics. CIO viewpoints are developed for Bank of America Private Bank, a division of Bank of America, N.A., (“Bank of America”) and Merrill Lynch, Pierce, Fenner & Smith Incorporated (“MLPF&S” or “Merrill”), a registered broker-dealer, registered investment adviser, Member SIPC and a wholly owned subsidiary of Bank of America Corporation (“BofA Corp.”).

 

Investments have varying degrees of risk. Some of the risks involved with equity securities include the possibility that the value of the stocks may fluctuate in response to events specific to the companies or markets, as well as economic, political or social events in the U.S. or abroad. Investments in foreign securities (including ADRs) involve special risks, including foreign currency risk and the possibility of substantial volatility due to adverse political, economic or other developments. These risks are magnified for investments made in emerging markets. Investments in a certain industry or sector may pose additional risk due to lack of diversification and sector concentration.

X

You need to answer some questions first

Then we can provide you with relevant answers.

Get started