To offset capital gains with charitable contributions, donate the appreciated asset itself to a qualified public charity instead of selling it and giving cash. You avoid recognizing the built-in gain, and you claim an itemized deduction for the property’s full fair market value. For a top-bracket taxpayer, that can wipe out a combined federal rate of up to 23.8% on the appreciation (20% long-term capital gains plus the 3.8% net investment income tax) while producing a dollar-for-dollar deduction against ordinary income.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The strategy has real rules attached. Get the holding period, the deduction limits, the vehicle, and the paperwork right, and the tax savings are locked in. Miss one, and the deduction shrinks or disappears.
Donate the Asset, Not the Proceeds
The core move is a single transaction that produces two tax benefits. Because the charity is tax-exempt, it can sell the asset without owing capital gains tax, so the full value is preserved. You then deduct the current fair market value, not what you originally paid.2Internal Revenue Service. Publication 526, Charitable Contributions – Section: Giving Property That Has Increased in Value Buy stock for $10,000, watch it grow to $100,000, donate the shares: you deduct $100,000 and the $90,000 of unrealized gain simply never gets taxed to anyone.
Publicly traded securities are the cleanest asset to move this way. Most brokerages will transfer shares directly to a charity’s account, and the fair market value on the gift date comes straight from the trading price. Real estate qualifies too, but expect a qualified appraisal, deed transfer costs, and a conversation with the charity about whether it will accept the property. Investment real estate carries depreciation recapture on top of that.
Three Situations Where the Math Changes
The full-value deduction only applies to long-term capital gain property, meaning assets you’ve held more than one year. Donate something you’ve held a year or less and the deduction drops to your cost basis; the appreciation isn’t deductible.3Internal Revenue Service. Publication 526, Charitable Contributions – Section: Ordinary Income Property Pay $800 for stock now worth $1,000 after five months, and your deduction is $800.
If an asset has lost value, don’t donate it. Sell it first, harvest the capital loss, and donate the cash. You get both the loss deduction and the charitable deduction; giving the asset directly wastes the loss.
Tangible personal property, like artwork and collectibles, follows a related-use rule. If the charity’s use of the item is unrelated to its exempt purpose, your deduction drops to cost basis. A painting given to a museum that displays it keeps the full fair market value deduction. The same painting given to a charity that immediately sells it does not.4Internal Revenue Service. Publication 526, Charitable Contributions – Section: Tangible Personal Property Put to Unrelated Use
You Have to Itemize, and Clear a New AGI Floor
A charitable deduction only lowers your tax if you itemize on Schedule A.5Internal Revenue Service. Deducting Charitable Contributions at a Glance If your combined itemized deductions (charitable giving, mortgage interest, state and local taxes capped at $10,000, and the rest) don’t exceed the standard deduction, the charitable piece produces no benefit against your capital gain.
Starting in 2026, itemizers face an additional hurdle: charitable contributions must exceed 0.5% of adjusted gross income before any deduction begins. On $500,000 of AGI, the first $2,500 of giving produces no deduction. Small annual gifts lose value as a capital gains offset under this floor, which is one reason concentrating a gift into the same tax year as the gain matters.
How Much of the Gain You Can Actually Offset in One Year
The deduction is capped as a percentage of your AGI, and the cap depends on what you give and to whom:
- Cash to a public charity: 60% of AGI6Internal Revenue Service. Publication 526, Charitable Contributions – Section: Limits on Deductions
- Appreciated capital gain property to a public charity, at full fair market value: 30% of AGI
- Appreciated capital gain property to a private non-operating foundation: 20% of AGI
The 30% cap is the one that traps large gifts. On $400,000 of AGI, you can deduct up to $120,000 of appreciated stock donated to a public charity in that year. Anything above the cap carries forward for up to five additional tax years.7Office of the Law Revision Counsel. 26 U.S. Code 170 – Charitable, Etc., Contributions and Gifts
There’s an election worth knowing about. You can choose to value donated capital gain property at your cost basis instead of fair market value, which lifts the AGI cap from 30% to 50%. That trade rarely pays off for highly appreciated property, but if your appreciation is modest and you want a bigger current-year deduction, run the numbers both ways.
The five-year carryover is what makes a single large donation practical against a one-time gain. Someone selling a business can transfer a block of appreciated stock in the sale year, take the 30% deduction that year, and use the leftover deduction over the next five. The carryover doesn’t grow while it sits, so timing still matters.
Donor-Advised Funds for Bunching Into the Gain Year
A donor-advised fund acts as a charitable holding account. You contribute cash or appreciated securities to a sponsoring organization, take the full deduction in the contribution year, and recommend grants to specific charities later.8Internal Revenue Service. Publication 526, Charitable Contributions – Section: Contributions You Cannot Deduct The AGI limits are the same as any public charity: 60% for cash, 30% for appreciated property at fair market value.
The point of a DAF for capital gains planning is timing. You put the deduction in the year the gain hits, without having to decide which charities to fund on that schedule. If you’re liquidating stock or selling property, contributing appreciated shares to a DAF in the same tax year gives you the avoided-gain benefit plus the deduction, with the granting decisions pushed out.
Bunching is the related move. If you normally give $15,000 a year and your other itemized deductions barely clear the standard deduction, spreading gifts evenly wastes the tax benefit. Consolidating three years of giving into one $45,000 DAF contribution clears the standard deduction and the 0.5% floor comfortably in that year, and you take the standard deduction in the off years.
Charitable Remainder Trusts for Large or Illiquid Assets
When the appreciated asset is a business interest, a commercial property, or a concentrated stock position, a charitable remainder trust converts it into an income stream while deferring the gain. A CRT is an irrevocable trust: you transfer the asset in, the trust sells it tax-free, and the proceeds are reinvested to pay you income for a set term or for life. Whatever remains at the end goes to the charity you name.
Two structures exist. A charitable remainder annuity trust (CRAT) pays a fixed dollar amount each year, set at 5% to 50% of the initial funding value, with no further contributions permitted.9Internal Revenue Service. Charitable Remainder Trusts – Section: Types of Charitable Remainder Trusts A charitable remainder unitrust (CRUT) pays a variable amount recalculated as 5% to 50% of the trust’s value each year and accepts additional contributions.
You get a partial income tax deduction in the funding year, equal to the present value of the charity’s projected remainder interest. That value is calculated from the IRS Section 7520 rate (4.60% in early 2026), the payout rate, and the trust term or your life expectancy. Higher 7520 rates generally increase the deduction.10eCFR. 26 CFR 1.7520-3 – Limitation on the Application of Section 7520
The capital gain isn’t erased, it’s deferred and spread out. Distributions to you are taxed under a tiered system: ordinary income first, then capital gains, then tax-exempt income, then tax-free return of principal. Setup runs $5,000 to $25,000 in legal fees, so CRTs generally fit assets in the several-hundred-thousand-dollar range and up.
If You’re 70½ or Older, QCDs Reduce a Related Tax
Qualified charitable distributions don’t directly offset capital gains, but they can trim the 3.8% net investment income tax that piggybacks on those gains. A QCD is a direct transfer from your traditional IRA to a qualified charity, up to $111,000 per person in 2026, and the amount is excluded from gross income entirely rather than deducted on Schedule A.11Internal Revenue Service. IRS Notice 25-67 – 2026 Amounts Relating to Retirement Plans and IRAs12Internal Revenue Service. IRA FAQs – Distributions (Withdrawals)
Because a QCD lowers your AGI, it can reduce or eliminate NIIT exposure. The NIIT applies once modified AGI exceeds $200,000 for single filers or $250,000 for joint filers, and those thresholds aren’t indexed to inflation.13Internal Revenue Service. Net Investment Income Tax14Internal Revenue Service. Topic No. 559, Net Investment Income Tax A QCD also counts toward your annual required minimum distribution if you’re 73 or older. The transfer must go directly from the IRA custodian to the charity; if it lands in your account first, it becomes a taxable withdrawal plus a separate gift. QCDs cannot go to donor-advised funds or private foundations.
Documentation That Actually Preserves the Deduction
The IRS treats documentation failures as grounds for complete disallowance of the deduction, not a haircut. The rules scale with gift size.
For any single contribution of $250 or more, get a contemporaneous written acknowledgment from the charity stating what you gave and whether you received anything in return. Have it in hand before you file.15Internal Revenue Service. Substantiating Charitable Contributions
For non-cash contributions totaling more than $500, file Form 8283 with your return.16Internal Revenue Service. About Form 8283, Noncash Charitable Contributions For donated property valued above $5,000 (other than publicly traded securities), you need a qualified appraisal from a qualified appraiser, signed and dated no earlier than 60 days before the donation and received before your return’s due date including extensions.17Internal Revenue Service. Instructions for Form 8283 The appraiser and the charity both sign Section B of Form 8283. Missing signatures have been enough for the Tax Court to throw out entire deductions.
Once the claimed deduction for a single item or group of similar items exceeds $500,000, the full qualified appraisal must be attached to the return itself.18Internal Revenue Service. Publication 561, Determining the Value of Donated Property – Section: Deductions of More Than $500,000
Overvaluation Penalties
Inflating an appraised value carries real penalties. The IRS applies a 20% accuracy-related penalty on the resulting underpayment for a substantial valuation misstatement, generally claiming a value at 150% or more of the correct value. The penalty doubles to 40% for a gross overstatement of 200% or more.19Office of the Law Revision Counsel. 26 U.S. Code 6662 – Imposition of Accuracy-Related Penalty on Underpayments A separate provision imposes a 50% penalty on underpayments attributable to overstatements of certain qualified charitable contributions, the harshest accuracy-related penalty in the code. These sit on top of the additional tax owed, interest, and disallowance of the inflated portion. An independent, qualified appraiser is the defense.