
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.
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:
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.
You file Form 4797 if, during the tax year, you:
You don't file Form 4797 for:
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.
| Item | 2025 / 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 rate | Maximum 25% federal (IRC §1(h)) |
| §1231 net gain treatment | Long-term capital gain (0/15/20%) |
| §1231 net loss treatment | Ordinary loss (offsets ordinary income with no $3,000 cap) |
| §1231 5-year lookback rule | Net §1231 gain is recharacterized as ordinary up to non-recaptured §1231 losses from prior 5 years |
| §179 recapture trigger | Business use drops to 50% or less in any year before end of recovery period |
| §280F luxury vehicle recapture trigger | Business use drops to 50% or less |
| Section 1202 QSBS exclusion | Up 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 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.
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 computes recapture for each disposed depreciable asset (4 properties per page).
The key flow: recapture is ordinary; residual (Line 24 − Line 32) goes back to Part I Line 6 as §1231 gain.
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.
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.
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 rate | Ordinary (up to 37%) | Up to 25% (unrecaptured §1250) |
| Recapture amount | Full accumulated depreciation | Generally $0 (already straight-line) |
| Path on Form 4797 | Part III Line 25 → Part II Line 13 | Part III Line 26, but Line 32 recapture often $0; gain flows back to Part I as §1231 |
| Capital gain treatment for residual | Yes, residual gain is §1231 | Yes, 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%).
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.
| Item | Value |
|---|---|
| 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 Line | Field | Value |
|---|---|---|
| 19 | Description | Ford F-250 (business vehicle) |
| 20 | Gross sales price | $22,000 |
| 21 | Cost or other basis | $35,000 |
| 22 | Depreciation allowed or allowable | $28,000 |
| 23 | Adjusted basis (21 − 22) | $7,000 |
| 24 | Total gain (20 − 23) | $15,000 |
| 25a | Depreciation allowed for §1245 | $28,000 |
| 25b | Recapture (lesser of 24 or 25a) | $15,000 |
| 32 | Recapture to Part II Line 13 | $15,000 |
Step 4 — Part II rollup.
| Part II Line | Field | Value |
|---|---|---|
| 13 | Recapture from Part III Line 32 | $15,000 |
| 18 | Total ordinary gain | $15,000 |
Step 5 — Flow to Form 1040.
The $15,000 ordinary gain flows to Schedule 1 Line 4 → Form 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).
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).
| Item | Value |
|---|---|
| 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 Line | Field | Value |
|---|---|---|
| 19 | Description | Rental at 123 Maple St |
| 20 | Gross sales price (net of selling exp) | $430,000 |
| 21 | Cost basis | $300,000 |
| 22 | Depreciation allowed or allowable | $74,182 |
| 23 | Adjusted basis | $225,818 |
| 24 | Total gain | $204,182 |
| 26a | Additional depreciation post-1975 | $0 (straight-line only) |
| 26g | §1250 recapture | $0 |
| 32 | Recapture 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 Line | Field | Value |
|---|---|---|
| 6 | §1231 gain from Part III | $204,182 |
| 7 | Net §1231 gain | $204,182 |
| 8 | 5-year lookback recapture | $0 (no prior §1231 losses) |
| 9 | Long-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.
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.
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.
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.
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.
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.
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.
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:
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.
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
Join 1,000+ businesses using Jupid to save time and money. Start simplifying your finances today.
30-day money-back guarantee