Yes, corporations pay capital gains tax, but the rules depend entirely on the type of corporation. A C-corporation pays the flat 21% federal corporate income tax on capital gains, the same rate that applies to its ordinary business income, with no preferential treatment for long-held assets.1Office of the Law Revision Counsel. 26 US Code 11 – Tax Imposed An S-corporation generally pays no entity-level tax on its gains; instead, the gains pass through to shareholders, who report them on their personal returns and may qualify for the lower individual capital gains rates of 0%, 15%, or 20%.2Office of the Law Revision Counsel. 26 USC 1366 – Pass-Thru of Items to Shareholders
How C-Corporations Are Taxed on Capital Gains
The federal corporate rate is a flat 21%, and capital gains are simply folded into taxable income at that same rate.1Office of the Law Revision Counsel. 26 US Code 11 – Tax Imposed A gain on stock held for ten years is taxed identically to revenue from selling products last month. There is no long-term rate for corporations.
To arrive at the number, the corporation nets short-term gains against short-term losses, then does the same for long-term gains and losses, and combines the two results into a single net capital gain or loss for the year.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses The figures are reported on Schedule D of Form 1120, and any net gain flows onto the main return as additional taxable income.4Internal Revenue Service. Instructions for Schedule D (Form 1120)
An example makes the math concrete. A C-corporation with $500,000 in operating income and a $100,000 net capital gain has $600,000 of taxable income. The whole amount is taxed at 21%, for a $126,000 federal bill. The gain portion gets no discount. The flat structure keeps the math simple, but it also removes any tax incentive to hold assets longer than a year.
One boundary is worth naming, because it trips people up: depreciable business equipment and business-use real estate are not capital assets. They fall under Section 1231, and sales of that property follow a separate set of rules involving depreciation recapture. If your question is about selling machinery, a building, or a vehicle the business used, the capital gains rules above are not the ones that govern the answer.
How S-Corporations and Their Shareholders Are Taxed
S-corporations generally don’t pay a corporate-level tax on capital gains. Each shareholder’s pro rata share of the gains and losses passes through to their individual return, and the character of the income is preserved.2Office of the Law Revision Counsel. 26 USC 1366 – Pass-Thru of Items to Shareholders A long-term gain at the entity level stays a long-term gain in the shareholder’s hands, taxable at the preferential individual rates of 0%, 15%, or 20% depending on income.5Congressional Budget Office. Raise the Tax Rates on Long-Term Capital Gains and Qualified Dividends by 2 Percentage Points
The gap is significant. A shareholder in the 15% capital gains bracket pays about $15,000 on a $100,000 long-term gain flowing out of an S-corp. The same $100,000 gain inside a C-corp costs $21,000 at the corporate level before any tax on the eventual distribution to the shareholder. That structural difference is one of the main reasons closely held businesses elect S-corp status.
Watch for one caveat. A corporation that converted from C to S carries a built-in gains tax under Section 1374 on appreciated assets it held at the moment of conversion, if those assets are sold during the recognition period. The rule blocks companies from switching entity type right before a sale to escape the corporate-level tax.
What Counts as a Corporate Capital Asset
The code defines a capital asset broadly as any property the corporation holds, then carves out specific exclusions.6Office of the Law Revision Counsel. 26 US Code 1221 – Capital Asset Defined Inventory and goods held for sale to customers are out. Depreciable business property and real estate used in the business are out (those go through Section 1231). Self-created copyrights and literary works in the hands of the creator are out.
What’s typically left, for corporations, is investment property: stocks and bonds in other companies, investment real estate, and similar holdings. Gain or loss is the sale price minus the adjusted basis (original cost plus improvements, minus accumulated depreciation). Assets held a year or less produce short-term results; assets held more than a year produce long-term results.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses For a C-corp, that distinction only matters for the netting arithmetic. It doesn’t change the rate.
Corporate Capital Loss Rules Are Tighter Than Individual Rules
A corporation can use capital losses only against capital gains. They cannot reduce ordinary operating income. Individuals get to deduct up to $3,000 of net capital losses against ordinary income each year; corporations get nothing comparable.7Office of the Law Revision Counsel. 26 US Code 1211 – Limitation on Capital Losses
When a corporation ends the year with an unused net capital loss, the timeline is fixed. The loss carries back first to the three preceding tax years, starting with the earliest, and can offset capital gains in those years by way of an amended return on Form 1120-X to recover taxes already paid.8Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers9Internal Revenue Service. About Form 1120-X, Amended US Corporation Income Tax Return Anything left over carries forward for the next five tax years. However it travels, the carried loss is always treated as short-term. If five forward years pass and part of the loss is still unused, it expires. The full window is eight years: three back, five forward.
The Double-Taxation Problem for C-Corporation Gains
The 21% corporate rate is only half the story when a C-corporation eventually distributes its profits. The corporation pays 21% on the gain first. When the remaining after-tax profit is paid out to shareholders as dividends, shareholders owe tax again on the distribution.
The shareholder’s rate depends on the type of dividend. Qualified dividends, which meet holding-period and issuing-corporation requirements, are taxed at 0%, 15%, or 20% depending on the shareholder’s income.10Internal Revenue Service. Topic No. 404, Dividends and Other Corporate Distributions Non-qualified (ordinary) dividends are taxed at the shareholder’s regular income rate, up to 37%.
Run the numbers on $100 of C-corp capital gain. The corporation pays $21, leaving $79 to distribute. If that $79 goes to a shareholder in the 20% qualified-dividend bracket, the shareholder pays another $15.80. Combined federal tax on the original $100 is $36.80, an effective rate of 36.8%. At the 15% shareholder bracket the combined rate is about 32.9%.
High-income shareholders add a third layer. The 3.8% Net Investment Income Tax applies to dividends and capital gains once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly.11Internal Revenue Service. Topic No. 559, Net Investment Income Tax For shareholders above those thresholds, the combined federal rate on a C-corp capital gain distributed as a qualified dividend reaches roughly 40.6% before any state tax.
Qualified Small Business Stock Can Eliminate the Shareholder Tax
Section 1202 lets shareholders in qualifying C-corporations exclude some or all of the gain when they sell their stock. It doesn’t reduce the corporation’s tax, but for founders and early investors it can wipe out the shareholder-level tax entirely.
Following changes enacted in 2025, the exclusion is tiered by holding period:
- Three or more years: 50% of the gain is excluded.
- Four or more years: 75% is excluded.
- Five or more years: 100% is excluded, so the gain is entirely tax-free at the federal level.
To qualify, the corporation must be a domestic C-corporation whose gross assets have never exceeded $75 million (up from the prior $50 million cap). The per-issuer gain exclusion cap is $15 million, adjusted for inflation, or ten times the shareholder’s basis in the stock, whichever is greater. The corporation must also use at least 80% of its assets in an active qualifying trade or business, which rules out most financial services, professional services, and hospitality operations.
State Corporate Tax on Capital Gains
The 21% federal rate is not the ceiling. Most states impose a corporate income tax that also reaches capital gains, with top rates ranging from roughly 2% to more than 11%. A handful of states levy no corporate income tax, though some of those substitute a gross receipts tax. States set their own rules on how capital gains are calculated and whether they honor federal loss carryback provisions, so the combined federal-and-state bite on a corporate capital gain depends on where the corporation does business.