Many business owners set up their businesses using corporations that can qualify for an election under Subchapter S of the Internal Revenue Code. By doing so, entrepreneurs can get the asset protection of corporate status while also enjoying the tax benefits of a pass-through entity. Yet when it comes time to sell an S corporation, there are some tax considerations you need to keep in mind.

Selling stock vs. selling assets
The most important consideration in determining the tax treatment of an S corporation sale is how the transaction is structured. Business owners have two choices: they can either sell the stock the S corporation, or they can sell the assets of the corporation, keeping the existing corporate structure intact.

For the S corporation owner, the simplest way to structure a transaction is through a stock sale. In that case, you take the amount of cash the business owner receives for the stock and then subtract the business owner's tax basis in the S corporation shares. Although S corporation tax basis calculations can be complicated, the owner's basis will generally be equal to the owner's capital investment in the business, adjusted for any difference between the amount of taxable income the S corporation has generated during its tenure and the amount of money the owner has withdrawn from the S corporation in distributed profits. If the sale proceeds are higher than the tax basis, then the S corporation owner will recognize capital gains on the sale.

By contrast, an asset sale involves some extra steps. The business owner has to assign individual tax basis amounts to each asset sold, and then the purchase price must be allocated to each asset. On some assets, any resulting gain won't qualify for favorable capital gains treatment. For instance, for assets with no tax basis such as accounts receivable, the sale results in income taxed at ordinary income tax rates. Similarly, some gain on sales of depreciated equipment will be subject to higher depreciation-recapture rates. The net impact is higher taxes for the business owner in most instances.

Given this, selling business owners will typically prefer stock sales. But the buyer will prefer asset sales, because they will allow the buyer to reset the basis of depreciable assets and get larger depreciation deductions going forward. Some complex tax provisions sometimes allow the parties to make an election to have a stock sale treated in a similar way to an asset sale in certain situations, but they typically require specialized advice from experts to use them to best advantage.

Selling an S corporation can be the culmination of an entrepreneur's successful development of a business. But handling the tax aspects is critical to make sure you squeeze as much after-tax profit from the sale as possible.

The $15,978 Social Security bonus most retirees completely overlook
If you're like most Americans, you're a few years (or more) behind on your retirement savings. But a handful of little-known “Social Security secrets” could help ensure a boost in your retirement income. In fact, one MarketWatch reporter argues that if more Americans knew about this, the government would have to shell out an extra $10 billion annually. For example: one easy, 17-minute trick could pay you as much as $15,978 more... each year! Once you learn how to take advantage of all these loopholes, we think you could retire confidently with the peace of mind we're all after. Simply click here to discover how you can take advantage of these strategies.

This article is part of The Motley Fool's Knowledge Center, which was created based on the collected wisdom of a fantastic community of investors based in the Foolsaurus. Pop on over there to learn more about our Wiki and how you can be involved in helping the world invest, better! If you see any issues with this page, please email us at Thanks -- and Fool on!

Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.