Tax-loss harvesting and charitable giving are two separate strategies that work best on opposite ends of your portfolio. You use tax-loss harvesting on investments that have lost money. You use charitable giving strategies on investments that have gained money.
The primary conflict arises from a fundamental IRS rule: you cannot deduct losses on personal property you give away.1 If you donate a stock that has lost value, the tax loss disappears forever, for both you and the charity. This mistake erases a valuable tax asset that could have saved you thousands. In fact, a 2022 study showed that strategic charitable giving, when combined with portfolio management, can increase the amount given to charity by over 20% while also boosting tax savings.3
Here is what you will learn to solve these problems:
- ✅ Understand the simple but powerful rule: sell your losers, and donate your winners.
- 💡 Discover how to turn your investment losses into a tax coupon you can use to lower your tax bill.
- 🎁 Learn the secret to giving more to charity and paying zero capital gains tax on your biggest investment wins.
- 🏦 See how special tools like Donor-Advised Funds can make you a superhero of charitable giving, even if you aren’t a billionaire.
- ❌ Avoid the costly “wash sale” trap that can erase your tax savings in an instant.
The Two Sides of Your Portfolio: Winners and Losers
Every investment you own in a regular brokerage account has a story. It either went up in value (a winner) or it went down in value (a loser). The tax rules for these two outcomes are completely different. Understanding this difference is the key to saving money on taxes and giving more to charity.
Your portfolio is a team of players. Some players have a great season and score a lot of points (your winners). Other players have a bad season and lose value (your losers). Smart tax planning is like being a good coach; you need a different play for each type of player.
Your First Tool: Tax-Loss Harvesting for Your Losing Investments
Tax-loss harvesting is a strategy for your investments that have gone down in value. You sell the losing investment on purpose. This sale creates a “capital loss,” which is like a tax coupon.
You can use this tax coupon to cancel out taxes on your investment winners. If you have more coupons than you have winners, you can use up to $3,000 of those losses to lower your regular income, like your salary.4 Any leftover losses can be saved and carried forward to use in future years.4
The Basic Steps of Tax-Loss Harvesting
The process is simple. First, you sell an investment that is worth less than what you paid for it. This could be a stock, bond, or mutual fund in a taxable brokerage account.5 This strategy does not work in retirement accounts like a 401(k) or an IRA.5
Second, to keep your money working in the market, you immediately buy a similar but not identical investment. For example, you could sell one S&P 500 index fund and buy a different S&P 500 index fund that tracks a slightly different version of the index.7 This keeps your investment plan on track while locking in the tax loss.
The Critical Mistake: The Wash Sale Rule
The government has a very important rule to prevent people from cheating the system. It’s called the wash sale rule. This rule says you cannot claim a tax loss if you buy the same or a “substantially identical” investment within 30 days before or after selling your loser.4
This creates a 61-day window you must watch carefully. The rule applies to all of your accounts, including your IRA and even your spouse’s accounts.4 Breaking this rule means the IRS will not allow your tax loss, and you lose the benefit.
Your Second Tool: “Charitable Gain Harvesting” for Your Winning Investments
The smartest way to give to charity is by donating your investments that have gone up in value. This is sometimes called “charitable gain harvesting”.12 This strategy is for investments you have owned for more than one year.
When you donate an appreciated stock directly to a charity, you get two huge tax benefits. First, you pay zero capital gains tax on the investment’s growth.14 Second, you can typically take a charitable deduction for the stock’s full market value on the day you donate it.14
Why This Is Better Than Donating Cash
Let’s say you want to give $10,000 to charity. You own a stock now worth $10,000 that you originally bought for $2,000. You have an $8,000 gain.
If you sell the stock first, you must pay capital gains tax on that $8,000 gain. This tax bill reduces the amount of cash you have left to donate. But if you donate the stock directly to the charity, the charity gets the full $10,000, and you never have to pay the capital gains tax.
| Comparison of Giving Methods |
| Your Action |
| Sell Appreciated Stock, Then Donate Cash |
| Donate Appreciated Stock Directly |
The Golden Rule: Never Mix These Strategies
The most common and costly mistake is applying the wrong strategy to the wrong asset. The rule is simple and absolute.
- For an investment with a loss: Always sell it first to harvest the tax loss. Then, donate cash to charity.16
- For an investment with a gain (held over a year): Always donate the investment directly to charity. Never sell it first.16
Donating a losing stock is like throwing away a winning lottery ticket. You give up the tax loss forever. Selling a winning stock before donating is like paying a tax you didn’t have to pay.
Three Common Scenarios: Putting It All Together
Let’s look at how these rules apply to real people. We will use examples for a high-earning family, a retiree, and a tech investor.
Scenario 1: The High-Income Professional Couple
Dr. Smith and her husband have a high income and want to give $20,000 to their local hospital. They own shares in a mutual fund they bought years ago for $5,000, which are now worth $20,000.
| Couple’s Decision | Tax & Charity Outcome |
| Action: They donate the $20,000 worth of mutual fund shares directly to the hospital. | Consequence: They completely avoid paying capital gains tax on their $15,000 profit. They also get to claim a charitable deduction for the full $20,000, saving them thousands on their tax bill.15 |
| Mistake: They sell the fund, pay capital gains tax on the $15,000 profit, and donate the remaining cash. | Consequence: They create a tax bill for themselves. The hospital receives less than the full $20,000, and their tax deduction is smaller. |
Scenario 2: The Retiree with an IRA
Mr. Jones is 75 years old and must take money out of his traditional IRA each year. This is called a Required Minimum Distribution (RMD). He wants to donate $10,000 to his church.
| Retiree’s Decision | Tax & Charity Outcome |
| Action: He uses a Qualified Charitable Distribution (QCD) to send $10,000 directly from his IRA to the church. | Consequence: The $10,000 donation counts toward his RMD but is not included in his taxable income for the year. This keeps his income lower, which can help reduce his Medicare premiums.18 |
| Mistake: He withdraws $10,000 from his IRA, pays income tax on it, and then writes a check to the church. | Consequence: The $10,000 withdrawal increases his taxable income for the year. This could push him into a higher tax bracket and increase his Medicare costs. |
Scenario 3: The Investor with Cryptocurrency
Maria is an investor who owns several cryptocurrencies. Her Bitcoin investment is up $50,000, but another crypto investment is down $10,000. She wants to make a large charitable gift.
| Investor’s Decision | Tax & Charity Outcome |
| Action: She donates some of her appreciated Bitcoin directly to a charity that accepts crypto. She also sells her losing crypto to perform tax-loss harvesting. | Consequence: She avoids capital gains tax on the donated Bitcoin and gets a deduction for its full value.20 She also creates a $10,000 tax loss to offset other gains. Because the wash sale rule does not currently apply to crypto, she can even buy the losing crypto back immediately.20 |
| Mistake: She sells her Bitcoin, pays the tax, and donates the cash. She holds on to her losing crypto, hoping it will recover. | Consequence: She creates a large tax bill from selling Bitcoin. She also fails to use the tax benefit from her losing investment, leaving a valuable tax coupon on the table. |
Supercharge Your Giving: Donor-Advised Funds (DAFs)
A Donor-Advised Fund, or DAF, is like a special savings account for your charitable giving. You can donate cash, stocks, or other assets to your DAF and get an immediate tax deduction.3 The money can then be invested and grow tax-free inside the DAF.
You can then recommend grants from your DAF to your favorite charities whenever you want. This is a powerful tool for a few reasons.
- Donate Appreciated Assets Easily: Many small charities can’t accept stock donations. You can donate your appreciated stock to a DAF, and the DAF handles selling it. You still avoid the capital gains tax, and you can then send cash grants from the DAF to any charity you choose.3
- Bunch Your Donations: The standard deduction is now very high ($29,200 for married couples in 2024).26 Many people no longer get a tax benefit from giving because their total deductions are less than this amount. With a DAF, you can “bunch” several years of donations into a single year. For example, you could donate $30,000 to your DAF in one year to get over the standard deduction and claim a large tax break. Then, you can take the standard deduction for the next two years while still sending your normal annual grants from the money in your DAF.26
Do’s and Don’ts of Smart Giving and Tax Planning
| Do’s | Don’ts |
| Do review your portfolio for both winners and losers. | Don’t donate an investment that has lost value. |
| Do donate appreciated assets you’ve held for more than a year. | Don’t sell an appreciated asset and then donate the cash. |
| Do keep excellent records of your donations. | Don’t forget about the wash sale rule when tax-loss harvesting. |
| Do consider using a DAF to bunch donations and simplify giving. | Don’t wait until the last week of December to make your moves. |
| Do talk to a financial or tax advisor about your specific situation. | Don’t assume cash is the best way to give to charity. |
Mistakes to Avoid
- Donating a Losing Stock: This is the biggest mistake. You lose the chance to claim a capital loss on your taxes. The correct move is to sell the stock, take the tax loss, and donate the cash.16
- Donating a Short-Term Winner: If you donate an investment you’ve held for one year or less, your deduction is limited to what you paid for it, not its current higher value.15 It’s far better to donate assets you’ve held for more than a year.
- Triggering a Wash Sale in Your IRA: A very costly error is selling a stock at a loss in your brokerage account and then buying it back within 30 days in your IRA. The loss is disallowed, and because of how IRAs work, that tax loss is gone forever.4
- Waiting Until December 31st: Stock sales and transfers take time to complete. You should execute all sales and start all donation transfers by early December to ensure they are completed by the end of the year.6
Pros and Cons: Donating Stock vs. Donating Cash
| Donating Appreciated Stock | Donating Cash |
| Pros: You avoid capital gains tax, potentially increasing your gift by 20% or more. You can deduct the full market value. It helps you rebalance your portfolio tax-free.14 | Pros: It is simple and easy to do. Every charity can accept cash. The deduction limit is higher (60% of AGI vs. 30% for stock).29 |
| Cons: Not all charities can accept stock directly. The process is more complex than writing a check. The deduction is limited to 30% of your Adjusted Gross Income (AGI) per year.3 | Cons: It is far less tax-efficient if you have appreciated stock. You miss the opportunity to avoid capital gains tax. Your gift has less overall financial impact. |
Frequently Asked Questions (FAQs)
Is it better to donate appreciated stock or cash?
Yes. It is almost always better to donate appreciated stock you have held for over a year. You avoid capital gains tax and can deduct the stock’s full value, making your gift much larger.
Does tax-loss harvesting save me money forever?
No. It is a tax deferral strategy, not elimination. It saves you money on taxes today, allowing that money to stay invested and grow. You will likely pay tax on the growth in the future.
Can I tax-loss harvest and donate the same stock?
No. These strategies are for opposite situations. You tax-loss harvest a stock that has lost value by selling it. You donate a stock that has gained value by giving it away directly.
What happens if I accidentally trigger the wash sale rule?
The IRS will not allow you to claim the tax loss for that year. The disallowed loss is added to the cost of your new investment, which reduces your taxable gain when you eventually sell it.
Does the wash sale rule apply to my IRA?
Yes. The rule applies across all of your accounts, including your IRA and your spouse’s accounts. Buying back a losing stock in an IRA is a costly mistake that permanently erases the tax loss.
What is a Donor-Advised Fund (DAF)?
It is a charitable giving account. You contribute assets, get an immediate tax deduction, and then recommend grants to charities over time. It is a powerful tool for tax planning and simplifying your giving.
I’m retired. Should I still tax-loss harvest?
Yes. It can still be a valuable tool. If you sell investments from a taxable account to pay for living expenses, you can use harvested losses to offset any gains from those sales.
What are the rules for donating cryptocurrency?
The IRS treats it like property. Donating appreciated crypto held over a year follows the same rules as stock. You avoid capital gains tax and can deduct the full value, but you need a qualified appraisal.
Related reading
- Do Charitable Gifts Reduce My Estate Tax Exemption? + FAQs
- Can Donor Advised Fund Offset Capital Gains? + FAQs
- Capital Loss Harvesting: Pros, Cons, & Nuances (w/Examples) + FAQs
- How Will the 2026 Tax Law Affect High-Income Donors? (w/Examples) + FAQs
- Do Crowdfunding Returns Count as Capital Gains? (w/Examples) + FAQs
- Does Charitable Giving Reduce the 3.8% NIIT? (w/Examples) + FAQs
- What Donations Qualify for the Above-the-Line Charitable Deduction? + FAQs