When a C corporation becomes an S corporation, the gain that accrued while it was a C corporation is still taxed at the corporate level if the assets are sold within five years. The rate is 21%, but the base is not the sale gain: it is the smallest of recognized built-in gain less built-in loss, taxable income, and the net unrealized built-in gain still unused. For a corporation that elected effective January 1, 2022, the window closes on December 31, 2026.
The short answer
Section 1374 taxes the pre-election appreciation of an S corporation's assets at 21% when they are sold inside the recognition period. The base is the smallest of three figures: recognized built-in gains less recognized built-in losses, the year's taxable income, and the net unrealized built-in gain that earlier years have not already used. On a corporation that converted with $4,000,000 of assets and $1,000,000 of basis, selling $2,200,000 of built-in gain with $1,900,000 of taxable income gives a base of $1,900,000, 21% of which is $399,000, and a $15,000 C-year credit carryforward leaves $384,000. An election effective January 1, 2022 has its last day on December 31, 2026.
| Item | 2026 rule | Where it comes from |
|---|---|---|
| Rate | 21% | Section 1374(b)(1), the highest rate in section 11(b) |
| Recognition period | Five years | Section 1374(d)(7)(A), from the first day of the first S year |
| A 2022 election | January 1, 2022 to December 31, 2026 | Section 1374(d)(7)(A) |
| A 2023 election | January 1, 2023 to December 31, 2027 | Section 1374(d)(7)(A) |
| Net unrealized built-in gain | Fair market value less basis on day one | Section 1374(d)(1) |
| Recognized built-in gain | Only the gain that accrued before the election | Section 1374(d)(3)(A) and (d)(3)(B) |
| Recognized built-in loss | Limited to the loss that existed at conversion | Section 1374(d)(4) |
| Built-in items | C-year receivables collected, C-year expenses paid | Section 1374(d)(5)(A) and (d)(5)(B) |
| The base | The smallest of three figures | Section 1374(d)(2); Schedule D (Form 1120-S) Part III line 18 |
| Taxable income limit | Section 1375(b)(1)(B) income | Without part VIII deductions and without the section 172 loss |
| Unused net built-in gain | Reduced by earlier years' tax | Section 1374(c)(2) |
| What the income limit cuts | Carries into later years' gain | Section 1374(d)(2)(B) |
| C-year loss carryforward | Allowed against the tax | Section 1374(b)(2), the exception to section 1371(b)(1) |
| Credits | None but section 34 | Section 1374(b)(3)(A); C-year business and minimum tax credit carryforwards under (b)(3)(B) |
| Always an S corporation | Exempt | Section 1374(c)(1) |
| Installment sale | The sale year fixes the rule for every later receipt | Section 1374(d)(7)(B) |
| Assets bought from a C corporation | Measured again from acquisition | Section 1374(d)(8) |
| A second election | The clock restarts | Section 1374(d)(9), the most recent election |
| LIFO recapture | A separate tax at conversion, in four installments | Section 1363(d) |
| Deduction for the tax | None | Section 275(a)(1) — no deduction for federal income taxes |
| Where it is reported | Form 1120-S line 23b | Schedule D (Form 1120-S) Part III, lines 16 to 23 |
On the first day of the first S year the corporation's assets are measured at fair market value and at adjusted basis, and the difference is the net unrealized built-in gain. That number is fixed there. Section 1374(d)(1) defines it by reference to the assets held at the moment of conversion, so the only valuation that counts is the one made then — not the one a buyer's accountant makes five years later.
This is the reason a conversion file matters more than a conversion decision. A corporation that elected in 2022 and is selling in 2026 needs the 2021 year-end and the January 1, 2022 balance sheet, with a supportable fair market value for each asset class. If that work was never done, the position has to be reconstructed from whatever the company had, and the burden of the number falls on the taxpayer.
The recognition period is the five-year period beginning on the first day of the first taxable year for which the corporation is an S corporation. A calendar-year corporation that elected effective January 1, 2022 was inside it from January 1, 2022 through December 31, 2026, and a sale that closes on January 2, 2027 is outside it.
Two consequences follow. The date that counts is the closing date, not the date the letter of intent was signed. And the year printed on the sale contract is not always the year of the disposal — an installment sale that closes inside the period follows the rule of the year of sale for every later payment, under section 1374(d)(7)(B), so the window cannot be escaped by spreading the receipts.
Section 1374(d)(2) defines the net recognized built-in gain as the lesser of two amounts, and section 1374(c)(2) adds a third ceiling:
Twenty-one percent applies to whichever is smallest. That is why the tax can be far below 21% of a sale gain, and why it can also exceed what a simple model predicts: when taxable income is the constraint the excess carries into later years under section 1374(d)(2)(B), so a low-income year defers rather than forgives.
Only the gain that existed at conversion is a recognized built-in gain. Section 1374(d)(3)(B) measures the built-in element as the amount by which the gain exceeds the excess of the fair market value at conversion over the basis at conversion. An asset worth $500,000 with a $200,000 basis at conversion that sells for $900,000 four years later has a $300,000 built-in gain and $400,000 of post-conversion appreciation that is outside section 1374 entirely.
Keeping that split requires a conversion-date schedule asset by asset. A single total for the whole company will not do it when some assets are sold and others are kept.
Section 1374(d)(5)(A) treats an item of income that accrued in a C year and is recognised in an S year as a recognized built-in gain. A cash-method C corporation that converted with $400,000 of accounts receivable collects that money into section 1374 income in the S year even though nothing was sold — and the net unrealized built-in gain was computed with those receivables in it.
The mirror is in section 1374(d)(5)(B): an expense that accrued in a C year and is paid in an S year is a recognized built-in loss, limited to the same pre-conversion measurement. Both directions move the number, and neither appears in the sale ledger.
A corporation with a large built-in gain and a thin year pays 21% of the thin year's taxable income, not of the gain. The difference is not lost: section 1374(d)(2)(B) treats the excess as recognized built-in gain in the next year, where it meets the same three tests again.
That produces a planning fact that is easy to miss. A deduction timed into the sale year — a bonus, an accelerated repair, a retirement plan contribution that lands inside the year — does not remove the built-in gain tax; it moves part of it into the following year, where it can be taxed if the corporation still has gains inside the window.
Section 1371(b)(1) bars any carryforward or carryback from a C year to an S year. Section 1374(b)(2) carves out one exception: a C-year net operating loss or capital loss carryforward may reduce the built-in gains tax base, applied after the smallest-of-three figure is set and before the rate. Using the loss twice would be a mistake, which is why the section 1375(b)(1)(B) taxable income figure excludes the section 172 deduction.
Credits get the opposite treatment. Section 1374(b)(3)(A) says no credit is allowable against the tax imposed by section 1374 except under section 34, the credit for the gasoline tax. A C-year business credit carryforward is allowed by section 1374(b)(3)(B), and it is capped at the tax itself, which is why a credit carryforward reduces the bill but never creates a refund.
Under section 1374(d)(7)(B), if an asset is sold inside the recognition period and the gain is reported on the installment method, the tax applies to the payments received after the period ends as if the period had not ended. The year of sale is the only year that matters for the rule. Closing on December 30, 2026 with payments running to 2031 keeps every payment inside the regime; closing on January 4, 2027 ends the question.
Section 1374 applies to the disposition of assets, not to the sale of the corporation's stock. A shareholder who sells shares pays shareholder-level tax only. A corporation that sells its assets pays the built-in gains tax on the pre-election appreciation, and the shareholders then pay tax again on what is distributed. That gap is the price of the provision, and it is the reason a sale negotiation at this stage is really a negotiation about which side of that line the deal falls on.
A corporation that used the LIFO inventory method includes a LIFO recapture amount in income in its last C year, pays the tax in four installments under section 1363(d), and adjusts the basis of the inventory. That basis adjustment lowers the day-one built-in gain that section 1374 later measures, so the two provisions do not double up — but the interaction is a timing calculation, not a netting one.
Enter the conversion year, the day-one values and this year's recognized built-in gains. The calculator finds the smallest of the three limits, applies the C-year loss and credit carryforwards, and shows what the same sale would cost a year later.
One asset pool and an election effective on the first day of a tax year. State tax, a mid-year election and the section 1363(d) LIFO recapture installment are outside this figure.
A corporation elected S status effective January 1, 2022 with assets worth $4,000,000 and a basis of $1,000,000, so $3,000,000 of built-in gain was frozen at conversion. In 2026 it sells assets producing $2,200,000 of built-in gain, with $100,000 of built-in losses, $1,900,000 of taxable income and a $15,000 C-year credit carryforward.
Verified 2026-11-30 against the statute, the forms and the revenue procedures above. This page is general information, not tax or legal advice: whether a corporation was a C corporation, what its assets were worth on the first day of its first S year, and which of its gains are built-in are questions of fact that need the conversion records. Affiliate disclosure: this page carries no affiliate links and no sponsored placements.
← Back to the hub S-corp vs LLC: does the election pay? · The late S-corp election · Late 1065 and 1120-S penalties · Run it in SmartCalc · Ops Cost Desk (blog)