What Is a Tax Swap?

Tax Swaps Explained

person with glasses working on computer
Photo:

damirudic / Getty Images 

A tax swap is when you apply a capital loss on one asset to offset a capital gain on another, minimizing the taxation on investment income.

Key Takeaways

  • A tax swap typically begins with selling a money-losing stock or security, then claiming a capital loss for the difference between its purchase and sales price.
  • The use of a tax swap can reduce capital gains earned on a subsequently purchased asset, resulting in tax savings.
  • The Internal Revenue Service (IRS) prohibits the tax swap practice between “substantially identical” securities. They can be similar, but they can’t be the same.
  • State and local tax authorities will sometimes reduce or eliminate an unpopular tax and hike another tax in another version of a tax swap. 

Definition and Example of a Tax Swap

A tax swap typically means selling a stock or security that’s underperforming and claiming a capital loss on the transaction. You can carry this loss over and subtract it from your taxable capital gains income if you then purchase a similar, better-performing security, and proceed to sell that to realize a capital gain. Tax-loss harvesting is another term for this type of activity.

But a tax swap can also describe a taxing authority that reduces one type of tax and increases another in an effort to raise revenue without creating an undue burden on taxpayers.  

These different types of tax swaps can have varying implications as to how much you might pay in resulting taxes. If you understand the differences and how they work, you can minimize a tax hit and avoid penalties. 

Example of a Tax Swap

For example, you might lose $5,000 when you sell Stock A, but Stock B might earn you $6,000 when you sell it within the same year. You can deduct that $5,000 loss from your gain, resulting in a taxable capital gain of just $1,000. 

Now suppose that you lost $7,500 on Stock A. You still earned $6,000 on Stock B. You don’t necessarily lose that remaining $1,500 loss, because the Internal Revenue Code (IRC) allows you to carry that loss over to apply to your regular income, up to $3,000 per year. You can even carry that $1,500 loss over to future tax years if you don’t have regular income. But you must apply your loss to your capital gains income first.

Note

The limit of excess loss that you can claim to lower your income is $3,000 if you're single, or $1,500 if you’re married but filing a separate tax return.

How Does a Tax Swap Work?

A tax swap is usually two transactions: You would sell the losing investment in the first transaction, and then you can turn around and purchase a similar, higher-priced investment in the second transaction. 

Important

The type of loss you have will impact the result of a tax swap. Short-term capital gains are typically taxed at a higher federal income tax rate than long-term capital gains.

This tactic works well when you’re sitting on an investment that’s showing a loss, although you haven’t actually felt the dollar pinch yet. A capital loss occurs when you sell an asset for less than what you paid for it. A capital gain occurs when you sell it for more.

Your $5,000 loss on stock A might be the result of paying $10,000 for that stock when you first purchased it, but it’s only worth $5,000 today. This loss isn’t reflected in your bank account, but rather in your investment portfolio. You don’t have a cash loss until you actually sell the asset, and you can claim that as a capital gains loss because it’s now a cash loss. You would receive no tax benefit if the losing stock were to keep sitting in your portfolio. 

Note

Your portfolio won’t have a loss, either, because you’re replacing that iffy asset with another that’s better-performing, thus the term “swap.” 

You can make a tax swap literally up until the eleventh hour of the tax year and, in fact, most investors reserve it for end-of-year tax planning. The practice is often referred to as “harvesting" your losses, because you’re effectively gathering them up for tax purposes.

Disadvantages of Tax Swaps

It might sound like a perfect plan, but tax swaps have their pros and cons. It can end up actually costing you money if you perform the transactions incorrectly. You must be careful not to run afoul of IRC “wash sale” rules. 

The key term in a successful tax swap transaction is buying a “similar” stock or asset. You can’t purchase what the IRS refers to as a “substantially identical stock or security.”

For example, you can sell a stock you held in Pinterest and purchase stock in Meta (formerly Facebook) because they’re similar but they’re not the same company, but you couldn’t buy other Pinterest stock. Your loss will be disallowed if you do.

You must then add the disallowed loss to your basis in the new asset, effectively postponing any tax benefit until such time as you sell the second asset.  

Tip

You can sell a stock and buy another in the same industry. The wash sale rule is only triggered when you sell and buy stock in the same company, although the transaction isn’t necessarily safe if you don’t. 

By definition, a wash sale occurs when you replace your losing asset with one that’s substantially identical, and you do so within 30 days before the sale day or 30 days after. The rule prevents investors from selling a tanking asset, claiming the loss for tax purposes, then turning right around and buying the same asset back again. The rule also applies if your spouse or a corporation you control purchases the substantially identical asset.

Another potential drawback to tax swaps is that you’re not purchasing the same stock or security, but only something similar. It’s always possible that your newly purchased asset will decrease in value after the transaction, while your sold asset suddenly inhales new life and begins thriving, but you don’t own it anymore. 

Important

Always check with a tax professional before you attempt a tax-loss harvest, and perhaps with an investment counselor as well. Don’t jump in unless you’re fully armed with all the necessary understanding and information. 

Another Type of Tax Swap  

State and local tax authorities can get in on the tax swap concept as well, but the process is actually quite different when they do it. A tax authority or government might want to repeal an existing tax for any number of reasons. Maybe it’s not raising the expected revenue, or it’s earned a lot of disfavor among voters. But the authority still needs revenue, so it replaces Tax A with Tax B. Sometimes it might drastically reduce the Tax A rate while hiking the Tax B rate. 

These types of swaps might occur between two state taxes or perhaps one local and one state tax. The tax authority does not have to be the same for both. 

Texas attempted this type of tax swap in 2019, but voters rejected it. The idea was to increase the sales tax by 1% while correspondingly lowering property taxes earmarked for school districts.

Frequently Asked Questions (FAQs)

How do tax swaps work with municipal bonds?

For a portfolio with municipal bonds, a tax swap allows you to offload municipal bonds that are no longer desirable and buy similar (but not identical) bonds you prefer, while using that capital loss to offset other gains at tax time.

What was the California fuel tax swap?

Until 2010, California had been applying both a state excise tax and a sales tax on gasoline, using the revenue to service debt on various transportation bonds. When that method was declared invalid in court, the state legislature implemented a tax swap that eliminated a portion of the sales tax on fuel, swapping it for an excise tax that raised the same amount.

Was this page helpful?
Sources
The Balance uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. IRS. “Topic No. 409 Capital Gains and Losses.”

  2. Cornell Law School, Legal Information Institute. "26 U.S. Code § 1091 - Loss From Wash Sales of Stock or Securities."

  3. Texas Association of Counties. “Tax Swap Proposal Dies."

  4. UCLA Luskin School of Public Affairs. "The California Fuel Tax Swap," Page 1.

Related Articles