Built-in gains tax in 2026: 21% on the smallest of three numbers

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.

Disclosure: This page carries no affiliate links and no sponsored placements. The statute, the IRS forms and the revenue procedures behind every figure were read on November 30, 2026, and each one is dated in the sources at the bottom.

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.

Our take: The five-year window is a deadline with a price on it, and 2026 is the last year for the cohort that elected in 2022. What makes the calculation dangerous is not the 21% but the three limits: a corporation that assumes the tax is 21% of the sale gain will overstate it when taxable income is low and understate it when the gain is small but the receivables are large. Two items decide most cases. The first is the net unrealized built-in gain fixed on day one of the first S year, which cannot be reconstructed five years later from a valuation nobody made. The second is the built-in items rule: a C corporation on the cash method that converts with receivables collects them into recognized built-in gain in the S year, without selling anything. If a sale is being planned, the calendar matters more than the negotiation: the same asset sold in January 2027 carries no section 1374 tax at all.

The numbers that decide it in 2026

Item2026 ruleWhere it comes from
Rate21%Section 1374(b)(1), the highest rate in section 11(b)
Recognition periodFive yearsSection 1374(d)(7)(A), from the first day of the first S year
A 2022 electionJanuary 1, 2022 to December 31, 2026Section 1374(d)(7)(A)
A 2023 electionJanuary 1, 2023 to December 31, 2027Section 1374(d)(7)(A)
Net unrealized built-in gainFair market value less basis on day oneSection 1374(d)(1)
Recognized built-in gainOnly the gain that accrued before the electionSection 1374(d)(3)(A) and (d)(3)(B)
Recognized built-in lossLimited to the loss that existed at conversionSection 1374(d)(4)
Built-in itemsC-year receivables collected, C-year expenses paidSection 1374(d)(5)(A) and (d)(5)(B)
The baseThe smallest of three figuresSection 1374(d)(2); Schedule D (Form 1120-S) Part III line 18
Taxable income limitSection 1375(b)(1)(B) incomeWithout part VIII deductions and without the section 172 loss
Unused net built-in gainReduced by earlier years' taxSection 1374(c)(2)
What the income limit cutsCarries into later years' gainSection 1374(d)(2)(B)
C-year loss carryforwardAllowed against the taxSection 1374(b)(2), the exception to section 1371(b)(1)
CreditsNone but section 34Section 1374(b)(3)(A); C-year business and minimum tax credit carryforwards under (b)(3)(B)
Always an S corporationExemptSection 1374(c)(1)
Installment saleThe sale year fixes the rule for every later receiptSection 1374(d)(7)(B)
Assets bought from a C corporationMeasured again from acquisitionSection 1374(d)(8)
A second electionThe clock restartsSection 1374(d)(9), the most recent election
LIFO recaptureA separate tax at conversion, in four installmentsSection 1363(d)
Deduction for the taxNoneSection 275(a)(1) — no deduction for federal income taxes
Where it is reportedForm 1120-S line 23bSchedule D (Form 1120-S) Part III, lines 16 to 23

What a C-to-S conversion freezes: value minus basis on day one

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.

Five years, counted from the first day of the first S year

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.

The three numbers, and why the smallest one wins

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.

Recognized built-in gain is not sale gain: the part that accrued after the election is yours

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.

Built-in items: the receivables you collected in the S year

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.

What happens when taxable income is the smallest number

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.

C-year losses and credits: the two carryforwards section 1374 lets through

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.

Installment sales, and the year that decides everything after it

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.

Stock sale against asset sale: where the 21% lives

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.

LIFO recapture at conversion, and how it moves the number

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.

Calculator: built-in gains tax on a sale inside the period

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.

Worked example: $4 million of assets, $1 million of basis, a $2.2 million sale

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.

Frequently asked questions

When does the five-year built-in gains window start and end?
It runs from the first day of the first S tax year. A corporation that elected effective January 1, 2022 was inside it from January 1, 2022 through December 31, 2026, so a sale closing in January 2027 carries no section 1374 tax. A 2023 election runs through December 31, 2027, and the closing date of the sale, not the signing date, decides which side of the line it falls on.
Is the built-in gains tax 21% of the gain on the sale?
No. Section 1374(d)(2) applies 21% to the smallest of three figures: recognized built-in gain less recognized built-in loss, the corporation's taxable income under section 1375(b)(1)(B), and the net unrealized built-in gain that earlier years have not used. On our example the sale produces $2,100,000 of built-in gain, but taxable income of $1,900,000 is smaller, so the tax is 21% of $1,900,000.
Do collected receivables count if nothing was sold?
Yes. Section 1374(d)(5)(A) treats income that accrued in a C year and is recognised in an S year as a recognized built-in gain, so a cash-method corporation that converted with receivables collects them into section 1374 income without selling anything. Expenses that accrued before the election and are paid after it are recognized built-in losses under section 1374(d)(5)(B).
Can research or retirement plan credits reduce the built-in gains tax?
No. Section 1374(b)(3)(A) allows no credit against the tax imposed by section 1374 except the section 34 credit for federal tax on gasoline. A C-year business credit carryforward is allowed by section 1374(b)(3)(B) and is limited to the tax itself, so it reduces the bill but cannot produce a refund.
What happens if taxable income is smaller than the built-in gain?
The base is capped at taxable income, so the tax is smaller that year. The excess is not forgiven: section 1374(d)(2)(B) treats it as recognized built-in gain in the following year, where the same three limits apply again. Timing a deduction into the sale year therefore defers part of the tax rather than removing it.
Does a stock sale trigger the built-in gains tax?
No. Section 1374 applies to dispositions of assets. A shareholder who sells stock pays shareholder-level tax only, while a corporation that sells assets pays the built-in gains tax on the pre-election appreciation and the shareholders then pay tax again on the distribution. That difference is usually the largest single number in a sale negotiation.
Disclosure: No affiliate links, no sponsored placements, and no payment or account is accepted on this page. Every figure above comes from the statute, the form or the instructions listed under Sources, read on 2026-11-30.

Sources

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)