How to Fill Out IRS Form 4797 (w/Examples) + FAQs

Yes, you must file IRS Form 4797 any year you sell, exchange, or involuntarily dispose of property used in a trade or business, and the form decides whether your gain is taxed at low capital gains rates or high ordinary rates. Skipping it or filing it wrong can trigger an IRS underreporter notice (CP2000), back taxes, a 20% accuracy-related penalty under IRC §6662, and interest that compounds daily.

The stakes are bigger than most filers realize. The IRS estimates the annual gross tax gap at about $696 billion, and misreported business property sales make up a large slice of that miss because depreciation recapture rules under IRC §1245 and IRC §1250 are easy to fumble.

Here is what you will learn in this guide:

  • 📋 How every line of all four parts of Form 4797 works for the 2025 tax year
  • 🏠 How to handle real estate, equipment, livestock, and Section 179 property the right way
  • 🧮 How to compute depreciation recapture without overpaying or underpaying tax
  • ⚖️ How Section 1231 gives you the best of both worlds (capital gain up, ordinary loss down)
  • 🚨 How to avoid the seven most costly mistakes that draw IRS audit attention

What Form 4797 Is and Who Must File It

Form 4797, Sales of Business Property, is the IRS form that reports gains and losses from the sale, exchange, or involuntary conversion of property used in a trade or business or held to produce rental income. The form was created to separate business property from personal capital assets, because Congress wrote different tax rules for each in the Internal Revenue Code. You do not use Form 4797 for stocks, your personal home, or collectibles. Those go on Schedule D and Form 8949 instead.

You must file Form 4797 if you sold or disposed of any of the following during the tax year. The list comes straight from the 2025 Form 4797 instructions.

  • Real property used in a trade or business, like a rental duplex or a warehouse
  • Depreciable or amortizable tangible business property, like trucks, machinery, or office furniture
  • Oil, gas, geothermal, or other mineral interests
  • Livestock held for draft, breeding, dairy, or sporting purposes (not inventory)
  • Unharvested crops sold with land
  • Section 1231 property held more than one year
  • Property for which you took the Section 179 expense deduction and later converted to personal use

The consequence of skipping Form 4797 is severe. The IRS will reclassify your gain as ordinary income, kill any capital gain treatment, and may add a Section 6662 accuracy penalty of 20% of the underpayment. A common misconception is that you can just put a business equipment sale on Schedule D. You cannot, because Schedule D does not handle depreciation recapture, and the IRS computer-matching program flags the mismatch with your prior depreciation deductions almost every time.

Why the Form Exists

Congress wanted business owners to take a fair tax rate on real economic gain, while clawing back depreciation deductions that already saved tax dollars. That balance is why Form 4797 has four separate parts. Each part captures a different slice of the gain. The plain-English idea is simple: any gain that just makes up for past depreciation gets taxed as ordinary income, and any gain above that line may qualify for capital gain rates. The consequence of ignoring the split is real money. A taxpayer in the 37% ordinary bracket who treats a $50,000 recapture amount as long-term capital gain saves nothing legally, and faces a roughly $8,500 tax shortfall plus penalty. A common myth is that holding property longer wipes out recapture. It does not. Time-of-holding only changes Section 1231 treatment, never the recapture amount.

Who Files Which Return

Sole proprietors attach Form 4797 to Form 1040. Partnerships file it with Form 1065 and pass through the character of the gain on Schedule K-1. S corporations file it with Form 1120-S. C corporations file it with Form 1120. Trusts and estates use Form 1041. The consequence of attaching the form to the wrong return is processing delay, mismatched K-1 reporting, and possible amended-return work. A real-world example: Maria, an LLC member taxed as a partnership, mistakenly reported a tractor sale on her personal Schedule D. Her partnership had to file an amended 1065 and reissue K-1s, costing her preparer fees and a late notice.

The Four Parts of Form 4797 Explained

Form 4797 has four parts, and each one handles a different kind of business property gain or loss. The form looks scary, but the logic is clean once you know what each part does. Read every part heading on the official 2025 form PDF before you start filling it in.

Part I: Section 1231 Property Held More Than One Year

Part I reports sales and exchanges of Section 1231 property that you held longer than one year, after removing any depreciation recapture that flows in from Part III. Section 1231 is the sweet spot of the tax code. Net gains here become long-term capital gains, taxed at 0%, 15%, or 20% federal rates plus the 3.8% Net Investment Income Tax where it applies. Net losses here become ordinary losses, fully deductible against wages, interest, and other ordinary income. The consequence of missing Part I is huge, since reporting a Section 1231 loss on the wrong line could cap your deduction at $3,000 like a capital loss instead of letting you take the full amount. A common misconception is that Section 1231 covers all business assets. It does not. Inventory, accounts receivable, and short-held property are excluded.

Part II: Ordinary Gains and Losses

Part II reports gains and losses that are always ordinary, no matter how long you held the property. This includes property held one year or less, ordinary recapture from Part III that does not get the Section 1231 treatment, and certain abandonment losses. Ordinary gain from Part II flows to Schedule 1, line 4 of your Form 1040. The consequence of dropping a short-held asset into Part I instead of Part II is that you wrongly grab capital gain treatment, which the IRS will spot through holding-period checks. A real-world example: Jamal sold a forklift after 10 months. The gain belongs in Part II as ordinary income because the holding period failed the one-year Section 1231 rule.

Part III: Recapture Under Sections 1245, 1250, 1252, 1254, and 1255

Part III is the depreciation-recapture engine of Form 4797, and it is where most filers slip up. You compute the gain on each asset, then split it into a recapture piece (taxed as ordinary income) and any remaining gain (which flows up to Part I as Section 1231 gain). The recapture rules differ by code section. Section 1245 applies to personal property like equipment and recaptures all prior depreciation as ordinary. Section 1250 applies to real property and only recaptures depreciation in excess of straight-line, which for most modern real estate is zero, but the unrecaptured Section 1250 gain still gets taxed at a maximum 25% rate. The consequence of skipping Part III is that you lose the ordinary-rate slice and may face a substantial understatement penalty. A common myth is that Section 1250 recapture is dead. It is not. The 25% rate on unrecaptured Section 1250 gain is alive and well in 2025.

Part IV: Recapture Under Sections 179 and 280F(b)(2)

Part IV handles recapture when business use of Section 179 property or listed property drops to 50% or less before the end of the recovery period. The recapture amount is the prior expense or accelerated depreciation minus what straight-line would have allowed. That number flows to the same form or schedule where you originally took the deduction, like Schedule C, F, or the partnership return. The consequence of ignoring Part IV is a deferred tax bomb, since the IRS can audit any year that contained the unreported recapture, and it ties recapture to the year business use dropped, not the year you remember it. A real-world example: Priya expensed a $40,000 SUV at 100% business use in 2023. In 2025 her business use fell to 30%. She must file Part IV in 2025 and add roughly $24,000 of ordinary income to her Schedule C.

Step-by-Step: How to Fill Out Each Line

Working the form line by line keeps you out of trouble. Pull your fixed-asset register, your prior Form 4562 depreciation schedules, and your closing statements before you start.

Header Information

Enter the filer’s name and identifying number exactly as it appears on the main return. On the line that asks about like-kind exchanges or installment sales, check the box if any reported gain came from Form 6252 or Form 8824 flow-through. The consequence of leaving the header blank or wrong is a mismatched return that the IRS may reject electronically. A common misconception is that the header does not matter for paper filers. It does, because IRS scanning software pulls the EIN or SSN from there. David, a sole proprietor, once filed without his SSN on Form 4797, and the IRS held his refund for 11 weeks while it matched the form by hand.

Part I, Lines 2 Through 9

Line 2 lists each Section 1231 property sold, with description, dates acquired and sold, gross sales price, depreciation, cost or other basis, and the gain or loss. Line 3 brings in any net gain from involuntary conversions reported on Form 4684. Line 4 brings in installment-sale gain from Form 6252. Line 5 brings in like-kind exchange gain from Form 8824. Line 6 picks up Section 1231 gain from partnerships and S corps via your Schedule K-1. Line 7 sums everything and runs the five-year nonrecaptured Section 1231 loss lookback under §1231(c). If you had a net Section 1231 loss in any of the prior five years, that amount of current gain converts back to ordinary on line 8 and flows to Part II line 12. Line 9 is the remaining net Section 1231 gain that becomes long-term capital gain on Schedule D. The consequence of missing the lookback is one of the most frequent IRS adjustments, because the IRS keeps a five-year history of your Section 1231 losses.

Part II, Lines 10 Through 18

Line 10 lists each ordinary-income property sold, including any short-held assets. Line 11 picks up any loss from line 7 that was a Section 1231 net loss (ordinary). Line 12 picks up the recapture from the lookback rule. Line 13 brings in gain from Part III line 32. Line 14 brings in Form 4684 ordinary-loss items. Line 15 brings in Form 6252 ordinary-income installment gain. Line 16 brings in Form 8824 like-kind exchange ordinary income. Line 17 sums all of Part II. Line 18 carries the net to Schedule 1 line 4 for individuals, or to the entity return for partnerships and corporations. The consequence of misrouting line 18 is double counting or omitted income. A real-world example: Ana listed her recapture twice, on Part II and on Schedule 1 separately, and overpaid her tax by $4,300 before catching it on review.

Part III, Lines 19 Through 32

Part III asks you to list up to four properties (A, B, C, D) across the columns. Line 20 is the gross sales price. Line 21 is the cost or other basis plus expenses of sale. Line 22 is depreciation allowed or allowable. Line 23 is the adjusted basis (line 21 minus line 22). Line 24 is the total gain (line 20 minus line 23). Lines 25 through 29 then run the recapture math for each section: 25 for Section 1245, 26 for Section 1250, 27 for Section 1252 farmland, 28 for Section 1254 oil and gas, and 29 for Section 1255 cost-sharing. Line 30 totals the gains. Line 31 totals the recapture portions, which flow to Part II line 13. Line 32 is the residual that flows up to Part I line 6 as Section 1231 gain. The consequence of fumbling line 22 is the most common Form 4797 error, because filers forget to include depreciation that was allowable even if not actually claimed. The IRS still reduces your basis by allowable depreciation under Treas. Reg. §1.1016-3.

Part IV, Lines 33 Through 35

Line 33 is the Section 179 expense or bonus depreciation originally claimed plus any other accelerated depreciation. Line 34 is the depreciation that would have been allowed under straight-line for the same period. Line 35 is the recapture (line 33 minus line 34). That number flows to the same schedule where you took the original deduction. The consequence of missing Part IV is interest and penalty back to the year business use dropped, plus possible loss of future Section 179 eligibility. A common misconception is that selling the asset triggers Part IV. It does not. Selling the asset triggers Part III. Part IV is triggered by a business-use drop below 50%.

Three Common Scenarios With Tax Outcomes

The three scenarios below cover the property types that fill most Form 4797 filings. Each table shows the move and its tax outcome.

Scenario 1: Sole Proprietor Sells a Delivery Truck

Carlos runs a flower shop and sells a delivery van he bought in 2021 for $45,000. He took $38,000 of depreciation, sells for $20,000 in 2025, and held it more than one year.

Filing Move Tax Outcome
Reports $13,000 gain on Part III line 24 Correct, since adjusted basis is $7,000
Recaptures full $13,000 as Section 1245 ordinary on line 25 All gain is ordinary, no Section 1231 benefit, since gain is less than depreciation
Carries $13,000 to Part II line 13, then to Schedule 1 line 4 Tax at his marginal ordinary rate, no capital gain rate available

Scenario 2: Landlord Sells a Rental Duplex

Linda sells a rental duplex she bought in 2010 for $300,000 and depreciated by $90,000 using straight-line. She sells in 2025 for $500,000.

Filing Move Tax Outcome
Reports $290,000 gain on Part III line 24 Adjusted basis is $210,000, so total gain is correct
Treats $90,000 as unrecaptured Section 1250 gain Taxed at maximum 25% federal rate, not full ordinary
Treats remaining $200,000 as Section 1231 long-term capital gain on Part I line 9 Taxed at 15% or 20%, possibly plus 3.8% NIIT

Scenario 3: Farmer Sells Breeding Cattle

Tom raises beef cattle and sells 12 breeding cows in 2025 for $24,000. He held them three years and took no depreciation because they were raised, not purchased.

Filing Move Tax Outcome
Reports the sale on Part I line 2 as Section 1231 livestock Qualifies under IRC §1231(b)(3) since cattle held 24+ months
Skips Part III entirely No depreciation taken means no recapture
Net Section 1231 gain flows to Schedule D as long-term capital gain Lower tax rate than ordinary, big savings versus selling cull cows from inventory

Named Examples That Anchor the Rules

Real names make abstract rules stick. The four examples below show how Form 4797 plays out in practice for very different taxpayers.

Example: Rachel and the Section 179 Recapture

Rachel owns a graphic-design S corp. In 2023 she expensed a $30,000 photo printer 100% under Section 179. In 2025 her studio cuts business use to 40%. Rachel must file Part IV in 2025. She compares the $30,000 immediate write-off to the depreciation she would have taken under MACRS straight-line over five years (about $11,000 by end of 2025). The recapture is roughly $19,000, added to her S corp ordinary income on Form 1120-S and passed through on her K-1.

Example: Marcus and the Section 1231 Lookback

Marcus sold a piece of rental land at a $40,000 loss in 2022. In 2025 he sells a different rental at a $60,000 gain. His 2022 loss was an ordinary Section 1231 loss. The five-year lookback in §1231(c) forces $40,000 of his 2025 gain to be ordinary on Part II. Only the remaining $20,000 gets long-term capital gain treatment on Part I.

Example: Sofia and the Installment Sale

Sofia sells her bakery’s commercial mixer in 2025 for $25,000 with $5,000 down and four annual installments. She uses Form 6252 and feeds the recognized installment gain into Form 4797. The depreciation recapture under Section 1245 is reported in the year of sale in full, which is a critical installment-method exception.

Example: Greg and the Like-Kind Exchange

Greg exchanges a strip mall worth $1.2 million for a like-kind office building worth $1 million plus $200,000 cash boot. He files Form 8824 for the deferral and Form 4797 for the boot-driven recognized gain. Section 1250 unrecaptured gain on the boot still gets taxed at 25%.

Mistakes to Avoid on Form 4797

The mistakes below are the ones the IRS finds most often when it audits Schedule C, E, F, and entity returns with business property sales.

  • Forgetting depreciation that was allowable but never claimed, which still reduces basis under Treas. Reg. §1.1016-3 and inflates your reported gain
  • Skipping the five-year Section 1231 lookback, the most common IRS computer match flag for this form
  • Putting short-held assets in Part I instead of Part II, which wrongly claims capital gain treatment
  • Treating Section 1245 equipment recapture as capital gain, which the IRS reverses every time
  • Ignoring Section 179 recapture when business use drops below 50%
  • Missing unrecaptured Section 1250 gain on real estate sales, costing the 25% cap rate or overpaying as ordinary
  • Reporting a personal-use vehicle on Form 4797 even though it was never business property
  • Filing the form on Schedule D when business property requires Form 4797
  • Forgetting to attach Form 4562 detail when the IRS asks how depreciation was computed
  • Double-counting recapture on both Part II and Schedule 1
  • Skipping the 3.8% NIIT on rental property gains for higher-income taxpayers

The consequence of any one of these is back tax, interest from the original due date, and a Section 6662 accuracy penalty equal to 20% of the underpayment.

Do’s and Don’ts for Form 4797

The list below sets the rules every Form 4797 filer should follow, with a short reason behind each one.

  • Do pull your full Form 4562 history before you start, because the form depends on accurate prior depreciation
  • Do track holding periods to the day, because the one-year cutoff for Section 1231 is strict under IRC §1231(b)
  • Do check the Section 1231 lookback against your last five returns, since the rule is automatic
  • Do keep closing statements, since the IRS often asks for sales price and basis backup
  • Do match your K-1 entries to partnership and S corp Form 4797 line items
  • Don’t treat depreciation recapture as capital gain, because IRC §1245 overrides
  • Don’t mix personal-use property into Form 4797
  • Don’t skip Part IV when business use drops, because the recapture year is the use-drop year
  • Don’t forget Form 6252 if any part of the sale is on installment
  • Don’t assume state tax follows federal, since states like California, Pennsylvania, and New Jersey have their own basis and recapture rules

Pros and Cons of Form 4797 Treatment

Form 4797 treatment carries both upsides and downsides compared with reporting on Schedule D.

  • Pro: Net Section 1231 gain gets long-term capital gain rates, which max at 20% federal versus 37% ordinary
  • Pro: Net Section 1231 loss is fully deductible as ordinary, not capped at $3,000
  • Pro: Allows direct interaction with Form 6252 and Form 8824 for installment and like-kind exchange deferral
  • Pro: Captures unrecaptured Section 1250 gain at a 25% cap, often lower than ordinary
  • Pro: Lets farmers and ranchers split inventory income from breeding-stock capital gain
  • Con: Section 1245 recapture is always ordinary, not capital, even on long-held property
  • Con: Five-year lookback can convert capital gain back to ordinary unexpectedly
  • Con: Section 179 recapture in Part IV creates a delayed tax bomb if business use slides
  • Con: Form 4797 errors invite audit because the IRS computer-matches depreciation history
  • Con: State conformity is uneven, so a federal Section 1231 loss may not be deductible in some states

Federal Versus State Treatment

The federal rules above set the baseline, but state taxes can change the outcome. Most states start with federal adjusted gross income, then make state adjustments. California does not fully conform to federal bonus depreciation or Section 179 limits, so a Section 179 recapture often produces a different state add-back. Pennsylvania treats business property gains under its own personal income tax rules, with no Section 1231 hybrid treatment, so net gains and losses do not flip character the way they do federally. New York generally conforms but adds back federal bonus depreciation. The consequence of ignoring state nuances is double tax or missed deductions. A common misconception is that filing federal Form 4797 covers state reporting. It does not. States usually require their own schedule that mirrors but adjusts the federal result. Elena, a New Jersey landlord, learned this when New Jersey taxed her full gain as ordinary because the state does not recognize the federal Section 1231 long-term capital gain character.

Key Court Rulings That Shape Form 4797

A handful of cases shape how Form 4797 is read today. In Williams v. McGowan, the Second Circuit ruled that selling a sole proprietorship is a sale of each individual asset, not a single capital asset, which is why bulk business sales go through Form 4797 asset by asset. In Hubert Enterprises v. Commissioner, the Tax Court refined how partnership-level recapture passes through to partners. In Hort v. Commissioner, the Supreme Court held that lease cancellation payments are ordinary income, not capital gain, a rule that still drives ordinary classification in Part II. The consequence of ignoring these rulings is that you may classify income wrong and lose at exam. A common misconception is that case law on Form 4797 is settled. It is not. Tax courts continue to refine recapture and §1231 treatment every year.

Interaction With Other Tax Items

Form 4797 does not live alone. It connects to several other tax computations.

Net Investment Income Tax

The 3.8% NIIT under IRC §1411 applies to rental property gain for higher-income taxpayers, generally those with modified AGI over $200,000 single or $250,000 joint. Section 1231 gain that becomes long-term capital gain is generally NIIT income, while gain from a property used in a non-passive trade or business may be excluded. The consequence of skipping NIIT is back tax plus interest. Henry, who sold a rental at a $300,000 gain, owed $11,400 of NIIT he did not see coming.

Qualified Business Income Deduction

The QBI deduction under IRC §199A does not apply to capital gains or Section 1231 net gain treated as capital gain. It does apply to Part II ordinary recapture in some cases when the activity is a qualified trade or business. The consequence of mixing capital and ordinary in QBI is overstating the deduction. A common misconception is that all business property gain feeds QBI. It does not.

Passive Activity Loss Rules

IRC §469 suspends passive losses until you fully dispose of the activity. A complete sale on Form 4797 frees up suspended passive losses against any income. The consequence of partial sales is that suspended losses stay locked. A real-world example: Olivia sold one rental unit out of a portfolio and could not free her suspended losses because the disposition was not complete.

FAQs

Do I need to file Form 4797 if I sold business equipment at a loss?

Yes. A loss on business property is reported on Form 4797. Section 1231 net losses become ordinary losses, fully deductible without the $3,000 capital loss cap.

Do I report my home sale on Form 4797?

No. Your personal residence is not business property. Use Section 121 exclusion and Schedule D if needed. Only the rental or business-use part of a mixed-use home goes on Form 4797.

Does Form 4797 apply to cryptocurrency?

No. Crypto held as an investment goes on Form 8949 and Schedule D. Crypto held in a trade or business as inventory is ordinary income, not Form 4797 property.

Do I file Form 4797 for an installment sale of business property?

Yes. You file both Form 6252 and Form 4797. Recapture is recognized in full in the year of sale, even if cash comes in later.

Do partnerships file Form 4797?

Yes. Partnerships file Form 4797 with Form 1065 and pass the character of the gain or loss to partners through Schedule K-1 line 10 for Section 1231.

Does a like-kind exchange remove Form 4797 filing?

No. A pure like-kind exchange uses Form 8824. If boot is received, the recognized gain still appears on Form 4797 in the proper part.

Do I include Section 179 recapture on the original asset’s sale?

Yes. Section 179 recapture from a sale flows through Part III line 25 as Section 1245 recapture. Part IV is for use-drop recapture, not sale recapture.

Do unrecaptured Section 1250 gains have a separate tax rate?

Yes. Unrecaptured Section 1250 gain is taxed at a maximum 25% federal rate, computed on the Schedule D Tax Worksheet inside the Form 1040 instructions.

Does the five-year Section 1231 lookback apply to losses I took before I started my current business?

Yes. The lookback follows the taxpayer, not the business. Any Section 1231 net loss in the last five years on your return triggers the rule.

Do farmers use Form 4797 for raised livestock?

Yes. Breeding, dairy, draft, or sporting livestock held for the required period qualifies as Section 1231 property and is reported on Form 4797, not Schedule F as inventory.

Does state tax follow federal Form 4797 treatment?

No. Many states deviate, especially California, Pennsylvania, and New Jersey, which often add back bonus depreciation or treat Section 1231 differently.

Do I need a tax professional to file Form 4797?

Yes. For most filers with depreciation recapture, the math and code-section interactions justify a professional, since errors trigger audit and 20% penalties under IRC §6662.