Back to Blog
Tax FilingMay 3, 202623 min read

Form 4797 + AI Agent Skill: Sales of Business Property Guide 2026

Form 4797 + AI Agent Skill: Sales of Business Property Guide 2026

Hi, I'm Slava, CEO and co-founder of Jupid. Form 4797 is the tax form most small business owners discover the hard way — the year they sell a depreciated truck, replace a piece of equipment, or finally cash out of a rental property. Suddenly the depreciation deductions they took for years come back as ordinary income through "recapture", and a sale that felt like a simple gain becomes a multi-step calculation across three parts of the form. I see filers either skip the form entirely (and get a CP2000 nine months later) or report the whole gain as long-term capital gain (and overpay by thousands).

Official IRS resources: Form 4797 (PDF) · Instructions (PDF) · About Form 4797

If you sold business equipment, a rental building, a vehicle used for business, livestock, or any other property used in a trade or business, you don't report it on Schedule D or Form 8949 — you report it on Form 4797. The form splits gains and losses into three buckets: §1231 transactions in Part I, ordinary gains and losses in Part II, and depreciation recapture in Part III. The bucket determines whether the gain is taxed at ordinary rates (up to 37%) or long-term capital gain rates (0/15/20%).

This guide walks through the form's logic, explains §1231's "best of both worlds" treatment, breaks down §1245 and §1250 recapture with worked numbers, and ends with two end-to-end examples — one for a sole-prop landscaper selling a truck and one for a landlord selling a rental.

What Is Form 4797?

Form 4797 (officially "Sales of Business Property") reports gain or loss from the sale, exchange, or involuntary conversion of property used in a trade or business. It is the business-property counterpart to Form 8949 (which handles personal and investment property dispositions). Where Form 8949 deals with stocks, crypto, and personal capital assets, Form 4797 deals with assets you depreciated, took §179 on, or otherwise used to generate business income.

Legal basis: IRC §1231 governs the netting of gains and losses on business property held more than one year — net gains get long-term capital treatment, net losses get ordinary treatment ("best of both worlds"). IRC §1245 recaptures depreciation on personal property (equipment, vehicles, machinery) as ordinary income. IRC §1250 recaptures depreciation on real property (buildings) — though for property placed in service after 1986, only excess-over-straight-line depreciation triggers §1250 recapture, with the rest taxed at the unrecaptured §1250 gain rate (capped at 25%).

The form has four parts:

  • Part I — §1231 transactions held more than one year (most rental real estate, equipment, vehicles)
  • Part II — Ordinary gains and losses (assets held one year or less, plus inventory-like items)
  • Part III — §1245 / §1250 / §1252 / §1254 / §1255 recapture computation
  • Part IV — Recapture under §179 and §280F when business use drops to 50% or less

Net gain from Part I (after subtracting the recapture portion sent to Part II) flows to Schedule D Line 11 as long-term capital gain. A net loss from Part I flows to Form 1040 Line 8 as ordinary loss via Schedule 1 Line 4. Part II ordinary gains/losses go to Schedule 1 Line 4 directly.

Who Files Form 4797?

You file Form 4797 if, during the tax year, you:

  • Sold business equipment (machinery, computers, tools, furniture used in a business)
  • Sold a vehicle that was used for business (any business-use percentage)
  • Sold a rental property or other investment real estate held for productive use
  • Sold livestock, breeding animals, or farm equipment
  • Had business property destroyed by casualty or condemned (involuntary conversion)
  • Disposed of property when business use dropped below the §179 or §280F threshold (recapture year)
  • Sold a business as an asset sale (allocate proceeds across asset classes per Form 8594)

You don't file Form 4797 for:

  • Personal stock, ETF, mutual fund, or crypto sales — those go on Form 8949 / Schedule D
  • Sale of inventory in the ordinary course of business — that's gross receipts on Schedule C Line 1 (or Form 1125-A for corporations)
  • Sale of a primary residence with §121 exclusion — generally no form required if fully excluded
  • Like-kind exchange of real property — that's Form 8824 (different form, deferred gain)
  • Sale of partnership interest by a partner — that's Schedule D / Form 8949 with §751 hot-asset adjustment

If you're a sole proprietor, the gain or loss from Form 4797 is separate from your Schedule C net profit. The two interact only when there is §179 or §280F recapture (Part IV), and even then the recapture flows back through Form 4797 itself, not back to Schedule C.


Executive Summary: Form 4797 + Business Property 2026 Key Numbers

Item2025 / 2026 Value
Long-term holding period (§1231 eligibility)More than 1 year
§1245 recapture (personal property)Up to 100% of accumulated depreciation, taxed at ordinary rates
§1250 recapture (real property post-1986)Excess-over-straight-line only (rare for residential rental MACRS)
Unrecaptured §1250 gain rateMaximum 25% federal (IRC §1(h))
§1231 net gain treatmentLong-term capital gain (0/15/20%)
§1231 net loss treatmentOrdinary loss (offsets ordinary income with no $3,000 cap)
§1231 5-year lookback ruleNet §1231 gain is recharacterized as ordinary up to non-recaptured §1231 losses from prior 5 years
§179 recapture triggerBusiness use drops to 50% or less in any year before end of recovery period
§280F luxury vehicle recapture triggerBusiness use drops to 50% or less
Section 1202 QSBS exclusionUp to 100% gain exclusion (separate from §1231)
Maximum collectibles rate (§1(h))28% on long-term gain from collectibles

Legal basis: IRC §1231 (property used in trade or business), §1245 (recapture on §1245 property), §1250 (recapture on §1250 property), §1(h) (capital gain rate structure including 25% unrecaptured §1250 cap), §179 (recapture on disposition or business-use drop), §280F (luxury auto recapture), §1252/§1254/§1255 (specialty recapture for farmland, oil/gas, cost-share payments). Inflation-indexed §179 limits are set annually — 2025: $1,250,000 expensing cap (Rev. Proc. 2024-40); 2026 figure published by the IRS in late 2025, verify against the most recent Revenue Procedure.

The §1231 "best of both worlds" rule is the most important concept on the entire form. A net §1231 gain becomes long-term capital gain. A net §1231 loss becomes ordinary loss. There is no symmetry — and that asymmetry is intentional, designed to give business owners favorable treatment on appreciated business assets while preserving full ordinary deduction on losses.

The trap is the 5-year lookback. If you took an ordinary §1231 loss in any of the prior 5 years and didn't fully recapture it, this year's §1231 gain is recharacterized as ordinary up to the unrecaptured loss amount. This is reported on Line 8 of Part I.


Part I — §1231 Transactions (Held More Than One Year)

Part I handles every disposition of trade-or-business property held for more than one year that isn't inventory. Equipment, rental real estate, livestock held for breeding — they all start here.

Columns on Lines 2-6: description, date acquired, date sold, sales price, depreciation, cost basis, gain/loss. The depreciation column uses "allowed or allowable" — if you should have taken depreciation but didn't, the IRS still treats you as if you did. Failing to depreciate does not preserve basis; the deduction is lost AND the recapture remains.

  • Line 7 — Net of Lines 2 through 6, including K-1 §1231 amounts
  • Line 8 — 5-year lookback (non-recaptured prior §1231 losses); converts current §1231 gain to ordinary up to the lookback amount via Part II Line 12
  • Line 9 — Excess gain → Schedule D Line 11 as long-term capital gain. If Line 7 is a net loss, the loss flows to Part II Line 11 as ordinary

Part II — Ordinary Gains and Losses

Part II catches anything not §1231 long-term: property held one year or less (Line 10), §1231 losses from Line 7 (Line 11), §1231 gain recharacterized by lookback (Line 12), recapture from Part III (Line 13), and a few other ordinary items (Lines 14-17). Line 18 total flows to Schedule 1 Line 4 for individuals.

Part III — Depreciation Recapture Computation

Part III computes recapture for each disposed depreciable asset (4 properties per page).

  • Line 19 — Description
  • Line 20 — Sales price
  • Line 21 — Cost basis
  • Line 22 — Depreciation
  • Line 23 — Adjusted basis (21 − 22)
  • Line 24 — Total gain (20 − 23)
  • Line 25 — §1245 recapture (lesser of Line 24 or 25a)
  • Line 26 — §1250 recapture (excess-over-straight-line; generally $0 for post-1986 SL MACRS)
  • Lines 27-29 — §1252 (farmland), §1254 (oil/gas), §1255 (cost-share)
  • Line 31 — Total recapture
  • Line 32 — To Part II Line 13

The key flow: recapture is ordinary; residual (Line 24 − Line 32) goes back to Part I Line 6 as §1231 gain.

Part IV — §179 / §280F Recapture (Business Use Drops)

Part IV handles a different scenario: the property hasn't been sold, but business use has dropped to 50% or less before the end of the recovery period.

Section 179 lets you expense an asset's full cost in year 1 (within the annual cap). If business use later drops to ≤50%, the IRS recaptures the difference between §179 taken and what regular MACRS depreciation would have been. Section 280F does the same for listed property — passenger autos, certain vehicles.

  • Line 33 — §179 / §280F deduction previously taken
  • Line 34 — Recomputed MACRS depreciation
  • Line 35 — Recapture (Line 33 − Line 34), ordinary income

Part IV recapture flows to the form where the deduction was originally claimed (Schedule C Line 6 for sole props, NOT Part II of Form 4797). The recaptured amount adds back to basis for future depreciation.


Form 4797 flow showing Part I §1231, Part II ordinary, Part III recapture, and how totals roll to Schedule D and Form 1040

§1245 vs §1250: Why Personal Property and Real Property Are Different

The most confusing aspect of Form 4797 is that two similar properties — a $50,000 truck and a $50,000 building improvement — get completely different recapture treatment.

§1245 property (personal property): equipment, vehicles, machinery, furniture, and most amortizable intangibles. Full recapture — every dollar of accumulated depreciation up to the realized gain is recaptured as ordinary income.

§1250 property (real property): buildings, structural components, land improvements with a recovery period over 15 years. For property placed in service after 1986 under MACRS straight-line depreciation, §1250 recapture is effectively zero because there is no "excess over straight-line" — MACRS already requires straight-line for real property. Instead, the depreciation portion of the gain is taxed as unrecaptured §1250 gain, capped at a 25% federal rate under IRC §1(h)(1)(E).

Aspect§1245 (Equipment)§1250 (Real Property post-1986)
Recapture rateOrdinary (up to 37%)Up to 25% (unrecaptured §1250)
Recapture amountFull accumulated depreciationGenerally $0 (already straight-line)
Path on Form 4797Part III Line 25 → Part II Line 13Part III Line 26, but Line 32 recapture often $0; gain flows back to Part I as §1231
Capital gain treatment for residualYes, residual gain is §1231Yes, residual is §1231; depreciation portion taxed at 25% via Schedule D Unrecaptured §1250 Worksheet

For a sole-prop selling a truck, every dollar of depreciation comes back as ordinary income. For a landlord selling a rental, the depreciation comes back as 25% (a meaningful preference over ordinary), and the appreciation above original basis gets long-term capital gain treatment (0/15/20%).


Worked Example #1: Marcus, Sole-Prop Landscaper Sells a Truck

Persona. Marcus is a sole-prop landscaper who bought a Ford F-250 for $35,000 on January 5, 2021 (100% business use). He took $28,000 in depreciation across 2021-2024 (§179 + bonus + MACRS combined). On August 14, 2025 he sold for $22,000.

ItemValue
Original cost$35,000
Accumulated depreciation$28,000
Adjusted basis$7,000
Sales price$22,000
Realized gain$15,000

Step 2 — Apply §1245 recapture.

The truck is §1245 property (personal property used in business). §1245 recaptures the lesser of (a) realized gain or (b) accumulated depreciation:

§1245 recapture = lesser of:
  (a) $15,000 realized gain
  (b) $28,000 accumulated depreciation

§1245 recapture = $15,000 (the smaller number)
Residual §1231 gain = $15,000 − $15,000 = $0

The entire $15,000 gain is ordinary. There is no §1231 gain remaining because depreciation taken ($28,000) exceeds the realized gain ($15,000).

Step 3 — Fill in Part III, then route to Part II.

Part III LineFieldValue
19DescriptionFord F-250 (business vehicle)
20Gross sales price$22,000
21Cost or other basis$35,000
22Depreciation allowed or allowable$28,000
23Adjusted basis (21 − 22)$7,000
24Total gain (20 − 23)$15,000
25aDepreciation allowed for §1245$28,000
25bRecapture (lesser of 24 or 25a)$15,000
32Recapture to Part II Line 13$15,000

Step 4 — Part II rollup.

Part II LineFieldValue
13Recapture from Part III Line 32$15,000
18Total ordinary gain$15,000

Step 5 — Flow to Form 1040.

The $15,000 ordinary gain flows to Schedule 1 Line 4Form 1040 Line 8. Marcus pays ordinary income tax at his marginal bracket. Self-employment tax does NOT apply — Form 4797 gains are excluded from SE income under IRS Reg. §1.1402(a)-6.

At a 24% marginal bracket: $15,000 × 24% = $3,600 federal, $0 SE tax. If Marcus had used the truck only 60% for business, only the business-use portion of basis, depreciation, and proceeds flows through Form 4797 — the personal-use 40% goes on Form 8949 (gain taxable, loss not deductible).


Worked Example #2: Linda, Landlord Sells an 8-Year Rental

Persona. Linda bought a single-family rental for $300,000 on June 1, 2017 ($60,000 to land, $240,000 to building). She took straight-line MACRS over 8.5 years totaling $74,182. She sold the property on December 15, 2025 for $450,000 (net of $20,000 selling expenses = $430,000).

ItemValue
Adjusted basis ($300K − $74,182 dep)$225,818
Net sales price$430,000
Realized gain$204,182

Step 2 — Apply §1250 (real property post-1986).

Because Linda used straight-line MACRS (the only allowable method for residential rental real estate placed in service after 1986), there is no excess-over-straight-line depreciation. Therefore:

§1250 recapture (Line 26g) = $0 (no excess over straight-line)
Unrecaptured §1250 gain     = $74,182 (depreciation portion)
Residual §1231 gain         = $204,182 − $74,182 = $130,000 (appreciation above original basis)

The full $204,182 stays in §1231 (Part I), but the $74,182 depreciation portion is tracked separately as unrecaptured §1250 gain on the Schedule D Unrecaptured §1250 Gain Worksheet, where it is taxed at a maximum 25% rate.

Step 3 — Fill in Part III, then route gain back to Part I.

Part III LineFieldValue
19DescriptionRental at 123 Maple St
20Gross sales price (net of selling exp)$430,000
21Cost basis$300,000
22Depreciation allowed or allowable$74,182
23Adjusted basis$225,818
24Total gain$204,182
26aAdditional depreciation post-1975$0 (straight-line only)
26g§1250 recapture$0
32Recapture to Part II Line 13$0

The full $204,182 returns to Part I Line 6 as §1231 gain.

Step 4 — Part I rollup.

Part I LineFieldValue
6§1231 gain from Part III$204,182
7Net §1231 gain$204,182
85-year lookback recapture$0 (no prior §1231 losses)
9Long-term capital gain to Schedule D Line 11$204,182

Step 5 — Flow to Schedule D and the Unrecaptured §1250 Worksheet.

The full $204,182 lands on Schedule D Line 11. The Unrecaptured §1250 Gain Worksheet (Schedule D instructions) splits it:

Unrecaptured §1250 portion (taxed at max 25%): $74,182
Pure long-term capital gain (taxed 0/15/20%):  $130,000
Total long-term gain:                          $204,182

What Linda owes (MFJ in the 15% LTCG bracket):

Unrecaptured §1250 (capped at 25%):    $74,182 × 25%  = $18,545
Long-term capital gain at 15%:         $130,000 × 15% = $19,500
NIIT 3.8% (MAGI > $250K MFJ):          $204,182 × 3.8% = $7,759
Total federal:                                          ≈ $45,804

The 25% cap on unrecaptured §1250 gain matters most for filers in 32%+ ordinary brackets. The $130,000 appreciation portion gets full 0/15/20% LTCG treatment — the heart of why depreciable rental real estate is a tax-favored investment.


Common Mistakes

Mistake #1: Reporting a business asset sale on Form 8949 instead of Form 4797

Problem: Filer sells equipment used in their Schedule C business and lists it on Form 8949 with personal stock and crypto trades.

Impact: Depreciation recapture (which should be ordinary income) gets reported as long-term capital gain. The IRS catches the mismatch via prior-year Schedule C depreciation and issues a CP2000.

Solution: Business-use property — equipment, vehicle, rental, livestock — goes on Form 4797, not Form 8949.

Mistake #2: Forgetting "depreciation allowed or allowable"

Problem: Filer never claimed (or under-claimed) depreciation on a rental and assumes there's nothing to recapture at sale.

Impact: IRC §1016(a)(2) requires basis to be reduced by allowed-or-allowable depreciation. The lost deduction is not preserved as basis — it's a double loss.

Solution: File Form 3115 for a §481(a) catch-up adjustment before selling. Recovers the lost deductions and aligns basis with the recapture computation.

Mistake #3: Skipping the 5-year lookback on Line 8

Problem: Filer has a §1231 gain this year and reports the full amount as LTCG, ignoring an unrecaptured §1231 loss from a prior year.

Impact: Current gain should have been recharacterized as ordinary up to the prior unrecaptured loss. The IRS computer cross-checks prior Line 7 amounts and issues a notice.

Solution: Pull the last 5 years of Form 4797. Sum net §1231 losses, subtract any prior recapture, enter the unrecaptured balance on Line 8. The recharacterized portion flows to Part II Line 12.

Mistake #4: Treating a §1245/§1250 mixed-asset sale as one number

Problem: Filer sells a rental bundled with appliances, carpets, and HVAC equipment for one lump price. Reports the entire gain as §1250 real property at the 25% cap.

Impact: Appliances and removable equipment are §1245 personal property — fully ordinary recapture. Reporting them as §1250 understates ordinary income; cost-segregated components (if used) make this worse.

Solution: Allocate the sales price across asset classes (Form 8594 for business sales). Apply §1245 recapture to personal property items separately from §1250 on the building.

Mistake #5: Missing §179 / §280F recapture when business use drops

Problem: Filer takes §179 on a $40,000 truck in Year 1 (100% business use), drops business use to 40% in Year 3, and reports nothing because the truck wasn't sold.

Impact: IRC §179(d)(10) and §280F(b)(2) trigger recapture when business use drops to ≤50% before the recovery period ends, even without a sale. The IRS catches this by comparing business-use percentages on prior Forms 4562.

Solution: Complete Part IV of Form 4797. The recapture amount goes to Schedule C Line 6 (for sole props), and the recaptured amount adds back to basis.


How Jupid AI Helps with Form 4797

Tracking depreciation across business assets, keeping basis records straight, and remembering §1231 lookback losses years later is the bookkeeping that quietly creates tax surprises at sale. Jupid handles the asset tracking through your bank connection — every business asset purchase, every depreciation deduction, every prior-year §1231 loss is in one timeline.

What Jupid does for business property tracking:

Bank connection + auto-categorization with 95.9% accuracy — Asset purchases over $2,500 are flagged as depreciable. Business vehicle expenses and improvements get tagged automatically.

Depreciation memory across years — §179 and bonus depreciation taken in prior years stays attached to the asset record. When you sell, the recapture math is already computed.

§1231 lookback alert — Take a §1231 loss and Jupid notes the year and amount. The next time you have a §1231 gain, the AI accountant surfaces the lookback recharacterization automatically.

Chat with your AI accountant — Ask "If I sell my truck for $22K, what's the tax hit?" and get a clean breakdown: adjusted basis, §1245 recapture, ordinary income at your marginal rate, total tax liability.

Try Jupid →


Action Checklist: Filing Form 4797

Before tax season

  • Pull every Form 4562 (depreciation schedule) you've filed since acquiring each business asset
  • Reconstruct accumulated depreciation per asset (allowed-or-allowable applies — don't skip lost deductions)
  • Pull HUD-1 / settlement statements for any real property dispositions
  • Check the last 5 years of Form 4797s for any net §1231 losses (lookback rule on Line 8)
  • Identify §1245 vs §1250 character per disposed asset
  • If §179 or bonus was taken, verify business use stayed above 50% (otherwise Part IV applies)

When filling out the form

  • Sort dispositions by holding period (more than 1 year → Part I; 1 year or less → Part II Line 10)
  • Sort by depreciable status — depreciable items go through Part III computation first
  • Compute Part III recapture column-by-column for each property
  • Apply 5-year lookback on Line 8 of Part I
  • Verify Part III Line 32 sums correctly to Part II Line 13
  • Verify residual §1231 gain (Total gain − recapture) flows back to Part I Line 6

Cross-form reconciliation

  • Part I Line 9 long-term gain → Schedule D Line 11
  • Part II Line 18 ordinary gain/loss → Schedule 1 Line 4 → Form 1040 Line 8
  • Part IV §179 recapture → Schedule C Line 6 (Other income) for sole prop
  • Unrecaptured §1250 gain → Schedule D Unrecaptured §1250 Gain Worksheet
  • If installment sale → coordinate with Form 6252
  • If like-kind exchange → use Form 8824 instead (different form)

Resources and Citations

IRS Forms and Instructions

  • Form 4797 — Sales of Business Property
  • Instructions for Form 4797 — Line-by-line guidance with recapture computations
  • About Form 4797 — IRS landing page with revisions history
  • Form 4562 — Depreciation and Amortization (the source of the depreciation column)
  • Form 8824 — Like-Kind Exchanges (deferral path, distinct from 4797)
  • Form 6252 — Installment Sale Income (when 4797 disposition is on an installment plan)
  • Schedule D (Form 1040) — Capital Gains and Losses (where Part I §1231 gain rolls up)

IRS Publications

Tax Code References

  • IRC §1231 — Property used in the trade or business (best of both worlds)
  • IRC §1245 — Gain from dispositions of certain depreciable property (full ordinary recapture)
  • IRC §1250 — Gain from dispositions of certain depreciable realty (excess-over-straight-line recapture)
  • IRC §1252/§1254/§1255 — Specialty recapture for farmland, oil/gas, cost-share payments
  • IRC §1(h)(1)(E) — 25% maximum rate on unrecaptured §1250 gain
  • IRC §179(d)(10) — Recapture when business use drops below 50%
  • IRC §280F(b)(2) — Listed property recapture
  • IRC §1016(a)(2) — Adjusted basis using "allowed or allowable" depreciation
  • IRC §453 — Installment method (when applicable)
  • IRS Reg. §1.1402(a)-6 — Form 4797 gains excluded from self-employment income
  • Rev. Proc. 2024-40 — Section 179 limit for tax year 2025 ($1,250,000); 2026 figure published late 2025, verify against the most recent Revenue Procedure

Final Thoughts

Form 4797 is the form that quietly determines whether selling a business asset produces a 30% federal tax bill or a 15% one. The mechanics aren't hard — what's hard is keeping multi-year basis and depreciation records intact long enough to compute recapture correctly, and remembering the §1231 5-year lookback when an old loss meets a new gain.

Three things make filing easy or painful:

  1. Clean depreciation history per asset — every Form 4562 since acquisition, accumulated correctly
  2. Right character classification — §1245 vs §1250 vs ordinary, applied at the right line
  3. Lookback awareness — prior §1231 losses recharacterize current §1231 gains

Most filers either skip Form 4797 entirely or treat all gain as long-term capital. Solve the bookkeeping during the years you own the asset and the form fills itself out at sale.

Use This with Your AI Agent

If you're using Claude, ChatGPT, or another AI agent to help fill out Form 4797, we've published an open-source skill that gives the agent exact line-by-line instructions, validation checks, ask-don't-guess prompts, and worked examples — the same logic Jupid uses internally.

jupid-tax/jupid-skills on GitHub — forms/form-4797/SKILL.md

For Claude Code: cp -r jupid-skills/forms/form-4797 ~/.claude/skills/. For the Anthropic SDK, load SKILL.md into the system prompt and the references/ files on demand. For browser-automation runtimes, filing.md covers the e-file or paper-file workflow.



Disclaimer

This article provides general information about Form 4797 and the taxation of business property dispositions. It is not tax advice and does not establish a CPA-client relationship. Tax laws change frequently, and individual circumstances vary significantly — particularly around cost segregation, partnership/S-corp K-1 §1231 items, installment sales, and §1031 like-kind exchanges. For advice specific to your situation, consult a qualified tax professional.

Tax Year: 2026 (covering 2025 dispositions) Last Updated: April 28, 2026

Ready to simplify your finances?

Join 1,000+ businesses using Jupid to save time and money. Start simplifying your finances today.

30-day money-back guarantee