How to Offset Capital Gains With Charitable Contributions

The cleanest way to offset capital gains with charitable contributions is to donate the appreciated asset itself to a qualified public charity before you sell it. The charity, being tax-exempt, sells without owing tax on the gain, and you claim an itemized deduction for the property’s full fair market value. For a donor in the top bracket, that single move 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) and generate a dollar-for-dollar deduction against other income.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

The strategy only pays off if you plan the timing, pick the right vehicle, and follow the IRS documentation rules exactly.

You Have to Itemize, and Clear a New AGI Floor

A charitable deduction does nothing for your tax bill unless you itemize on Schedule A.2Internal Revenue Service. Deducting Charitable Contributions at a Glance For 2026, the standard deduction is $16,100 for single filers and $32,200 for joint filers.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 If your itemized deductions don’t clear that number, the charitable gift produces no federal tax benefit.

Starting in 2026, itemizers face a second hurdle: a new floor equal to 0.5% of adjusted gross income. Only charitable contributions above that floor are deductible. On $500,000 of AGI, the first $2,500 of giving produces nothing. This penalizes small, steady contributions and rewards concentrating gifts into the year you have a gain to offset.

Non-itemizers can claim a small above-the-line deduction for cash gifts (up to $1,000 single, $2,000 joint), but that will not meaningfully offset a real capital gain.

Give the Asset, Not the Cash

The core move is donating long-term appreciated property, meaning assets you have held more than one year, directly to a public charity. Two tax benefits come out of one transaction.

You avoid recognizing the built-in gain. And you deduct the property’s current fair market value, not what you paid.4Internal Revenue Service. Publication 526, Charitable Contributions – Section: Giving Property That Has Increased in Value Stock you bought for $10,000 that is now worth $100,000 produces a $100,000 deduction and erases $90,000 of unrealized gain that would have been taxed on sale.

Publicly traded securities are the easiest version of this. Any brokerage can transfer shares in-kind to a charity’s account, and the fair market value is the trading price on the gift date. Real estate works too, but you will need a qualified appraisal, deed transfer costs, and a charity willing to take it. Investment property with depreciation recapture adds further complication.

What Not to Donate

Short-term property, held one year or less, is treated worse: your deduction is capped at cost basis, so the appreciation is not deductible.5Internal Revenue Service. Publication 526, Charitable Contributions – Section: Ordinary Income Property Five-month-old stock you paid $800 for and now worth $1,000 generates an $800 deduction.

Depreciated assets should never be donated. Sell them, book the capital loss, and donate the cash. You get the loss and the charitable deduction.

Tangible personal property has its own trap. Art, collectibles, and similar items keep the full fair market value deduction only if the charity uses them in a way related to its exempt purpose. Give a painting to a museum that hangs it, and you deduct fair market value. Give the same painting to a charity that sells it, and the deduction drops to basis.6Internal Revenue Service. Publication 526, Charitable Contributions – Section: Tangible Personal Property Put to Unrelated Use

How Much You Can Actually Deduct in One Year

The IRS caps charitable deductions as a percentage of AGI, with the cap depending on what you gave and who received it:

The 30% limit is the one most people trip on when trying to offset a large gain. With $400,000 of AGI, the maximum appreciated-stock deduction to a public charity is $120,000 that year. Anything above the cap is not lost; it carries forward for up to five more tax years.8Office of the Law Revision Counsel. 26 U.S. Code 170 – Charitable, Etc., Contributions and Gifts

That carryover is what lets a one-time donation absorb a one-time gain. Someone selling a business can donate a substantial block of appreciated stock, take the 30% deduction in the sale year, and use the balance against income over the next five years. The unused amount does not grow while it waits, so sooner is better.

Donor-Advised Funds for Timing

A donor-advised fund is a charitable holding account. You contribute cash or appreciated securities to a sponsoring organization, deduct the full value in the year of the contribution, and then recommend grants to specific charities later, on your own schedule.9Internal 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 useful feature is that it separates the deduction year from the giving year. In a year when you have a large capital gain, you can transfer appreciated shares into a DAF, take the deduction immediately, and distribute the money to operating charities over however many years you want.

DAFs also enable “bunching.” If you normally give $15,000 a year and your other itemized deductions barely clear the standard deduction, you may be effectively wasting most of your charitable giving. Pushing three years of gifts (say, $45,000) into one contribution to a DAF clears the standard deduction and the new 0.5% AGI 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, commercial real estate, or a concentrated stock position too large to hand to a charity outright, a charitable remainder trust can convert it into an income stream while deferring the capital gains tax.

A CRT is irrevocable. You transfer the asset to the trust; the trust, being tax-exempt, sells it without immediate capital gains tax; the proceeds are reinvested; and the trust pays you income for a term of years or for life. Whatever remains at the end goes to the charity you named.

Two forms exist. A charitable remainder annuity trust pays a fixed dollar amount set as a percentage of the initial funding value, between 5% and 50%; no new contributions after setup. A charitable remainder unitrust pays a variable amount set as a percentage of the trust’s value, revalued annually, also between 5% and 50%; additional contributions are allowed.10Internal Revenue Service. Charitable Remainder Trusts – Section: Types of Charitable Remainder Trusts

You get a partial income tax deduction when you fund the trust, equal to the present value of the charity’s projected remainder interest. That calculation uses the IRS Section 7520 rate (4.60% as of early 2026), the payout rate, and the trust term or your life expectancy.11eCFR. 26 CFR 1.7520-3 – Limitation on the Application of Section 7520

The capital gains tax is deferred and spread, not eliminated. Distributions to you are taxed under a tiered order: ordinary income first, then capital gains, then tax-exempt income, then tax-free principal. The gain avoided on the initial sale comes back as capital gains inside your distributions over the trust’s life. Legal setup typically runs $5,000 to $25,000, which generally confines CRTs to assets worth several hundred thousand dollars or more.

QCDs: An Indirect Offset for IRA Owners 70½ and Up

Qualified charitable distributions do not directly cancel a capital gain, but they can reduce the tax surrounding one. If you are 70½ or older, you can transfer up to $111,000 per person in 2026 directly from a traditional IRA to a qualified charity.12Internal Revenue Service. IRS Notice 25-67 – 2026 Amounts Relating to Retirement Plans and IRAs The amount is excluded from gross income entirely rather than showing up as a Schedule A deduction.13Internal Revenue Service. IRA FAQs – Distributions (Withdrawals)

Lowering AGI matters for the 3.8% net investment income tax on your capital gains.14Internal Revenue Service. Net Investment Income Tax NIIT applies when modified AGI exceeds $200,000 (single) or $250,000 (joint), thresholds that are not indexed for inflation.15Internal Revenue Service. Topic No. 559, Net Investment Income Tax A QCD that keeps your income under the threshold can shave 3.8% off the tax on your gain.

If you are 73 or older, a QCD also counts toward your required minimum distribution. The transfer must go directly from the IRA custodian to the charity; if the check touches your account, it becomes a taxable withdrawal plus a separate gift. QCDs cannot be directed to a donor-advised fund or a private foundation.

Documentation and Appraisals Are Where Deductions Die

The IRS treats paperwork failures as grounds for full disallowance, not a reduced deduction. The rules escalate with gift size.

For any single contribution of $250 or more, you need a contemporaneous written acknowledgment from the charity describing the gift and stating whether you received anything in return. Get it before you file the return for that year.16Internal Revenue Service. Substantiating Charitable Contributions

For non-cash contributions totaling more than $500, file Form 8283 with your return.17Internal Revenue Service. About Form 8283, Noncash Charitable Contributions

For donated property worth more than $5,000 (other than publicly traded securities), you need a qualified appraisal from a qualified appraiser. The appraisal must be signed no earlier than 60 days before the gift and received before the return’s due date, including extensions. Both the appraiser and the receiving charity must sign Section B of Form 8283.18Internal Revenue Service. Instructions for Form 8283 The Tax Court has thrown out full deductions over missing signatures.

If the claimed deduction for one item or a group of similar items exceeds $500,000, the complete qualified appraisal must be attached to the return itself, not just kept in your files.19Internal Revenue Service. Publication 561, Determining the Value of Donated Property – Section: Deductions of More Than $500,000

Penalties for Inflating the Appraisal

Overstating the value of donated property to claim a bigger deduction triggers accuracy-related penalties. A substantial valuation misstatement (claimed value 150% or more of the correct value) carries a 20% penalty on the resulting tax underpayment. A gross misstatement (200% or more) doubles it to 40%.20Office 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.20Office of the Law Revision Counsel. 26 U.S. Code 6662 – Imposition of Accuracy-Related Penalty on Underpayments These sit on top of the additional tax, interest, and loss of the inflated portion of the deduction. A qualified independent appraiser and clean records are the main defense when valuation gets challenged.