Tax

Section 1045: How to Roll a QSBS Gain Into New Stock When You Sell Too Early

Sold QSBS before the five-year mark? Section 1045 lets you reinvest within 60 days, defer the gain, and tack your holding period onto the replacement stock.

By 409.AI Team - 2026-08-11

# Section 1045: How to Roll a QSBS Gain Into New Stock When You Sell Too Early

Most founders learn the qualified small business stock rules in one direction. Hold the stock five years, meet the tests under Section 1202, and a big chunk of your gain comes out federal-tax-free. The problem is that startups rarely run on a five-year clock. An acquirer shows up in year three. A secondary buyer offers liquidity in year four. You want to sell, but you're eighteen months short of the exclusion you've been counting on.

Section 1045 is the escape hatch almost nobody talks about. It lets you sell early, defer the tax on the gain, and keep your holding period alive by rolling the proceeds into new qualified small business stock. Used well, it turns a premature exit into a paused clock instead of a blown one.

Here's how it actually works, where the traps are, and the arithmetic that decides whether it's worth doing.

What Section 1045 does

Section 1045 of the Internal Revenue Code lets a non-corporate taxpayer defer gain from the sale of QSBS if two things are true: you held the original stock for more than six months, and you reinvest the proceeds into replacement QSBS within 60 days of the sale. The deferral isn't a gimmick. It's the same rollover mechanic Congress uses elsewhere in the code, adapted to small-business stock.

Notice the holding-period gap. Section 1202's headline exclusion needs five years. Section 1045 only asks for six months before you sell. That's the whole point of the provision: it exists for people who bought or earned QSBS, watched it appreciate, and then had to sell before the long clock ran out.

If your shares don't qualify as QSBS in the first place, none of this applies. That turns on Section 1202's own requirements: a domestic C corporation, gross assets at or below the cap when the stock was issued, an active qualified trade or business, and original issuance to you. If you're fuzzy on whether your stock even counts, start with [our QSBS overview](https://409.ai/articles/qsbs-one-big-beautiful-bill-act-section-1202-changes) before you think about rolling anything over.

The two clocks: deferral now, exclusion later

People conflate two different tax outcomes, so let's separate them.

Deferral is what Section 1045 gives you today. You sell, you reinvest, and you don't pay tax on the rolled-over gain this year. The gain doesn't vanish. It gets pushed into the future by reducing your basis in the replacement stock, so you'll recognize it when you eventually sell the new shares (assuming nothing else shelters it).

Exclusion is the Section 1202 prize you're trying to reach: gain that's permanently excluded from federal tax once you hit the holding-period threshold. This is where Section 1045 quietly does its best work. The statute lets the holding period of your original QSBS tack onto the replacement stock. Sell after three years, roll into new QSBS, and the new shares don't start at zero. They start at three years. You only need to hold the replacement for the remaining stretch to reach Section 1202's finish line.

So the sequence a founder wants is: defer with 1045 today, tack the clock, then exclude under 1202 when the replacement stock finally matures. One provision feeds the other.

A worked example

Say you were an early employee who filed [an 83(b) election](https://409.ai/articles/the-83b-election-explained-for-founders) on restricted stock and later exercised options. Three years in, a buyer runs a tender offer and you sell shares for $2,000,000. Your basis is $200,000, so you're sitting on a $1,800,000 gain. You're two years short of five, so the full Section 1202 exclusion isn't available yet on this stock.

Without any planning, that $1,800,000 is long-term capital gain. At the top federal rate of 20% plus the 3.8% net investment income tax, that's roughly $428,400 to the IRS this year, before any state tax.

Now run it through Section 1045. Within 60 days of the sale, you reinvest the full $2,000,000 into replacement QSBS (another qualifying startup, a fund structured to hold QSBS, or your own new venture that meets the tests). You elect the rollover. The $1,800,000 gain is deferred, not taxed this year. Your basis in the replacement stock is reduced by that deferred gain, and, critically, your holding period carries over. You're already three years in on the new shares. Hold two more, and the eventual gain can qualify for Section 1202 exclusion.

You converted a $428,400 tax bill into a deferral with a live path to zero. That's the case for Section 1045 in one paragraph.

Partial rollovers and the reinvestment math

You don't have to reinvest every dollar. Section 1045 allows a partial rollover, but the tax follows the money. You defer gain only to the extent your reinvestment covers the sale proceeds. Anything you keep in cash is treated as proceeds you didn't roll over, and the gain attributable to that slice is recognized now.

Back to the example. If you reinvest $1,500,000 of the $2,000,000 and pocket $500,000, you've left a quarter of the proceeds on the table. Roughly a quarter of the gain, about $450,000, becomes currently taxable, and the rest rolls. The lesson: the more you reinvest, the more you defer, and a dollar kept out is a proportional dollar of gain pulled back into this year's return.

The requirements that trip people up

Section 1045 is generous, but it's fussy about the details.

The 60-day window is hard. It begins on the date you sell the original stock and it does not flex for weekends, holidays, or a deal that closes slower than the fund you wanted to invest in. Sixty days is short when you're trying to identify a genuine QSBS issuer. Line up the replacement before you sell, not after.

The replacement stock has to be QSBS too. New stock in a domestic C corporation, acquired at original issuance, under the gross-assets cap, in an active qualifying business. A rollover into another company's secondary shares won't work, because secondary shares aren't originally issued to you. If you're evaluating a target company's shares, the same fundamentals that drive a [409A valuation](https://409.ai/articles/what-is-a-409a-valuation-a-comprehensive-guide) are worth a look, but qualification turns on the Section 1202 tests, not the price.

The replacement company must stay active. The replacement stock has to meet Section 1202's active-business requirement during roughly the first six months you hold it. Rolling into a holding company that mostly sits on cash or investments defeats the purpose, and it can defeat the deferral.

It's an election, and it's easy to miss. You claim Section 1045 under Revenue Procedure 98-48 on a timely filed return for the year of the sale, including extensions. On Form 8949 you report the sale in full, enter code R in column (f), and show the deferred gain as a negative number in column (g), with a statement describing the sale, the replacement stock, and the relevant dates. Skip the election and you've simply sold QSBS and paid the tax.

Why this matters more after the One Big Beautiful Bill Act

The 2025 tax law rewrote the QSBS map, and it made Section 1045 more useful, not less. For stock issued after July 4, 2025, the per-issuer exclusion ceiling climbed from $10 million to $15 million, and the gross-assets cap that a company can have when it issues QSBS rose from $50 million to $75 million. The law also introduced a tiered holding schedule for that newer stock: 50% of gain excluded at three years, 75% at four, and the full 100% at five. We covered the details in our piece on how [QSBS changed under the One Big Beautiful Bill Act](https://409.ai/articles/qsbs-one-big-beautiful-bill-act-section-1202-changes).

Tiered holding periods make the tacking rule more valuable. Under the old all-or-nothing five-year cliff, selling at year four gave you nothing from 1202. Under the new schedule, a founder who tacks a three-year or four-year holding period onto replacement stock is much closer to a meaningful exclusion tier. The rollover buys you time on a clock that now pays partial credit along the way.

Where Section 1045 fits in a broader equity-tax plan

A rollover isn't the only lever. Founders sitting on appreciated QSBS often combine strategies. Some gift shares to family members or trusts before a big exit, which can multiply the number of taxpayers each entitled to their own Section 1202 exclusion. If that's on your mind, read how [gifting startup equity works alongside the 2026 estate-tax exemption](https://409.ai/articles/gifting-startup-equity-2026-estate-tax-exemption), because the two planning moves interact.

The character of your original shares matters too. Whether you acquired them through founder stock, [incentive or non-qualified options](https://409.ai/articles/iso-vs-nso-how-stock-options-are-taxed), or an exercise tied to a liquidity event, the path in affects your basis and your holding-period start date, both of which feed directly into the 1045 math. And if your liquidity is coming through a company-run [tender offer or secondary sale](https://409.ai/articles/tender-offers-secondary-sales-409a-valuation), the closing timeline is what actually starts your 60-day window, so coordinate the two.

The honest caveats

Section 1045 is powerful and it is not simple. A few things are worth saying plainly.

Deferral is not forgiveness. If your replacement company fails or never reaches a 1202-qualifying exit, you've postponed the gain, not erased it, and you may end up recognizing it later with less to show for it. You're trading a certain tax bill today for a bet on a second qualifying company.

The mechanics through partnerships and funds add another layer. Rev. Proc. 98-48 explicitly contemplates pass-through entities and their owners electing at different levels, and the rules for who elects, and on which share of gain, get technical fast.

And none of this is a substitute for advice on your specific facts. QSBS qualification, basis, and holding periods are exactly the kind of details where a wrong assumption is expensive. Before you rely on a rollover, get the underlying qualification confirmed. A defensible [QSBS attestation](https://409.ai/products/qsbs) that documents whether your stock meets the Section 1202 tests is the foundation the whole strategy sits on, and it's a lot cheaper than discovering at audit that the stock never qualified.

The takeaway

If you're staring at a sale that lands a year or two short of your QSBS finish line, don't assume the exclusion is lost. Section 1045 gives you 60 days to reinvest, defers the gain, and tacks your holding period onto the new shares so the five-year clock keeps ticking instead of resetting. The window is short and the election is easy to fumble, so the move is to line up qualifying replacement stock before you sign the sale, confirm both companies pass the Section 1202 tests, and make the election on time. Do that, and an early exit becomes a pause, not a penalty.

Related valuation reports