Selling a SaaS Company: How Stock Deals, QSBS and Deferred Revenue Shape Your Tax
Stock sale or asset sale: what a software buyer wants
A SaaS business has almost no hard assets; the value sits in code, contracts and recurring revenue. Strategic buyers and private equity funds usually prefer to buy assets (or a stock deal treated as one, through a Section 338(h)(10) or 336(e) election) because they get to amortize the purchase price over 15 years under IRC 197. Sellers usually prefer a straight stock sale: one long-term capital gain, no recapture, no corporate-level tax, and the possibility of the small business stock exclusion.
The entity you formed years ago largely decides which fight you are in. A C corporation selling assets pays corporate tax and then you pay again on the distribution (see C corporation double tax). An S corporation or LLC selling assets passes the gain through to you once. The asset sale vs stock sale and Section 338(h)(10) election pages cover the general trade.
QSBS after the One Big Beautiful Bill Act
Section 1202 lets a noncorporate holder exclude gain on qualified small business stock: shares of a domestic C corporation acquired at original issue, in an active business that is not an excluded service field. Software sold as a subscription is generally an eligible business. The 2025 law (P.L. 119-21, enacted July 4, 2025) changed the rules for shares issued after that date (IRC 1202):
- Holding period: 50% of the gain excluded after 3 years, 75% after 4 years, 100% after 5 years (IRC 1202(a), as amended 2025). The taxable portion of a partial exclusion is 28% rate gain under IRC 1(h)(4).
- Per-company cap: the greater of $15,000,000 or 10 times your basis, indexed for inflation after 2026 (IRC 1202(b), as amended 2025).
- Gross assets test: $75,000,000 at and immediately after issuance, up from $50,000,000 (IRC 1202(d), as amended 2025).
Shares issued on or before July 4, 2025 keep the old rules: a holding period of more than five years, a 100% exclusion for stock acquired after September 27, 2010, and a $10,000,000 or 10 times basis cap. Founders who started as an LLC or S corporation should know that S corporation shares never qualify, and that an LLC that converts to a C corporation starts the clock at conversion, with the conversion-date value counted as basis. The QSBS and Section 1045 and QSBS stacking pages go further.
Worked example: one Texas founder, three ways to sell
An S corporation asset sale for $12,000,000 plus $700,000 of assumed subscriptions adds $2,640,983 of tax for the active owner, an effective 20.8%. Net investment income tax does not apply to an active owner's share of business asset gain (IRC 1411(c)). A sale of C corporation stock for a $12,000,000 gain with no exclusion adds $2,868,347, including the 3.8% net investment income tax that stock gain carries above $250,000 of joint income (IRC 1411, not indexed). If those shares qualify for Section 1202, the first $10,000,000 is excluded and the tax falls to $488,347, a difference of $2,380,000.
Texas adds nothing in any version: the Texas Constitution bars a personal income tax, and since voters approved Article 8, Section 24-b on November 4, 2025, it also bars a tax on capital gains (Tex. Const. art. 8). The Texas page has the details. A California founder would see a different picture, because California does not conform to Section 1202 or 1045 and taxes the entire gain (FTB Publication 1001, 2025).
Deferred revenue: the SaaS-specific trap in an asset sale
Annual plans paid upfront sit on your balance sheet as deferred revenue. For tax, an accrual-method company using the deferral method under IRC 451(c) has included only part of those advance payments in income. When you sell assets and the buyer takes over the obligation to serve those customers, your obligation ends, and Treas. Reg. 1.451-8(c)(4) requires you to include all remaining advance payments in income that year. That is ordinary income, not capital gain, which is why ex1 shows $700,000 taxed at ordinary rates.
In a stock sale the deferred revenue stays inside the company and becomes the buyer's tax item, which is one more reason stock deals are cleaner for sellers. Buyers often negotiate a working capital adjustment for deferred revenue either way.
Software development costs under Sections 174 and 174A
From 2022 through 2024, all research and experimental costs, explicitly including software development, had to be capitalized and amortized over five years (fifteen for foreign work). The 2025 law added IRC 174A: domestic research and experimental costs, which under IRC 174A(c)(3) include any amount paid in connection with developing software, are deductible currently for tax years beginning after December 31, 2024. Taxpayers can also elect to deduct the unamortized 2022 to 2024 domestic balance in the first tax year beginning after 2024 or over two years (P.L. 119-21, section 70302(f)(2)). The retroactive amended-return election for small businesses had to be made within one year of enactment, so that window closed in July 2026.
What this means at sale time:
- In a stock sale, any remaining unamortized domestic balance stays with the company as a future deduction. That has value to the buyer and belongs in the price discussion.
- Foreign development costs are still amortized over 15 years under IRC 174(d), and for property disposed of after May 12, 2025, the unamortized foreign balance gives no deduction and no reduction in amount realized on the sale. Offshore engineering spend can therefore leave stranded basis.
- Section 1245(a)(2)(C) does not list Section 174 or 174A among the deductions treated as amortization, so expensed developer salaries generally do not create recapture. The code's value lands in goodwill and other intangibles, taxed as capital or Section 1231 gain.
Earn-outs, escrows and rollover equity
Software deals rarely pay 100% cash at closing. Each extra term has its own tax timing:
- Earn-outs tied to annual recurring revenue or retention are contingent payments, reported on the installment method under Treas. Reg. 15a.453-1(c) unless you elect out. An earn-out paid only if you keep working for the buyer risks being treated as compensation, taxed as wages. See earn-out.
- Indemnity escrows and holdbacks that you may forfeit are generally taxed when released to you. Be careful with a buyer note backed by cash: under Treas. Reg. 15a.453-1(b)(3)(i), a note secured directly or indirectly by cash or a cash equivalent counts as a payment now.
- Rollover equity in the buyer can be received without current tax when the deal is built as a contribution under IRC 351 or 721 or as a reorganization. If not, the rollover shares are taxable consideration on day one.
- Selling QSBS early: if you sell qualifying shares held more than six months, IRC 1045 lets you defer the gain by buying other qualified small business stock within 60 days (IRC 1045).
Order of work for a founder
Before a letter of intent, confirm the entity, each share's issue date and the gross assets history, pull the deferred revenue schedule, and check how 2022 to 2025 development costs were handled. Then model stock versus asset and each earn-out and escrow payment in the year it will arrive. The installment sale and state residency change pages cover those levers.
Get the Big Sale Tax Analysis for a side-by-side model of your deal.
What to know
QSBS, a stock sale and an all-cash closing are each worth less to a buyer than to you, so expect a price conversation about every one of them. The Section 1202 tests (C corporation status, original issue, active business, gross assets, redemptions) are checked over years of history, and a single failed test can remove the exclusion. Earn-outs and escrows defer tax but also defer cash you may never receive. State rules differ sharply on QSBS.
Worked example
Assumptions: married founder in Texas with $300,000 of salary. Ex1: an S corporation the founder runs sells its assets for $12,000,000 plus the buyer's assumption of $700,000 of prepaid subscriptions; $60,000 of depreciated computers is recapture, code and customer contracts carry no tax basis. Ex2 and ex3: the founder instead sells C corporation stock for a $12,000,000 gain; in ex3 the shares were issued in 2019, held over five years and qualify for Section 1202, so $10,000,000 is excluded and $2,000,000 is taxed.
| Engine run | S corporation asset sale | C corporation stock, no QSBS | C corporation stock, QSBS (taxable part) |
|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint |
| State | Texas | Texas | Texas |
| Other income (wages, pension, interest) | $300,000 | $300,000 | $300,000 |
| Long-term capital gain | $11,940,000 | $12,000,000 | $2,000,000 |
| Section 1245 recapture (ordinary income) | $60,000 | $0 | $0 |
| Ordinary income from the sale (short-term gain, inventory, non-compete) | $700,000 | $0 | $0 |
| Federal income tax on the sale | $2,640,983 | $2,412,347 | $412,347 |
| Net investment income tax (3.8%) | $0 | $456,000 | $76,000 |
| State income tax on the sale | $0 | $0 | $0 |
| Total tax caused by the sale | $2,640,983 | $2,868,347 | $488,347 |
| Effective rate on the gain | 20.8% | 23.9% | 24.4% |
| Gain kept after these taxes | $10,059,018 | $9,131,653 | $1,511,653 |
Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
Run your own numbers
2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.
Long-Term vs Short-Term Capital Gains (2026)
The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.
Frequently asked questions
How are SaaS company sales taxed?
How much capital gain can be excluded when selling startup stock?
How do you reduce taxes on a stock sale of a business?
What makes a SaaS business valuable?
Is deferred revenue taxed when I sell my SaaS company?
How long does it take to sell a SaaS company?
Sources
- IRC 1202 qualified small business stock (Cornell LII)
- IRC 1045 QSBS rollover (Cornell LII)
- IRC 174A domestic research expenditures (Cornell LII)
- IRC 174 foreign research expenditures (Cornell LII)
- Treas. Reg. 1.451-8 advance payments (eCFR)
- Treas. Reg. 15a.453-1 installment and contingent payment sales (eCFR)
- IRC 1411 net investment income tax (Cornell LII)
- Rev. Proc. 2025-32, 2026 inflation adjustments (IRS)
- FTB Publication 1001 (2025), federal and California differences
- Texas Constitution article 8 (Texas Legislature)
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
QSBS (Section 1202 and 1045)
Exclude up to $15 million or 10 times basis of gain on qualified C corporation stock, and roll gain into new QSBS within 60 days under Section 1045.
ReadAsset sale vs stock sale
Buyers want assets for the step-up, sellers want stock for one layer of capital gain; here is how the difference is measured and priced.
ReadEarn-out
How contingent business sale payments are taxed, and the interest and compensation traps in the drafting.
Read338(h)(10) election
A stock sale taxed as an asset sale: the buyer's step-up, the seller's extra tax, and the gross-up.
ReadC corporation sale
The corporate 21% plus the shareholder layer, and the five routes owners use to pay it once: stock sale, personal goodwill, QSBS, ESOP and a timed S election.
ReadTexas
Zero state tax on an individual's gain, locked into the constitution in 2025, with the franchise tax and the rollback tax still in play.
ReadKnow your number before you sign.
The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.
Prefer email? Request the analysis by email.