Yes, a 501(c)(3) charity can legally be a shareholder in an S corporation. However, this simple “yes” hides a major financial trap for the charity. The core problem is created by a specific federal law, Internal Revenue Code (IRC) §512(e). This rule automatically treats all income the charity receives from the S corp—and even the profit from selling the stock—as taxable income, wiping out a significant portion of the gift’s value.
This tax trap is not a small issue; S corporations represent a huge part of the U.S. economy, with over 5 million of them in operation. When their generous owners look to give back, this tax rule creates a direct conflict between the donor’s goal of making a big impact and the charity’s reality of receiving a gift that comes with a hefty tax bill. Understanding this conflict is the key to making a smarter, more effective donation.
Here is what you will learn by reading this article:
- ❓ The “Why” Behind the Problem: Discover the specific tax rule that turns a generous gift into a tax liability for a charity and why this rule exists in the first place.
- 💰 How to Maximize Your Gift: Learn the three most common ways to structure a donation involving an S corp and see a side-by-side comparison that reveals which method delivers the most money to the charity.
- ⚖️ Your Rights and Responsibilities: Understand the legal duties S corp owners have to a charity shareholder and the rights a charity has to protect itself from being treated unfairly.
- 📝 A Step-by-Step Guide to the Paperwork: Get a simple, line-by-line walkthrough of the critical IRS forms, including how a charity calculates and reports the tax it owes on Form 990-T.
- 💡 Smarter Giving Strategies: Explore powerful and tax-efficient alternatives that achieve a true win-win, providing a big tax break for the donor and a larger, tax-free gift for the charity.
The Basic Players: What Are S Corps and 501(c)(3)s?
To understand the problem, you first need to know the two main players: the S corporation and the 501(c)(3) charity. They are structured for completely different purposes, and their collision is what creates the central issue.
An S corporation is a special type of for-profit business. Its main superpower is avoiding “double taxation.” In a regular C corporation, the company pays corporate income tax on its profits, and then the owners pay personal income tax again when those profits are paid out to them. An S corp avoids this by passing its profits and losses directly to the owners’ personal tax returns, meaning the income is only taxed once .
To get this special tax status, a business must follow strict rules set by the IRS . One of the most important rules is about who can be an owner, or “shareholder.” For a long time, the list was very short, mostly just U.S. citizens and certain simple trusts . This was to keep the tax structure simple.
A 501(c)(3) organization is what most of us think of as a charity. This includes everything from universities and hospitals to local food banks and animal shelters . The IRS grants them tax-exempt status, meaning they generally do not pay income tax on the money they receive to fund their mission. This tax-free status is the entire foundation of their financial model.
The Law That Says “Yes”: How a Charity Can Own S Corp Stock
For decades, the strict S corp shareholder rules meant a charity could not own its stock. But that changed. Congress eventually updated the law to make it easier for S corp owners to make charitable gifts.
The specific law is Internal Revenue Code §1361(c)(6) . This rule explicitly states that an organization “described in section 501(c)(3)” is a permitted shareholder of an S corporation. This single line in the massive U.S. tax code definitively answers the legal question.
This means a public charity, a private foundation, or even a donor-advised fund (which is sponsored by a public charity) can legally own S corp stock. The company’s S corp status will not be threatened just because a charity is on the ownership list. But just because something is legal does not mean it is a good idea.
The Hidden Trap: A Special Tax Called UBIT
The biggest problem with a charity owning S corp stock is a tax called the Unrelated Business Income Tax, or UBIT . UBIT was created in 1950 to create a level playing field. Congress didn’t want nonprofits to use their tax-exempt status to unfairly compete with for-profit businesses.
Normally, UBIT only applies if a charity earns income from an activity that meets a three-part test: it is (1) a trade or business, (2) that is regularly carried on, and (3) is not substantially related to the charity’s mission. Importantly, most types of passive investment income—like dividends from a regular C corp, interest, and profits from selling stocks—are specifically exempt from UBIT . This is why a charity can own a massive portfolio of Apple or Microsoft stock and not pay a dime of tax on the dividends or gains.
The Game-Changing Exception: IRC §512(e)
This is where the trap springs. The normal, friendly rules for passive income do not apply to S corporations. A special, overriding rule found in IRC §512(e) changes everything.
This law states that all income a charity receives from an S corporation is automatically treated as unrelated business income . It doesn’t matter if the S corp’s income came from activities that would normally be tax-free passive income for the charity, like rent or interest. The moment it passes through an S corp structure, it is re-labeled as taxable UBTI.
Even worse, IRC §512(e) also applies to the profit from selling the stock itself. If a donor gives a charity $1 million worth of C corp stock, the charity can sell it and keep the full $1 million, tax-free. If a donor gives that same charity $1 million worth of S corp stock, the charity must pay UBIT on its profit from the sale, immediately losing a large chunk of the donation’s value to the IRS.
How the UBIT Calculation Works: A Painful Reality for Charities
Calculating the tax a charity owes is a two-part process involving both the company’s annual income and the final sale of the stock. The tax is reported on IRS Form 990-T, Exempt Organization Business Income Tax Return .
First, the charity owes tax on its share of the S corp’s yearly profits. The S corp gives the charity a Schedule K-1, which is like a W-2 for business owners, showing the charity’s portion of the income. This income is taxed whether the charity receives any actual cash or not—a dangerous situation known as “phantom income”.
Second, the charity owes tax on the gain when it sells the stock. The taxable gain is the sale price minus the charity’s “tax basis.” When stock is donated, the charity gets a “carryover basis,” meaning it inherits the donor’s original basis. For a business founder, this basis might be close to zero.
Let’s look at an example:
| Transaction Step | Description |
| The Gift | A founder donates S corp stock to a university. The founder’s original basis was $10,000. The stock is now worth $1,000,000. |
| The Sale | The university immediately finds a buyer and sells the stock for its fair market value of $1,000,000. |
| The Gain Calculation | The university’s taxable gain is the sale price ($1,000,000) minus its carryover basis ($10,000), which equals $990,000. |
| The Tax Bill | The university must pay UBIT on that $990,000 gain. At the 21% corporate tax rate, the tax is $207,900. |
| The Net Result | The university’s $1,000,000 gift is instantly reduced to $792,100 after paying the IRS. |
Export to Sheets
This tax is paid at the flat federal corporate rate of 21% for most charities. If the charity is organized as a trust, it could pay at even higher trust tax rates, which can reach 37% very quickly. On top of federal tax, the charity may also owe UBIT in every single state where the S corp does business, creating a massive administrative nightmare.
The Donor’s Goal: The “Double Tax Benefit”
With such a bad outcome for the charity, why would any donor consider this? The motivation is powerful: a “double tax benefit” that saves the donor a tremendous amount of money.
First, by donating the appreciated stock directly, the donor completely avoids paying capital gains tax on the growth in the stock’s value. For a long-held, successful business, this could mean avoiding a federal tax of up to 23.8% (20% capital gains rate + 3.8% net investment income tax), plus state taxes.
Second, the donor generally gets to claim a charitable income tax deduction for the full fair market value of the stock at the time of the gift. This combination allows a donor to make a much larger gift at a lower after-tax cost compared to selling the stock first and donating the cash.
The Donor’s Paperwork: Appraisals and Form 8283
The IRS has strict rules for proving the value of a non-cash gift like private company stock. You can’t just guess what it’s worth.
For any gift of non-publicly traded stock valued over $10,000, the donor must get a “qualified appraisal” from a “qualified appraiser”. This is a formal, detailed report that determines the stock’s fair market value. The appraiser will likely apply discounts for “lack of marketability” and “minority interest,” which can lower the final value and the donor’s deduction.
The donor then reports this information on IRS Form 8283, Noncash Charitable Contributions, which gets filed with their tax return. For a gift of this size, the charity must also sign Section B of the form to acknowledge they received the stock. This form is the official proof the IRS requires to allow the deduction.
The Donor’s Biggest Mistake: Bad Timing and the “Anticipatory Assignment of Income”
The single biggest mistake a donor can make is waiting too long to give the gift. If a donor contributes stock after a sale of the company is already a done deal, the IRS can use a powerful legal weapon called the “anticipatory assignment of income” doctrine.
This rule says that if the sale was a virtual certainty when the gift was made, the donor had already effectively earned the income and simply “assigned” it to the charity to avoid the tax. In this situation, the IRS will force the donor to pay the capital gains tax, even though the charity got the money. The gift must be made while the sale is still under negotiation and there is a real risk, however small, that the deal could fall through.
| Donor’s Action | The Consequence |
| Good Timing: Donates stock while multiple buyers are negotiating and no binding contract is signed. | Donor successfully avoids capital gains tax and gets a full charitable deduction. |
| Bad Timing: Donates stock after signing a legally binding purchase agreement to sell the company. | The IRS applies the “anticipatory assignment of income” doctrine. The donor is forced to pay capital gains tax on the stock they gave away. |
Export to Sheets
The Charity’s Dilemma: A Fiduciary’s Duty of Care
A charity’s board of directors has a legal responsibility known as the fiduciary duty of care. This means they must act prudently and in the best interest of the organization when managing its assets. Accepting a gift of S corp stock is a major financial decision that requires serious investigation, not just a thank-you note.
The first line of defense is a strong Gift Acceptance Policy. This is an official document that outlines what types of gifts the charity will and will not accept. Many sophisticated charities have policies that either flat-out refuse S corp stock or require a rigorous review process by a special committee.
If a charity considers the gift, its due diligence must include a deep dive into the S corporation’s health and governing documents. This means reviewing financial statements, tax returns, and, most importantly, the shareholder agreement. The charity must have a clear exit strategy to sell the stock quickly, because an illiquid asset that generates a tax bill is a liability, not a gift.
Life as a Minority Shareholder: An Awkward Position
When a charity accepts the stock, it becomes a minority owner in a private business. This can be an uncomfortable position. The charity is often seen as an “outsider” by the other owners, who are used to running their company without outside interference.
Despite being a minority owner, the charity has legal rights. These include the right to inspect the company’s financial books and records and the right to be treated fairly by the majority owners, who have a fiduciary duty to all shareholders. The most critical document governing this relationship is the shareholder agreement.
Two key clauses a charity must look for are:
- Tag-Along Rights: This protects the charity. It gives the charity the right to “tag along” and sell its shares for the same price and on the same terms if the majority owners decide to sell their stake.
- Drag-Along Rights: This protects the majority owners. It gives them the right to “drag” the charity along and force it to sell its shares as part of a 100% sale of the company to a third party.
Most importantly, the charity faces a serious cash flow risk. It owes UBIT on its share of the S corp’s income even if no cash is paid out. The charity becomes completely dependent on the S corp’s management to make cash distributions to cover the tax bill. If they don’t, the charity has to use its own program money to pay taxes on income it never received, which is a fiduciary nightmare.
Comparing the Three Main Scenarios: Which Path Is Best?
Let’s put it all together and compare the three most common ways a generous S corp owner might try to make a $2 million gift. We’ll assume the owner’s basis in the stock is $0 and they are in a high tax bracket.
| Financial Metric | Scenario 1: Donor Sells Stock, Donates Cash | Scenario 2: Donor Donates S Corp Stock Directly | Scenario 3: S Corp Donates Its Own Asset |
| Donor’s Capital Gains Tax | ($476,000) | $0 | $0 |
| Donor’s Charitable Deduction | $1,524,000 | $2,000,000 | $2,000,000 |
| Charity’s UBIT Paid | $0 | ($420,000) | $0 |
| Net Amount for Charity’s Mission | $1,524,000 | $1,580,000 | $2,000,000 |
Export to Sheets
This comparison tells a powerful story. Scenario 2 (gifting the stock) is better for the donor than Scenario 1, but it’s terrible for the charity, which loses $420,000 of the gift’s value to UBIT. Scenario 3 is the clear winner for everyone. The donor gets the same great tax deduction as in Scenario 2, but the charity receives the full $2 million, completely tax-free.
A Closer Look at the Best Alternative: The S Corp Donates Assets
The most tax-efficient strategy in most cases is for the S corporation to donate one of its own assets directly to the charity. This could be cash, but it could also be an appreciated asset like real estate or publicly traded stock that the company owns.
This approach is superior for two key reasons:
- The Charity Avoids UBIT Entirely. Because the charity receives the asset directly, not through an S corp share, the special rule of IRC §512(e) does not apply. The charity can sell the donated asset and keep 100% of the proceeds, tax-free.
- The Donor Still Gets a Full Deduction. The charitable deduction from the company’s gift “flows through” to the shareholders on their K-1s. A special tax rule also ensures the shareholder’s stock basis is only reduced by their share of the asset’s basis, not its full market value, preserving value for a future sale of the company.
This strategy creates a true win-win, which is why it is often called the “ideal scenario” by tax experts.
The Paper Trail: A Guide to IRS Form 990-T
When a charity does receive S corp stock and sells it, it must navigate Form 990-T. This form can be complex, but the process for reporting the gain from a stock sale follows a logical path . The holding of the S corp stock is treated as a single “unrelated trade or business”.
Let’s walk through our earlier example of the university selling $1,000,000 of stock with a $10,000 basis.
- Calculate the Gain on a Supporting Form. Because the charity is organized as a corporation, it first calculates the capital gain on Schedule D (Form 1120). It would report the sale price ($1,000,000) and the cost basis ($10,000) to arrive at a net gain of $990,000.
- Transfer the Gain to Schedule A. The $990,000 gain is then entered on Schedule A (Form 990-T). This schedule is used to detail the income and deductions for each specific unrelated business activity. The gain would be reported in Part I as income.
- Calculate Taxable Income on Schedule A. In Part II of Schedule A, the charity would subtract any directly connected deductions. Since this is a passive investment, there are likely none. The result is the “Unrelated business taxable income” for this activity.
- Transfer to the Main Form 990-T. The total taxable income from all Schedule A’s is transferred to Part I of the main Form 990-T. Here, the charity can take a $1,000 specific deduction. In our example, the taxable income becomes $989,000 ($990,000 – $1,000).
- Calculate the Final Tax. In Part II of Form 990-T, the tax is calculated. For a corporation, this is a flat 21% of the taxable income. The final tax bill would be $207,690 ($989,000 x 0.21). The charity must pay this tax, often through quarterly estimated payments.
Different Types of Charities, Different Rules
The rules can change depending on the specific type of 501(c)(3) organization.
| Type of Charity | Key Rules and Considerations |
| Public Charity | This is the standard scenario. The main issues are UBIT, illiquidity, and governance. The donor gets a full fair market value deduction. |
| Private Foundation | This is almost always a bad idea. The foundation is subject to the “excess business holdings” rule (IRC §4943), which heavily penalizes it for owning a significant stake in a business. The donor’s deduction is also limited to their cost basis, not the fair market value. |
| Donor-Advised Fund (DAF) | A DAF is legally a component of a large public charity (the “sponsoring organization”). The sponsor handles the due diligence and UBIT payment. The net proceeds after tax are credited to the donor’s DAF account for future grantmaking. |
Do’s and Don’ts for All Parties
Navigating this complex topic requires careful planning from everyone involved.
| Party | Do’s | Don’ts |
| The Donor | ✅ Do start the conversation with your advisors and the charity early, long before a sale is imminent. | ❌ Don’t wait until a sale agreement is signed to make the gift. |
| ✅ Do get a qualified appraisal to substantiate your deduction. | ❌ Don’t assume the charity will automatically accept the stock. | |
| ✅ Do explore the more tax-efficient alternative of having your S corp donate assets directly. | ❌ Don’t donate S corp stock to a private foundation. | |
| The S Corp | ✅ Do have a clear shareholder agreement that addresses what happens with a new charity owner. | ❌ Don’t ignore the charity’s need for cash distributions to pay its UBIT. |
| ✅ Do consider adding a “tax distribution” clause to your shareholder agreement. | ❌ Don’t view the charity as a passive owner; they have legal rights. | |
| The Charity | ✅ Do have a formal Gift Acceptance Policy that specifically addresses S corp stock. | ❌ Don’t accept the gift without conducting thorough due diligence on the company. |
| ✅ Do have your legal counsel review the shareholder agreement before accepting. | ❌ Don’t underestimate the administrative burden of filing Form 990-T and paying state taxes. |
Export to Sheets
Pros and Cons of Gifting S Corp Stock Directly
Even with all the drawbacks, it’s important to see the full picture.
| Pros | Cons |
| ✅ For the Donor: Completely avoids capital gains tax on the donated shares, a massive tax savings. | ❌ For the Charity: The gift is immediately eroded by UBIT on the gain from the sale, reducing its value by 21% or more. |
| ✅ For the Donor: Allows for a charitable deduction at the stock’s full fair market value (subject to appraisal). | ❌ For the Charity: The charity inherits the donor’s low basis, maximizing the taxable gain. |
| ✅ For the Donor: Can be simpler than restructuring the company to donate assets directly. | ❌ For the Charity: Faces a cash flow crisis if the S corp doesn’t distribute cash to pay UBIT on annual income. |
| ✅ For Both: Can be a viable option if a sale is imminent and other alternatives are not practical. | ❌ For Both: Creates potential conflicts of interest and governance challenges between the mission-driven charity and the for-profit business. |
Export to Sheets
Frequently Asked Questions (FAQs)
- Can my S corp have a charity as a shareholder? Yes. Federal law specifically allows 501(c)(3) organizations to be S corporation shareholders. This will not, by itself, cause your company to lose its S corp status.
- Will the charity have to pay tax on my gift of stock? Yes. The charity must pay Unrelated Business Income Tax (UBIT) on its share of the S corp’s annual income and on the profit it makes when it sells the stock.
- What is the biggest risk for me as the donor? The biggest risk is bad timing. If you donate the stock after a sale is already finalized, the IRS can force you to pay the capital gains tax anyway.
- Is it better for my S corp to donate assets instead of me donating stock? Yes. In most cases, it is far more tax-efficient for everyone. The charity avoids UBIT entirely, and you still receive a valuable flow-through charitable deduction on your personal tax return.
- As a charity, are we required to accept a gift of S corp stock? No. Your board has a legal duty to protect the organization. You can and should decline any gift that poses an unreasonable financial risk or administrative burden.
- What happens if the S corp doesn’t give us cash to pay the tax? Your charity would be forced to use its own funds—money intended for your mission—to pay the IRS. This is the primary financial risk you must evaluate before accepting the gift.
- Can I donate S corp stock to my family’s private foundation? No, this is not recommended. Your deduction would be limited to your cost basis, and the foundation would likely violate the “excess business holdings” rules, triggering large penalty taxes.