Donate S Corp stocks to charity — how does this actually work?

Trying to figure out if I can donate s corp stocks directly to a charity this year. I own about 30% of a small S corp that's been profitable for a few years. My basis is solid — I've been tracking it on Form 7203 each year. The charity I want to give to is a 501(c)(3). I assumed I could just transfer the shares the same way you'd donate publicly traded stock, but my CPA flagged that S corps have restrictions on who can be a shareholder. Now I'm not sure if the donation is even possible, or if there's a workaround. Has anyone actually done this or seen it done on a return?

35 comments

Your CPA is right to flag this. S corps can only have eligible shareholders — individuals, certain trusts, and estates, plus 501(c)(3) organizations and qualified retirement plans. A 501(c)(3) public charity is an eligible S corp shareholder under IRC Section 1361(c)(6). If you transfer shares directly to the charity, the S election stays in place, but the charity treats its share of S corp income and any gain on the stock as unrelated business taxable income. Many charities won't accept S corp stock for that reason, so that's the real issue to check with the charity, not just you.

Isaac D.

Author

So the S election wouldn't terminate at all? The only catch is the UBTI on the charity's side?

Correct. The election doesn't terminate when a 501(c)(3) acquires the shares, because it's an eligible shareholder. The cost is on the charity's side — its share of S corp income and any gain on the stock is unrelated business taxable income, and that's not quick or cheap for them to deal with. Better to confirm the charity will accept it before you do anything.

We looked at this for a client a couple years ago. The structure that often ends up cleanest is: you sell the S corp shares, recognize the gain (or loss), and then donate the cash proceeds. You lose the benefit of donating appreciated stock, but at least it's clean. The deduction is straightforward and the charity doesn't have to deal with UBTI on S corp income.

Isaac D.

Author

Does the built-in gain calculation complicate that at all if the S corp converted from a C corp?

If there was a prior C-to-S conversion, built-in gains tax under IRC Section 1374 could apply at the corporate level on disposition of assets within the recognition period. That's a separate issue from your personal gain on selling the shares — worth having your CPA confirm the timeline.

Another option some people explore is a Qualified Subchapter S Trust (QSST) or an Electing Small Business Trust (ESBT). Note that charitable remainder trusts cannot be ESBTs and cannot hold S corp stock. But the trust has to make the ESBT election and the IRS has specific requirements. This is not a DIY move — you'd want an estate planning attorney and your CPA working together before you do anything.

Went through almost this exact analysis last year. Uploaded my S corp operating agreement and my Schedule K-1 to taxr.ai and it flagged the shareholder eligibility issue right away and listed which trust types qualify under Section 1361. Really helped me get oriented before I called my attorney. The underlying rule is that a 501(c)(3) is an eligible shareholder, so direct transfer to a public charity doesn't terminate the S election, but the charity owes UBIT on its share, so the ESBT or sell-and-donate routes are often the realistic paths.

Isaac D.

Author

Did Taxr walk you through the ESBT requirements specifically or just flag the eligibility problem?

It laid out the ESBT election requirements from the K-1 and operating agreement context — things like the trustee election timing and income distribution rules. I still had an attorney do the actual drafting, but going in prepared saved a lot of billable hours.

Worth noting: even if you get the trust structure right, the charity as ESBT beneficiary means the trust pays tax on the S corp income at the highest individual rate, not the charity's exempt rate. So the tax efficiency you'd expect from a charitable vehicle gets eroded at the trust level. The economics need to pencil out before you go down that road.

That's a really underappreciated point. So the trust pays tax on S corp pass-through income even though the ultimate beneficiary is tax-exempt?

Yes, that's correct for an ESBT. The S portion of the trust is taxed at the trust level, not passed through to the beneficiary. The charitable deduction rules are also modified for ESBTs. It's worth modeling the actual after-tax benefit versus just selling and donating cash.

Schedule K-1 basis tracking matters a lot here no matter which path you take. If you sell the shares, your gain is your amount realized minus your adjusted basis in the stock. Form 7203 is where you've been building that — Part I tracks your stock basis adjustments year by year. Make sure your 7203 is current through the most recent tax year before you do anything.

Isaac D.

Author

My 7203 is current through last year. Basis is positive, so at least I don't have that complication.

Has anyone seen a donor-advised fund used here? I know a DAF sponsor can technically hold S corp stock but many won't because of the UBIT, so could you contribute cash to a DAF after selling the shares and get the charitable deduction that way?

Yes, that works fine. Sell the shares, contribute cash or other eligible assets to the DAF, deduct the contribution in the year you fund the DAF. The DAF then grants to the 501(c)(3) on its own timeline. Standard stuff, no S corp eligibility issue at all.

The timing on the S corp return matters if you're selling shares mid-year. Form 1065 is for partnerships — you want Form 1120-S for your S corp. If a shareholder disposes of shares during the year, the S corp has to allocate income and loss between the old and new shareholder for that portion of the year. The instructions for Form 1120-S cover the per-day or closing-of-books methods.

Isaac D.

Author

Would the charity even show up on a K-1 if the transfer happens on day one, given it's an eligible shareholder?

The transfer doesn't terminate the S election, since a 501(c)(3) is an eligible shareholder, so the corporation keeps filing a full-year 1120-S and the charity gets a K-1 for its share. The charity then reports that as UBTI. It's messy for them. That's why everyone's steering you toward sell-and-donate.

Deadline note: Form 1120-S is due the 15th day of the 3rd month after the tax year ends — March 15 for a calendar-year S corp. Form 7004 gives you a 6-month extension to file, but not to pay any tax owed. If you're making moves that change the return's complexity this year, file the extension early.

State law can add another layer. Some states don't conform to federal S corp rules, and a charitable transfer that's problematic federally might have different state-level consequences. If your S corp operates in multiple states, check each one.

Isaac D.

Author

We're single-state, so that simplifies things at least.

Form 7203 came up earlier and I want to add: if you end up selling your shares as part of the sell-and-donate strategy, you'll need to file Form 7203 with your personal return for that year because a disposition of stock is one of the triggering events. I ran my own K-1 and basis schedule through Taxr before my CPA appointment and it confirmed my adjusted basis line by line before I calculated my gain — saved me from a math error I'd made in an earlier year.

What line on 7203 is the final adjusted basis you use for the gain calculation?

Part I of Form 7203 builds to your end-of-year stock basis. That ending basis carries into your gain or loss calculation on Schedule D when you report the sale. If you also have S corp debt basis, that's tracked in Part II.

If you're serious about the ESBT route, the trust has to make its election within the time the S corp rules require. The election is made by the trustee and is filed with the IRS service center where the S corp files. Miss the window and the trust is not an eligible shareholder. An estate planning attorney is not optional here.

Reasonable compensation is a separate issue but worth mentioning if you're an employee-shareholder of the S corp: whatever you decide to do with the shares, your W-2 from the S corp isn't affected by the charitable transfer plan. Just don't let the transaction planning distract from making sure your compensation is documented as reasonable for the year.

Isaac D.

Author

Good reminder. I do take a salary and we've documented it. That part is fine.

Pulled my S corp stock records and K-1 history into Taxr when I was considering something similar — it walked through each year's basis adjustments from my 7203 inputs and flagged a year where I had underreported my loss limitation because my basis was lower than I realized. That's the kind of thing that matters a lot when you're calculating gain on a sale. The sell-and-donate path is cleaner than it sounds once your basis is confirmed.

Isaac D.

Author

How far back did it go on the basis history?

As far back as I gave it documents. I uploaded K-1s going back several years and it traced the adjustments in order. The key inputs are your initial investment, annual income and loss allocations from box 1 and 2 of the K-1, distributions from box 16, and any additional contributions.

To pull everything together: direct transfer of S corp shares to a 501(c)(3) doesn't terminate the S election, but the charity owes UBIT on its share and many won't accept it. The practical options are sell the shares and donate cash or fund a DAF, or use an ESBT structure with legal help. The ESBT has tax costs at the trust level that reduce its appeal. Most people in this situation end up selling and donating proceeds.

Isaac D.

Author

This is exactly where I'm landing. Going to confirm the basis on Form 7203, talk to my CPA about the sale, and then donate the net proceeds to the DAF. Thanks everyone.

Form 1040 Schedule A is where the charitable contribution deduction lands for cash donations (assuming you itemize). The deduction for cash contributions to a public charity is subject to an AGI limitation — check the Schedule A instructions for the applicable percentage limit and any carryforward rules if the donation is large relative to your income.