Selling Your Business, Property, or Crypto? The Tax Surprises That Catch People Off Guard

There is a particular kind of tax case I see every spring — a client walks into my office in March or April with a 1099-B, a closing statement, or a brokerage report from the year before, and a question that goes something like: “Is this going to be bad?” They sold a business in May, closed on a rental property in August, exited a crypto position in October, and assumed they’d figure out the tax side later. Later is now, and the tax bill is dramatically larger than they expected.

Here is the truth about selling appreciated assets in the United States: the tax code is full of opportunities to substantially reduce, defer, or restructure the tax cost — but almost all of them have to be set up before the sale closes. After the closing, the options collapse to filing the return correctly and paying what is owed. The difference between proactive planning and reactive filing on a sale of any meaningful size is routinely tens of thousands to hundreds of thousands of dollars.

This article walks through the most common tax surprises people encounter when they sell a business, real estate, or cryptocurrency. You will learn what gets taxed, at what rate, what planning tools exist, what closes the door, and what to do before — and after — a sale of any size. By the end, you should have a much clearer sense of which moves matter, which timing constraints matter, and where professional planning earns its keep.

First, the Big Picture: How Sales Are Taxed

Almost every sale of an appreciated asset triggers the same basic question: how much of the proceeds is taxable, and at what rate? The answer depends on three variables that most sellers underestimate: how long you held it, what kind of asset it is, and what your basis in it actually is.

Holding period — long-term vs. short-term

Assets held more than one year qualify for long-term capital gain treatment, generally taxed at 0%, 15%, or 20% depending on your overall income (with an additional 3.8% Net Investment Income Tax under IRC § 1411 for higher incomes). Assets held one year or less are taxed as short-term capital gains — ordinary income rates, up to 37% federal plus state. The single most expensive mistake on liquid assets like crypto and stocks is selling at 11 months instead of 13.

Character of the gain

Capital gain treatment is not automatic. Some sales generate ordinary income regardless of holding period — inventory, depreciation recapture under IRC § 1245 and § 1250, sales of certain self-created intangibles, and trader vs. investor classifications. A sale that the seller assumes is “all long-term capital gain” frequently turns out to include substantial ordinary income components when the return is actually prepared.

Basis

Basis is what you have invested in the asset for tax purposes — purchase price plus improvements and capitalized costs, less depreciation taken. The taxable gain is the sale price minus selling costs minus basis. Sloppy basis tracking is one of the biggest sources of overpayment on real estate and business sales — forgotten capital improvements, missed cost segregation studies, unrecorded contributions of capital, and undocumented partner adjustments all become permanent overpayments if they aren’t captured at the time of sale.

Selling a Business: The Tax Surprises

Asset sale vs. stock sale matters enormously

Most small and mid-sized business sales close as asset sales, not stock sales. Buyers prefer asset sales because they get a stepped-up basis in the assets and avoid inheriting the seller’s liabilities. Sellers often prefer stock sales because they generate a single capital gain at the shareholder level. The difference is real money.

In an asset sale of a C-corporation, the corporation pays tax on the gain at the corporate level, then the shareholders pay tax again when proceeds are distributed — the classic “double taxation” problem. In an S-corp asset sale, gain flows through to shareholders, but the character of that gain is split among ordinary income components (depreciation recapture, accounts receivable, inventory) and capital gain components (goodwill, going concern value), often with substantially less favorable mix than expected.

The purchase price allocation under IRC § 1060 is negotiable — and consequential

In an asset sale, the buyer and seller must agree on how the purchase price is allocated among the various asset categories on Form 8594. The allocation has opposite effects for buyer and seller: buyers want allocations to short-life assets they can deduct quickly; sellers want allocations to goodwill and other capital-gain-eligible categories. This is one of the most negotiable items in a deal, and one of the least negotiated. Sellers who don’t advocate for favorable allocation routinely accept buyer-friendly splits that cost five or six figures in additional tax.

Installment sales under IRC § 453

If you take payments over more than one year (seller financing, earnouts, deferred payments), the installment method generally lets you recognize gain proportionally as payments are received — spreading the tax over multiple years and often keeping you in lower brackets. Installment treatment doesn’t apply to all asset categories (recapture income, for example, must generally be recognized in the year of sale), but on the qualifying portion it can be a powerful planning tool.

Qualified Small Business Stock (QSBS) under IRC § 1202

If your company is a C-corporation that meets specific requirements and you held the stock more than five years, IRC § 1202 may exclude a substantial portion of the gain from federal tax — up to the greater of $10 million or 10x basis per shareholder. QSBS is one of the most valuable provisions in the Code, and it is routinely missed by founders who didn’t structure for it five years before the exit.

Section 1202 vs. Section 1045 rollover

If you sell QSBS before the five-year holding period, IRC § 1045 may allow you to roll the proceeds into new QSBS within 60 days and defer the gain. This is a tight timeline and a planning issue — not something you discover after the wire arrives.

State residency planning

California taxes capital gains as ordinary income — currently up to 13.3% — with no preferential rate. For founders and business owners contemplating a sale, residency planning before the closing year can be the difference between paying California tax on the entire gain and paying it on none. The rules are technical (Revenue and Taxation Code § 17041, the “domicile” analysis, the FTB’s 18 factors), and California aggressively challenges residency claims through residency audits. But for sales above certain magnitudes, the planning is real and the savings are substantial.

Selling Real Estate: The Tax Surprises

Depreciation recapture is the biggest surprise on rental property sales

Every year you held the rental, you depreciated the building — whether you actually claimed the deduction or not. When you sell, IRC § 1250 “unrecaptured Section 1250 gain” is taxed at a maximum federal rate of 25%, separate from regular capital gain rates. For a property held 15 years, that recapture can easily run six figures. Sellers who understood their gain to be “just the price increase” are routinely shocked when the depreciation recapture line item appears.

§ 121 exclusion on principal residences

If you owned and used the home as your principal residence for at least two of the five years before the sale, IRC § 121 lets you exclude up to $250,000 of gain ($500,000 for married filing jointly). This is one of the most generous provisions in the Code for ordinary taxpayers — and it has nuances. Periods of non-qualified use, conversion from rental to residence, and rentals after move-out all reduce the exclusion. Sellers contemplating turning a rental into a residence to qualify, or vice versa, need to map out the timing carefully.

§ 1031 like-kind exchanges

For investment and business real estate (not primary residences), IRC § 1031 allows you to defer all gain by reinvesting the proceeds into “like-kind” real property. The mechanics are strict: you must identify replacement property within 45 days of closing the sale, and close on it within 180 days. The proceeds must be held by a Qualified Intermediary — you cannot touch the money. Done correctly, a 1031 exchange defers the entire tax — capital gain plus depreciation recapture — indefinitely. Done incorrectly, the entire gain is recognized.

Opportunity Zones

The Qualified Opportunity Zone program under IRC § 1400Z-2 offers a different deferral structure: roll the gain (not the principal) from any sale into a Qualified Opportunity Fund within 180 days, defer the original gain, and — if held long enough — exclude future appreciation. Opportunity Zones have specific rules about original use, substantial improvement, and qualified business activity, but for sellers with significant capital gains looking for a different kind of deferral than 1031, they’re often worth evaluating.

California-specific real estate issues

California requires withholding under Revenue and Taxation Code § 18662 on real estate sales by certain non-residents, and the FTB enforces it actively. Sellers leaving California in connection with a sale often run into the FTB on residency, withholding, and source-of-income issues. The state also conforms partially to federal rules but with its own quirks. California real estate sales are not just federal tax events — they are state tax events, and the state rarely makes them easy.

Installment sales and the § 453(l) carve-out

Installment sales are available on real estate, but with limits. Sales of property to certain related parties have anti-abuse rules under IRC § 453(g) and § 453(e), and sales of dealer property are excluded entirely. For investor-owned residential or commercial real estate sold to unrelated buyers, installment treatment is often available and often valuable.

Selling Cryptocurrency: The Tax Surprises

Crypto is property, not currency, for federal tax purposes

Since IRS Notice 2014-21, cryptocurrency has been treated as property. Every disposition is a potentially taxable event — not just selling crypto for dollars, but trading one crypto for another, using crypto to buy goods or services, and receiving crypto as payment. People who “traded BTC for ETH” and assumed it wasn’t a taxable event have generated some of the largest unexpected balances in recent tax practice.

Wash sale rules don’t apply (yet) to crypto

The wash sale rule under IRC § 1091 currently applies only to stock and securities, not to cryptocurrency. This has historically allowed crypto holders to harvest losses by selling and immediately repurchasing — a planning move not available to stock investors. Legislation has been proposed to extend the wash sale rule to crypto, and the planning landscape may change. Until it does, the loss harvesting opportunity is real.

Specific identification methods matter

Crypto held in a wallet is fungible at the protocol level but not for tax purposes. Sellers can elect specific identification — selling specific lots with specific basis and holding periods — to control the character and amount of gain. Without specific identification, FIFO (first-in, first-out) is generally the default, often producing the worst tax result for long-term holders. Specific identification requires contemporaneous records and is one of the most impactful crypto tax decisions.

Staking, mining, and DeFi income

Staking rewards, mining proceeds, airdrops, and many DeFi yield sources are generally taxable as ordinary income at fair market value when received — not when sold. This creates a basis equal to the income recognized, and the later sale generates capital gain or loss. Failing to track this correctly creates double-taxation risk on later sales and substantial unreported ordinary income in the year of receipt.

NFTs

NFTs are property like other crypto, but those classified as “collectibles” under IRC § 408(m) may face the higher 28% federal capital gain rate that applies to collectibles — not the standard 15% or 20%. The IRS issued guidance in Notice 2023-27 indicating its intent to treat certain NFTs as collectibles based on a “look-through” test.

Foreign exchanges and FBAR

Crypto held on foreign exchanges may trigger FBAR reporting under 31 U.S.C. § 5314 and Form 8938 reporting under IRC § 6038D. Reporting requirements are evolving, but the safer approach is to assume any holding on a foreign-domiciled platform may trigger reporting, and to confirm with a tax professional. FBAR penalties are severe — substantial dollar penalties for non-willful failure, and dramatically larger penalties for willful failure.

Frequently Asked Questions

Q1. I already sold last year and got a big gain. Can I still do anything?

Most aggressive planning moves — 1031 exchanges, QSBS structuring, residency changes, installment sales — must be set up before closing. After closing, the options narrow to filing the return accurately, claiming every legitimate basis adjustment and selling cost, harvesting offsetting losses before year-end if any are available, and considering Qualified Opportunity Zone investments if you’re still within the 180-day window. None of those completely replace pre-sale planning, but well-executed post-sale work can still meaningfully reduce the bill.

Q2. How much can I expect to pay in taxes on a long-term capital gain?

Federal long-term capital gains are taxed at 0%, 15%, or 20% depending on your taxable income, with an additional 3.8% Net Investment Income Tax above certain thresholds. California adds its income tax on top — capital gains are taxed as ordinary income, currently up to 13.3%. So a high-income California seller with a long-term gain can face a combined federal-plus-state rate north of 37% before any deductions or planning. That number is the starting point, not the ending point — planning often reduces it substantially.

Q3. My CPA didn’t mention any of this when I sold. Should I get a second opinion?

If the sale was significant and you’re seeing tax results that surprise you, a second look is almost always worth the time. Look specifically at: the purchase price allocation on Form 8594; the basis calculation including all capitalized improvements and capitalized costs; depreciation recapture characterization; installment sale election eligibility; QSBS analysis if the company was a C-corp; and any state residency or sourcing issues. Each of those is a place where a different set of eyes finds errors or missed opportunities.

Q4. The IRS issued a CP2000 saying I underreported my crypto. What do I do?

Don’t pay the proposed amount without verifying. CP2000 notices on crypto are frequently inaccurate because the IRS receives 1099-B and Form 1099-DA data from exchanges showing gross proceeds without basis or holding period information. The IRS’s computer-generated proposal often treats every dollar of proceeds as gain, which is dramatically wrong if you actually had basis. The right response is to reconcile the actual transactions, prepare an accurate Schedule D and Form 8949, and respond with the corrected calculation — not to accept the proposed adjustment.

Q5. I want to do a 1031 exchange but I’ve already received the proceeds. Is it too late?

Yes. Once the seller receives or constructively receives the sale proceeds, the 1031 exchange is dead. The proceeds must go directly from the buyer to a Qualified Intermediary at closing, and the seller must not have access to the funds. This is a strict, technical requirement — not a guideline — and it is the single most common reason 1031 exchanges fail. The intermediary needs to be retained before the closing, not after.

Q6. Can I move to Texas, Nevada, or Florida before selling and avoid California state tax?

Possibly, with careful planning. California taxes residents on worldwide income and non-residents on California-source income. A genuine change of residence — not just a temporary move — changes which side of that line you’re on. The FTB applies an 18-factor analysis (centered on Revenue and Taxation Code § 17014) to determine residency, and they aggressively audit “move year” returns from departing high earners. Done right, it’s achievable. Done sloppily — keeping a California home, returning frequently, maintaining California professional licenses without coordination — it generates a residency audit and, often, a determination that the move wasn’t real for tax purposes.

Q7. I’m the seller in an installment sale. What if the buyer defaults?

Under IRC § 453B, repossession of property securing an installment obligation is generally not a fully taxable event — the seller takes the property back with a basis equal to the basis at original sale, plus gain already recognized, plus any subsequent reductions. The mechanics are technical and the rules differ between real estate and personal property. Sellers in installment sales should have the structure reviewed before signing, including the security arrangement, the default remedies, and the tax consequences of various default scenarios.

Q8. Is there a way to reduce the tax on a sale of a business by donating part of it to charity?

Yes — charitable planning before a sale is one of the most powerful and underused tools. Donating appreciated business interests, QSBS, or appreciated real estate to a qualified charity (or to a Donor-Advised Fund or Charitable Remainder Trust) before a sale can deliver a charitable deduction at fair market value while avoiding capital gain on the donated portion. The structure has to be in place before the sale becomes “certain” under the assignment-of-income doctrine, and the charity has to have actual control over the asset. Planned in advance, it is often a very efficient way to support causes you care about while substantially reducing the tax bill.

Q9. What about California real estate withholding?

California withholds 3 1/3% of the gross sales price on most California real estate transactions where the seller is not a California resident, under Revenue and Taxation Code § 18662. The withholding is credited against the actual tax owed when the seller files the California return for that year. Several exemptions and elections apply — principal residence, low-gain transactions, and an alternative election to withhold based on actual gain rather than gross proceeds, which is often dramatically lower. Sellers should confirm the withholding amount and the election before closing, not after.

The Mistakes That Make Sales More Expensive Than They Need to Be

Mistake 1: Closing the sale before doing any planning.

By the time the wire arrives, most planning options are gone. The single highest-leverage move on any meaningful sale is to engage tax planning months — ideally years — before the sale closes. The work you do in the planning window often dwarfs the work done after.

Mistake 2: Letting the buyer drive the purchase price allocation.

Form 8594 is negotiated. Sellers who don’t advocate for the allocation that suits their tax position routinely sign whatever the buyer’s side prepared, leaving substantial money on the table.

Mistake 3: Sloppy basis tracking.

Forgotten capital improvements, missed cost basis on inherited or gifted property (different rules for each), unrecorded partner contributions, and undocumented owner-funded business expenses all become permanent overpayments at sale time. Reconstructing basis at the closing is much harder than tracking it as you go.

Mistake 4: Missing the 45-day or 180-day 1031 deadlines.

Both are jurisdictional. The 45-day identification window and the 180-day exchange window cannot be extended for any reason except certain federally declared disaster relief. Hundreds of 1031 exchanges fail every year because of last-week sourcing of replacement property, deals that fall through, or simple calendar errors.

Mistake 5: Not tracking crypto cost basis at the time of the trade.

Crypto traders who reconstruct cost basis at year-end, from incomplete exchange records, after several wallet transfers, are often unable to support specific identification — forcing FIFO and substantially higher reported gains. Tracking at the time of the trade is dramatically easier than reconstructing later.

Mistake 6: Assuming foreign exchange or wallet activity is invisible.

It isn’t. The IRS has been receiving John Doe summons-driven data, exchange-reported information, and blockchain analytics for years. The “I didn’t think they’d know” defense doesn’t survive contact with reality. Compliance is dramatically cheaper than cleanup.

Mistake 7: Letting state tax surprises happen.

California, New York, and other high-tax states aggressively claim source income on real estate, business, and crypto activity tied to their states. Sellers who plan only for federal tax and assume the state side will follow routinely discover state liabilities they didn’t budget for.

Mistake 8: Hiring the wrong representative.

Sales of business interests, real estate, and crypto involve overlapping federal, state, and sometimes international rules. Tax preparers who don’t routinely handle sales transactions, residency planning, or crypto tax often miss the moves that matter. Asking a generalist to handle a sale of any complexity is one of the costliest false economies in tax practice.

How Mike Habib, a Federally Licensed Enrolled Agent, Helps

Mike Habib, an Enrolled Agent (EA), is a federally licensed tax practitioner with unlimited rights to represent taxpayers before the IRS in all 50 states under Treasury Department Circular 230. Mike is tested and licensed specifically on tax matters, and is required to maintain continuing education in tax law and ethics.

On a sale of a business, real estate, or significant crypto position, Mike Habib, EA helps clients in two phases — the planning phase before the sale closes, and the execution phase when the return is prepared and any IRS or state issues are addressed:

  • Reviewing the proposed transaction structure (asset vs. stock sale, allocation under IRC § 1060, installment sale terms) before the deal documents are signed.
  • Modeling the federal and California tax cost of alternative structures so the client sees the actual after-tax outcomes side by side.
  • Identifying QSBS eligibility under IRC § 1202 and rollover opportunities under IRC § 1045 for qualifying C-corp founders.
  • Coordinating 1031 exchanges with Qualified Intermediaries and managing the 45-day and 180-day deadlines for real estate sellers.
  • Evaluating Qualified Opportunity Zone investments within the 180-day rollover window for clients with significant capital gains.
  • Reviewing California residency planning before a sale, including the 18-factor analysis under FTB guidance and the documentation required to support a genuine change of residence.
  • Preparing accurate Schedule D, Form 8949, and Form 8594 filings, with careful attention to depreciation recapture, basis reconstruction, and selling cost capture.
  • Reconstructing crypto cost basis across multiple wallets and exchanges, electing specific identification where it produces the best result.
  • Defending CP2000 notices on crypto and securities sales when the IRS computer-generated proposal doesn’t reflect actual basis or holding period.
  • Coordinating FBAR (FinCEN Form 114) and Form 8938 reporting for crypto on foreign platforms or other foreign assets.
  • Coordinating with the FTB on California real estate withholding under R&TC § 18662 and on residency audits when they arise.
  • Structuring charitable giving — Donor-Advised Funds, Charitable Remainder Trusts, direct gifts of appreciated property — in advance of a sale where it serves the client’s philanthropic and tax goals.

Why Clients Choose My Firm, Mike Habib, EA

My firm, Mike Habib, EA, is a tax representation and planning practice based in Whittier, Los Angeles County, California, serving clients in all 50 states and Americans living overseas. I am a federally licensed Enrolled Agent with more than 20 years of experience handling complex tax planning, IRS and FTB representation, business sale transactions, real estate dispositions, and crypto tax compliance.

Before building this practice, I served as Controller at Xerox Corporation and Director of Finance at AEG. That corporate finance background means I read deal documents, purchase price allocations, K-1s, depreciation schedules, and basis calculations the way the IRS reads them — which makes a measurable difference when planning a sale, defending the resulting return, and coordinating the federal and state tax outcomes.

Clients who hire my firm work directly with me. Not a salesperson. Not a junior staff member. Not a rotating call center. The same Enrolled Agent who reviews your transaction in the planning phase prepares the return, signs the deliverables, and represents you with the IRS or FTB if any issue arises later.

If you are contemplating a sale of a business, a property, or a significant crypto position — or if a sale has already closed and you want a careful second look before the return goes in — the most valuable thing you can do today is start the conversation early. Visit myirstaxrelief.com or call my office at 1-562-204-6700. We can review the transaction, model the tax outcome under realistic alternatives, and — if you choose to engage — build a plan that protects what you’ve built.

badge
badge
badge
badge
badge
badge
Contact Information