Does the Wash Sale Rule Apply to Bonds? (w/Examples) + FAQs

This article reflects federal tax rules and general state conformity rules as of June 2026 and covers tax year 2025 (the 2026 filing season). Tax law changes often โ€” confirm current figures with the IRS or a licensed tax professional before you file.

Quick Answer

Yes. For tax year 2025, the wash sale rule applies to bonds. If you sell a bond at a loss and buy the same or a “substantially identical” bond within 30 days before or after the sale, the IRS disallows your loss. The disallowed loss is added to the new bond’s cost basis, not erased.

When you sell a bond for less than you paid, you normally claim a capital loss that offsets your gains and up to $3,000 of ordinary income each year. But Section 1091 of the tax code blocks that loss when you buy back the same or a nearly identical bond inside a 61-day window, and most investors never realize bonds count until the IRS letter arrives.

The stakes are real and time-sensitive. The wash sale window runs 30 days before and 30 days after your sale, so a single automatic reinvestment or a quick rebuy can quietly wipe out a deduction you were counting on. The IRS reports that tens of millions of returns claim capital gains and losses each year, and bond investors who tax-loss harvest in volatile rate markets are squarely in the danger zone.

Here is what you will learn in this guide:

  • ๐Ÿ“œ What the wash sale rule is, and the exact law that makes it apply to bonds
  • ๐Ÿ” How the slippery “substantially identical” test works for bonds versus stocks
  • ๐Ÿ’ต Fully worked dollar examples showing the disallowed loss and the new basis
  • ๐Ÿงพ How to report a bond wash sale on Form 8949 and Schedule D, line by line
  • โš ๏ธ The most common bond wash sale mistakes and how to dodge every one

What the Wash Sale Rule Is

The wash sale rule is a federal tax rule that stops you from claiming a loss when you sell an investment and quickly buy it back. Congress wrote it into Section 1091 of the Internal Revenue Code. The goal is simple: the government does not want you to grab a tax break for a “loss” when you never really gave up your position.

A wash sale happens when you sell a security at a loss and, within 30 days before or 30 days after that sale, you buy the same or a substantially identical security. That is a 61-day window in total โ€” the day of the sale, the 30 days before it, and the 30 days after it. The IRS explains this in Publication 550, its main guide to investment income and expenses.

The consequence of a wash sale is that your loss is disallowed for the current year. You cannot use it to offset capital gains or to reduce up to $3,000 of ordinary income for tax year 2025. The loss is not gone forever, though. It is added to the cost basis of the replacement security, so you may recover the tax benefit later when you sell that replacement.

A common misconception is that the rule only punishes day traders or stock flippers. In truth, it catches calm, long-term investors too โ€” especially people who reinvest interest or dividends automatically, or who rebalance a bond portfolio near year-end. The rule does not care about your intent. It is mechanical.

What you should do about it: before you sell any bond at a loss for tax reasons, mark a calendar 31 days out and check every account you control for purchases of the same bond. If you find one, you either accept the disallowed loss or plan a different replacement. Waiting until the 31st day after the sale is the cleanest way to stay safe, as Fidelity notes in its wash sale guidance.

Why the Rule Covers Bonds, Not Just Stocks

Section 1091 applies to “stock or securities,” and a bond is a security. That single word is why bonds are covered. The law never limited itself to stocks, so corporate bonds, municipal bonds, Treasury bonds, bond mutual funds, and bond ETFs all fall under the rule. Fidelity confirms the rule applies to stocks, bonds, mutual funds, ETFs, and options held in a taxable account.

The consequence of ignoring this is the same for bonds as for stocks: the loss is disallowed and rolled into your new basis. Many investors assume bonds get a pass because they are “safe” income investments, but the IRS draws no such line. A loss on a bond is a capital loss, and a capital loss bought right back is a wash sale.

Here is a quick scenario. Dana sells a corporate bond at a $1,200 loss to lower her 2025 tax bill, then buys the very same bond back nine days later because rates looked attractive. Her $1,200 loss is disallowed, and it attaches to her new bond instead of cutting her taxes this year.

A frequent misconception is that the wash sale rule only matters in a taxable brokerage account. While the loss only arises in a taxable account, a repurchase inside your IRA can still trigger the rule โ€” and that version is far worse, as you will see below.

What you should do about it: treat your bonds exactly as carefully as your stocks when harvesting losses. Track every account, including retirement accounts and a spouse’s accounts, before you pull the trigger on a loss sale.

The “Substantially Identical” Test for Bonds

The heart of every wash sale question is whether the bond you bought back is “substantially identical” to the one you sold. The IRS has never given a clean, bright-line definition, as both Schwab and Fidelity point out. You must use careful judgment, because if the IRS disagrees, your loss vanishes for the year.

For bonds, “substantially identical” usually turns on three features: the issuer, the coupon (interest) rate, and the maturity date. Two bonds from the same issuer with the same coupon and the same maturity are almost certainly substantially identical. Change one of those features enough and the bonds may no longer match.

Individual Bonds: The Three-Factor View

With individual bonds, small differences can break the “identical” link. A 10-year Treasury maturing in 2035 is generally not substantially identical to a 10-year Treasury maturing in 2034, because the maturity dates differ. Likewise, a corporate bond from Apple is not identical to a corporate bond from Microsoft, even if the yields look similar.

The consequence of guessing wrong is a disallowed loss plus possible interest and penalties if the IRS adjusts your return. A common misconception is that any two bonds from the same company are “the same.” They are not โ€” a 2028 Apple bond and a 2031 Apple bond have different cash flows and different prices.

What you should do: when you want to keep your bond exposure but harvest a loss, swap into a bond with a clearly different issuer, coupon, or maturity, and document why you believe it is not substantially identical.

Bond Funds and ETFs: A Trickier Gray Area

Bond mutual funds and ETFs raise harder questions. Swapping one S&P 500 fund for another can be a wash sale problem, and the same logic stretches to bond funds, as Schwab explains. Two bond ETFs that track the same index are likely substantially identical; two that track different indexes usually are not.

The consequence of a careless fund swap is the same disallowed loss. The fix many investors use is to sell a total-bond-market fund and buy a fund that tracks a different index โ€” for example, moving from an aggregate bond index fund to an intermediate corporate bond fund. That keeps you invested in bonds while sidestepping the “identical” trap.

What you should do: compare the underlying index, not just the fund name or category. If the index differs, you have a strong argument the funds are not substantially identical.

Which Situation Applies to You?

The wash sale rule plays out differently depending on what you hold and where. Find your situation below, then read the matching section.

  • You sold an individual corporate or muni bond at a loss: Focus on the three-factor “substantially identical” test โ€” issuer, coupon, and maturity.
  • You sold a Treasury at a loss: Same three-factor test; different maturities are generally not identical, which gives you room to swap.
  • You sold a bond mutual fund or ETF: Compare the tracked index, not the name; different indexes usually avoid the rule.
  • You reinvest interest automatically: Watch for accidental rebuys inside the 61-day window from a reinvestment plan.
  • You hold bonds in both taxable and IRA accounts: The cross-account rules and the harsh IRA outcome under Revenue Ruling 2008-5 apply to you โ€” read the IRA section closely.

Worked Example: A Corporate Bond Wash Sale

Numbers make this real. Here is a fully worked example you can copy with your own figures, anchored to tax year 2025.

Meet Marcus, who bought one corporate bond for $10,000 in 2024. In November 2025, rates rose and the bond’s value fell, so he sold it for $8,800 โ€” a $1,200 loss he planned to use on his 2025 return. Twelve days later, Marcus bought the same bond back for $8,600 because he still liked the issuer.

Because he repurchased the same bond within 30 days, this is a wash sale. His $1,200 loss is disallowed for 2025. He cannot use it to offset gains or income this year.

The loss is not lost โ€” it moves to his new bond. Marcus paid $8,600 for the replacement, and the $1,200 disallowed loss is added to that. His new cost basis becomes $9,800. His holding period from the original bond also carries over to the new one, which can help him qualify for long-term rates sooner, as Schwab illustrates.

Now suppose Marcus sells that replacement bond in 2027 for $10,300. Without the wash sale, his gain would be $1,700 ($10,300 โˆ’ $8,600). With the higher $9,800 basis, his gain is only $500 ($10,300 โˆ’ $9,800). The $1,200 he could not deduct in 2025 reduced his taxable gain later โ€” deferred, not destroyed.

Wash Sale Step Dollar Result
Original purchase price (2024) $10,000
Sale price (Nov 2025) $8,800
Realized loss $1,200
Loss allowed in 2025 $0 (disallowed)
Replacement purchase price $8,600
Disallowed loss added to basis +$1,200
New cost basis $9,800

How the IRA Trap Makes It Worse

One bond wash sale outcome is far harsher than the rest. If you sell a bond at a loss in your taxable account and buy the same or a substantially identical bond inside your IRA or Roth IRA within the 61-day window, the rule still applies โ€” but you lose the loss for good.

Under Revenue Ruling 2008-5, the disallowed loss is not added to the basis of the IRA holding, because IRAs have their own basis rules. So the loss is forfeited, not merely deferred, as Fidelity warns. This is the worst possible result of a wash sale.

The consequence is plain: a $2,000 bond loss that triggers a wash sale across to your IRA can simply disappear, with no future basis recovery. A common misconception is that taxable and retirement accounts are walled off from each other for wash sale purposes. They are not.

What you should do: never buy the same or a similar bond in your IRA within 30 days of a loss sale in your taxable account. If you want that bond in your IRA, wait at least 31 days, or buy a clearly different bond.

How to Report a Bond Wash Sale on Your Taxes

Bond wash sales are reported on Form 8949 and carried to Schedule D. Form 8949 is the form where you list each sale, and Schedule D is where your totals flow to your Form 1040. If you are new to these, see a “How to Fill Out Form 8949” guide for a full walkthrough.

You report the sale in the normal columns: description, date acquired, date sold, proceeds, and cost basis. Then, in column (f), you enter the wash sale code “W.” In column (g), you enter the disallowed loss as a positive adjustment, which cancels out the loss in column (h).

Here is how Marcus’s wash sale lands on Form 8949. His proceeds were $8,800 and his basis was $10,000, a $1,200 loss in column (h) before the adjustment. He enters code “W” in column (f) and $1,200 in column (g), so the final gain/loss in column (h) becomes $0 for that line.

The deadline matters. Form 8949 and Schedule D are filed with your Form 1040, due April 15, 2026 for tax year 2025 (or October 15, 2026 with an extension). If you miss reporting a wash sale correctly, the IRS can adjust your return, deny the loss, and add interest on any underpaid tax.

Your broker often flags wash sales on your Form 1099-B, but only within the same account and same CUSIP, as Schwab notes. The CUSIP is the nine-character ID that identifies each security. Wash sales across different accounts or between you and your spouse are your job to track โ€” the broker will not catch them.

Three Common Bond Wash Sale Scenarios

These three patterns cause most bond wash sale surprises. Each shows the action and the tax result so you can spot your own situation.

Bond Action You Take Tax Outcome
Sell a corporate bond at a loss, rebuy the identical bond 10 days later Loss disallowed; added to the new bond’s basis
Sell a bond ETF at a loss, buy a different-index bond ETF 5 days later Loss generally allowed; indexes differ, not substantially identical
Sell a Treasury at a loss in taxable, buy the same Treasury in your IRA Loss disallowed and forfeited under Revenue Ruling 2008-5

A second pattern worth highlighting is the automatic reinvestment trap. If you sell part of a bond fund at a loss and your account automatically reinvests an interest or dividend payment into that same fund within 30 days, part of your loss is disallowed, as Fidelity explains.

A third pattern is the year-end timing trap. Selling a bond at a loss on December 20, 2025 and rebuying it on January 5, 2026 does not escape the rule, because the 30-day window crosses calendar years, as Schwab confirms.

Named Examples That Show the Rule in Action

Elena and the muni swap. Elena sells a California municipal bond at an $800 loss in 2025 to offset gains. She still wants tax-free income, so she buys a different California muni โ€” different issuer, different coupon, different maturity โ€” three days later. Because the bonds are not substantially identical, her $800 loss is allowed, and she keeps her tax-exempt exposure.

Raj and the accidental rebuy. Raj sells a bond ETF at a $1,500 loss on December 1, 2025. He forgets that his account auto-reinvests interest, and on December 18 it buys more of the same ETF. The portion matching the reinvestment is a wash sale, so part of his $1,500 loss is disallowed and shifted to basis.

Priya and the IRA mistake. Priya sells a Treasury bond at a $2,200 loss in her taxable account, then buys the identical Treasury in her Roth IRA two weeks later. Under Revenue Ruling 2008-5, her loss is disallowed and forfeited โ€” no basis bump in the Roth means the deduction is gone for good.

Federal vs. State Treatment of Bond Wash Sales

The wash sale rule is federal law, so the federal treatment is what drives the result. Section 1091 governs how the loss is disallowed and how the basis is adjusted. There is no separate “federal bond wash sale” rule โ€” it is the same Section 1091 that applies to all securities.

Most states that have an income tax start with your federal taxable income or federal capital gains, so they automatically follow the federal wash sale outcome. That means your disallowed loss stays disallowed at the state level too, and your adjusted basis carries over for state purposes in conforming states.

Federal Rule Typical State Treatment
Loss disallowed under Section 1091 Disallowed in most states that start from federal income
Disallowed loss added to new basis Same adjusted basis carries to the state return
Applies to munis, corporates, Treasuries, bond funds States with no income tax (such as Florida, Texas) do not tax the gain/loss at all

Does your state follow this? In the nine states with no broad personal income tax โ€” including Florida, Texas, Washington, and others โ€” there is no state capital gains tax, so the wash sale adjustment never affects a state bill. In income-tax states that conform to federal adjusted gross income, you generally do nothing extra; the federal answer flows through. Confirm with your state’s department of revenue, because a handful of states make their own adjustments.

Mistakes to Avoid

Each of these errors carries a real tax cost. Watch for all of them before you harvest a bond loss.

  • Assuming bonds are exempt. Believing the rule only hits stocks leads to a disallowed loss you did not plan for.
  • Forgetting automatic reinvestment. Auto-reinvested interest can trigger a partial wash sale and quietly shrink your deduction.
  • Ignoring the IRA. Rebuying the bond in an IRA forfeits the loss entirely under Revenue Ruling 2008-5.
  • Overlooking a spouse’s account. A purchase in your spouse’s account counts; the IRS treats married couples as one for this rule.
  • Miscounting the window. Counting only 30 days after the sale, not the 30 days before, misses half the danger zone.
  • Crossing year-end carelessly. Selling in December and rebuying in January does not reset the 30-day clock.
  • Treating same-issuer bonds as identical. Different maturities or coupons may not be substantially identical, costing you a legitimate loss you could have claimed.
  • Trusting the 1099-B blindly. Your broker only tracks one account and one CUSIP, so cross-account wash sales go unreported unless you catch them.

Do’s and Don’ts

Do’s

  • Do wait 31 days before rebuying the same bond, because that clears the post-sale window entirely.
  • Do swap into a different bond โ€” different issuer, coupon, or maturity โ€” to keep exposure while claiming the loss.
  • Do check every account you and your spouse control, since the rule spans all of them.
  • Do turn off auto-reinvestment near a loss sale, because automatic buys can trigger the rule.
  • Do document your reasoning for why a replacement bond is not substantially identical, in case the IRS asks.

Don’ts

  • Don’t buy the bond back in your IRA, because the loss is forfeited with no basis recovery.
  • Don’t assume December-to-January is safe, since the window ignores the calendar year.
  • Don’t rely only on the 1099-B, because it misses cross-account wash sales.
  • Don’t guess on “substantially identical” for bond funds without comparing the underlying index.
  • Don’t ignore small partial reinvestments, because even a tiny rebuy disallows a matching slice of the loss.

Pros and Cons of the Wash Sale Outcome

Pros

  • The loss is preserved in basis, so you usually recover the tax benefit when you sell the replacement.
  • The holding period carries over, which can move you to lower long-term rates faster.
  • No permanent loss in taxable accounts, because the deferral is recoverable later.
  • It enforces fairness, since you cannot claim a loss you did not truly take.
  • It is mechanical and predictable, so careful planning fully avoids it.

Cons

  • You lose the deduction this year, hurting cash flow when you need the offset now.
  • The IRA version forfeits the loss, a true permanent cost.
  • Tracking is on you, across accounts and spouses, which is easy to get wrong.
  • “Substantially identical” is vague, creating audit risk for bond-fund swaps.
  • It can disrupt your strategy, forcing you out of a bond for 31 days or into a different one.

When to Call a Professional

Most simple bond loss sales are manageable on your own. But some situations call for a CPA or tax attorney: large losses, frequent trading across multiple accounts, complex bond-fund swaps where “substantially identical” is unclear, or any IRA-crossing transaction. A professional review for this kind of issue often runs a few hundred dollars and can save far more in disallowed losses or IRS penalties.

This article is educational and is not a substitute for advice from a licensed tax professional about your specific situation. If your facts are complex or a lot of money is at stake, get personalized help before you file.

What to Do Next

Follow these steps in order before and after a bond loss sale.

  1. Pick your replacement plan first. Decide whether you will wait 31 days or swap into a clearly different bond.
  2. Scan every account. Check your taxable, IRA, Roth, and spouse’s accounts for any buy of the same bond in the 61-day window.
  3. Pause auto-reinvestment. Turn off reinvestment on the bond or fund around the sale date.
  4. Keep your records. Save trade confirmations, CUSIPs, and notes on why a replacement is not substantially identical.
  5. Report correctly. File the sale on Form 8949 with code “W” if needed, carry totals to Schedule D, and file by April 15, 2026.
  6. Call a pro if it is complex. For large or cross-account situations, get professional help before filing.

Frequently Asked Questions

Does the wash sale rule apply to bonds? Yes. For tax year 2025, bonds are “securities” under Section 1091, so selling a bond at a loss and rebuying the same or substantially identical bond within 30 days disallows the loss and adds it to your new basis.

Does the wash sale rule apply to municipal bonds? Yes. Municipal bonds are securities, so the rule applies. Swapping into a different muni with a different issuer, coupon, or maturity usually avoids it while keeping your tax-free income.

Does the wash sale rule apply to Treasury bonds? Yes. Treasuries are covered, but different maturity dates are generally not substantially identical, so you can often swap a 2034 Treasury for a 2035 Treasury and keep your loss.

What does “substantially identical” mean for bonds? Same issuer, coupon, and maturity. The IRS gives no bright-line rule, but bonds matching on issuer, interest rate, and maturity date are almost certainly substantially identical and will trigger the rule.

How long is the wash sale window? 61 days total. It covers the 30 days before your sale, the day of the sale, and the 30 days after โ€” so you must wait until the 31st day after to safely rebuy.

What happens to my disallowed bond loss? It is added to basis. In a taxable account the loss moves to your replacement bond’s cost basis and the holding period carries over, so you recover the benefit when you sell later.

Are bond mutual funds and ETFs covered? Yes. Bond funds and ETFs are securities. Two funds tracking the same index are likely substantially identical, but funds tracking different indexes generally are not.

Can I trigger a bond wash sale in my IRA? Yes. Buying the same bond in your IRA within the window disallows the loss, and under Revenue Ruling 2008-5 the loss is forfeited with no basis recovery โ€” the harshest outcome.

Does selling in December and buying in January avoid it? No. The 30-day window ignores the calendar year, so a December 20 sale and January 5 rebuy still creates a wash sale and disallows the loss.

Do states follow the federal bond wash sale rule? Most do. States that start from federal income automatically follow the disallowance and basis adjustment. No-income-tax states like Florida and Texas do not tax the gain or loss at all.

Will my broker report a bond wash sale for me? Only partly. Your 1099-B flags wash sales within the same account and CUSIP, but you must track wash sales across different accounts and your spouse’s accounts yourself.

How do I report a bond wash sale on my return? On Form 8949. Enter code “W” in column (f) and the disallowed loss as a positive number in column (g), then carry the totals to Schedule D with your 2025 Form 1040.

Word count: approximately 3,050 words.