Tax Treatment of Selling a Sub Chapter S Corporation

If you own an S corporation and decide to sell it, the taxes on the sale of the business the S corp represents depends on how the sale is structured. "Selling a business" can mean selling all the assets of the business to another company so that nothing is left of the business but the name; or, it can mean selling all the shares of stock in the business, so that you no longer have any ownership interest in the business itself.


  • Generally, selling S corp shares or selling the assets of a business will generate a capital gain or loss. This will be carried through to the tax returns of the corporation's shareholders.

Sale of S Corporation Stock 

An S corporation is a small business that files Internal Revenue Service Form 2553 to elect sub chapter S status. This means that the income of the corporation, as well as the losses, deductions and credits, pass through the corporation to the shareholders. The shareholders report the income and losses on their personal tax returns rather than on the corporate tax return, avoiding double taxation.

A company can only file as an S corporation if there are 100 shareholders or fewer with only one class of stock. Further, none of the shareholders of an S corporation can be partnerships, corporations or non-resident aliens. If the shareholders want to sell the S corporation, they can choose to either sell the assets of the business or sell their stock in the business.

Understanding Capital Gains

If an S corporation's shareholders sell all their stock, the income is taxed as a capital gain. Your capital gain is the amount you made on the sale minus any amounts you contributed to the capital asset (the cost basis). If you're a shareholder of an S corporation, the stock basis must be reduced by the amount of any distributions you've received that were not included in your personal income, because your distributions are considered return of the capital you invested.

For example, if you contributed $10,000 to your S corp in 2019 but received $8,000 in distributions, your cost basis is only $2,000, and if you sell your stock, the proceeds in excess of $2,000 are taxed as gains. You must also decrease your basis by certain types of the S corporation's losses, certain nondeductible expenses, and certain deductions for depleting oil and gas wells. Your basis in the stock cannot be reduced below zero.

If you've owned your stock for more than one year, any gain on the sale is considered a long-term gain. If you've owned your stock for less than one year, the gain is a short-term gain. Each of these gains is taxed using different formulas and brackets. As a general rule, short-term gains are taxed at a significantly higher rate than long-term holdings.

Deploying Capital Losses

Capital gains can be reduced by capital losses. Capital losses occur when you dispose of assets for less than the price you paid for them. For example, if you buy stock for $100 and sell it for $150, your capital gain is $50; but if you sell different stock that same year, and the basis for that stock was $100 but you sold it for $75, you had a $25 capital loss, which reduces your total capital gain for the year to $25 (the $50 gain on the one stock, minus the $25 loss on the second stock).

Long term capital gains tax has the benefit of typically being much lower than income tax assessed against wages. As of the 2020 tax year, capital gains are taxed at no more than ​20 percent​, depending upon your tax bracket. Individuals in the lowest two tax brackets do not pay capital gains tax, and in the middle brackets, the tax is ​15 percent​. Therefore, if you are the sole shareholder of an S corporation and you sell all your stock, you will be taxed on the proceeds as capital gains to the extent that it exceeds any capital losses.

Sale of Corporate Assets

If the sale of the S corporation is an asset sale, the taxes must be calculated individually for each asset. You must then figure out the cost basis for each asset sold and calculate the actual gains on each asset to determine the taxable amount. Generally, the profit is taxed as capital gains. Certain assets, like accounts receivable, do not have a tax basis, as nothing was contributed to obtain them, and the sale of these assets is taxed as ordinary income and not as capital gains.

Some profits from certain tangible assets subject to depreciation, such as equipment and real estate, may be taxed as ordinary income to recapture depreciation. Your depreciation deductions reduce your taxable income, so when the asset is sold at a profit, that depreciation must be recaptured. To recapture depreciation, the portion of the profits that were claimed as depreciated in prior years is taxed as ordinary income, and the rest as capital gains.

For example, if you purchased a building for $100,000 in 2017 and claimed a depreciation deduction of $10,000 in 2018 and $15,000 in 2019, your total depreciation deduction is $25,000 when you sell the asset in 2020. If you sell the asset in 2020 for $175,000, your total gain is $75,000, of which $25,000 will be taxed as ordinary income (the depreciation recapture) and $50,000 will be taxed as a long-term capital gain.