Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / SaaS company
SaaS company sale

Selling a SaaS Company: How Stock Deals, QSBS and Deferred Revenue Shape Your Tax

Short answerSelling a SaaS company is usually long-term capital gain, but three SaaS-specific items move the bill: whether you sell stock or assets, whether your shares qualify for the Section 1202 small business stock exclusion, and how prepaid subscriptions (deferred revenue) are handled. In our Texas example, qualifying C corporation stock owed $488,347 on a $12,000,000 gain versus $2,868,347 without the exclusion.

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 runS corporation asset saleC corporation stock, no QSBSC corporation stock, QSBS (taxable part)
Filing statusMarried, jointMarried, jointMarried, joint
StateTexasTexasTexas
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 gain20.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

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

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.

Free PDF sheet

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.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

How are SaaS company sales taxed?
A sale of shares held more than a year is long-term capital gain, with a top federal rate of 20% plus 3.8% net investment income tax (Rev. Proc. 2025-32 and IRC 1411, 2026). An asset sale splits the price: deferred revenue taken over by the buyer is ordinary income, depreciated equipment is recapture, and code, contracts and goodwill are capital or Section 1231 gain. Qualifying C corporation stock may be partly or fully excluded under Section 1202.
How much capital gain can be excluded when selling startup stock?
Under Section 1202, up to the greater of 10 times your basis or a per-company cap: $15,000,000 for shares issued after July 4, 2025 (indexed after 2026) and $10,000,000 for older shares. New shares get 50%, 75% or 100% exclusion at three, four or five years. The company must be a C corporation that met the gross assets test when the shares were issued.
How do you reduce taxes on a stock sale of a business?
The main federal levers are the Section 1202 exclusion, a Section 1045 rollover of qualifying stock into new qualifying stock within 60 days, an installment sale or earn-out that spreads the gain, gifting shares to family or a charitable trust before a deal is committed, and timing the closing around the rest of your income. A move to a state without income tax before the sale also matters.
What makes a SaaS business valuable?
Buyers pay for recurring revenue that stays: net revenue retention, gross margin, growth and the quality of the customer contracts. For taxes, what matters is how that value is paid (stock or assets, cash or earn-out, rollover equity), because that decides whether it is taxed as capital gain, ordinary income or later.
Is deferred revenue taxed when I sell my SaaS company?
In an asset sale, usually yes. When the buyer takes over your obligation to serve prepaid customers, Treas. Reg. 1.451-8(c)(4) requires you to include all advance payments not yet reported in income for that year, as ordinary income. In a stock sale the deferred revenue stays in the company, so it is not accelerated to you.
How long does it take to sell a SaaS company?
Many processes take several months from banker engagement to closing, and earn-outs and escrows can run one to three years after that. For taxes, the closing date fixes the year for cash at closing, and each earn-out or escrow release fixes the year for that payment.
How Hans helps: the $5,000 Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know 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.

Book a callCall Hans