Form 4797: What It Is, How It Works, and Who Needs to File It

Form 4797

Table of Content

When a business sells a piece of equipment, a delivery vehicle, a commercial building, or any other asset it has used in operations, that transaction does not simply disappear from the tax return. It has to be reported, classified, and in many cases it triggers depreciation recapture. A mechanism that converts what might otherwise be a favorable capital gain back into ordinary income at higher tax rates.

IRS Form 4797 is the form that handles all of this for business property disposals. It determines whether your gain is taxed at ordinary income rates, capital gains rates, or a combination of both. It calculates how much of the prior depreciation you claimed gets recaptured. And it feeds into Schedule D and other parts of your return in ways that directly affect your final tax bill.

This guide covers everything business owners, real estate investors, and their accountants need to know: what Form 4797 covers, what property qualifies, the four parts of the form. How Section 1231 gains and losses work, depreciation recapture under Sections 1245 and 1250, how to calculate your gain step by step, and the common mistakes that create problems at filing time.

What Is IRS Form 4797?

IRS Form 4797, officially titled “Sales of Business Property,” is the form used to report gains and losses from the sale, exchange, or involuntary conversion of property used in a trade or business or held for the production of income.

The critical distinction between Form 4797 and Schedule D is this: Schedule D handles the sale of personal investment assets, stocks, bonds, and personal real estate. Form 4797 handles business assets, the equipment you depreciated, the building you operated out of, the vehicle your employees drove. Many transactions involve both forms working together, but the starting point is always Form 4797 for anything with a business connection.

Form 4797 is also the form where depreciation recapture is calculated. When a business claims depreciation deductions over the life of an asset and then sells that asset for a gain, the IRS recaptures some or all of those prior deductions as ordinary income, even if the overall gain would otherwise qualify for preferential capital gains rates.

Any taxpayer who disposed of qualifying business property during the tax year must file Form 4797. This includes sole proprietors, landlords, partnerships, S corporations, C corporations, estates, and trusts. The completed form is attached to the taxpayer’s federal return, Form 1040, 1120, 1065, 1120-S, or 1041, depending on entity type.

What Property Is Reported on Form 4797?

Understanding what goes on Form 4797 and what does not prevents one of the most common errors in business tax reporting.

Property that belongs on Form 4797:

  • Depreciable business property: equipment, machinery, vehicles, computers, and furniture on which depreciation was claimed
  • Real property used in a trade or business: commercial buildings, warehouses, office space, manufacturing facilities, and residential rental properties
  • Property on which a Section 179 deduction was previously claimed
  • Livestock used for draft, breeding, dairy, or sporting purposes (held more than 12 months for cattle and horses; more than 24 months for other livestock)
  • Farmland subject to soil and water conservation deductions under Section 1252
  • Natural resource property subject to depletion under Section 1254
  • Property lost, destroyed, or condemned in an involuntary conversion

Property that does NOT belong on Form 4797:

  • Inventory or stock in trade, this is ordinary income reported directly on the business return
  • Personal-use assets such as a personal vehicle or home that was never used for business
  • Investment securities, stocks, and bonds, these belong on Schedule D
  • Property held one year or less that has no Section 1231 character

This distinction is frequently confused, especially when a business owner also holds investment real estate. The test is whether the property was used in a trade or business or held for the production of income, not whether it was profitable.

Section 1231 Property: The “Best of Both Worlds”

Section 1231 is the tax code provision that makes Form 4797 uniquely valuable for business taxpayers. Understanding it is essential before filling out a single line of the form.

Section 1231 property is depreciable property or real property used in a trade or business and held for more than one year. The tax treatment of net Section 1231 results is asymmetric in a way that favors taxpayers:

  • Net Section 1231 gains are treated as long-term capital gains, taxed at preferential rates of 0%, 15%, or 20% for 2026, depending on the taxpayer’s income level
  • Net Section 1231 losses are treated as ordinary losses, deductible in full against ordinary income with no $3,000 annual limitation that applies to capital losses

This “best of both worlds” treatment means that when things go well, gains are taxed at low capital gains rates. When things go poorly, losses provide full ordinary deductions. This is one of the most taxpayer-favorable provisions in the Internal Revenue Code, and it is the primary reason understanding Form 4797 properly can significantly affect a business owner’s tax position.

The Five-Year Lookback Rule

There is one important limitation. The lookback rule under Section 1231 prevents taxpayers from taking ordinary loss deductions in bad years and then claiming capital gain treatment on gains in good years without consequence.

Under the lookback rule, any net Section 1231 gain in the current year is reclassified as ordinary income to the extent of any unrecaptured net Section 1231 losses from the prior five tax years. Only after those prior losses are fully recaptured does the remaining gain qualify for capital gains treatment.

Example: A business has a $40,000 net Section 1231 gain in 2026. In 2022, it had a $15,000 net Section 1231 loss that was deducted as an ordinary loss. Under the lookback rule, $15,000 of the 2026 gain is reclassified as ordinary income. The remaining $25,000 qualifies for long-term capital gains rates.

Depreciation Recapture: Sections 1245 and 1250

Depreciation recapture is the most important and most misunderstood aspect of Form 4797. When a business sells property it has depreciated, the IRS recaptures those prior deductions by taxing a portion of the gain as ordinary income rather than capital gains.
The rules differ significantly depending on whether the property is equipment or real estate.

Section 1245: Equipment, Vehicles, and Personal Property

Section 1245 applies to machinery, equipment, vehicles, computers, furniture, and other tangible personal property on which any form of depreciation was claimed, including MACRS, bonus depreciation, and Section 179 deductions. Note that the One Big Beautiful Bill Act, effective July 2025, restored 100% bonus depreciation for qualified property placed in service after January 19, 2025, meaning many businesses will have larger accumulated depreciation balances, and correspondingly higher recapture exposure, on recent asset purchases.

The recapture rule is straightforward: the lesser of (1) the total gain on the sale, or (2) all depreciation previously claimed is recaptured as ordinary income. Any remaining gain above the depreciation amount qualifies as Section 1231 gain eligible for capital gains treatment.

Worked Example: A business buys equipment for $100,000 and claims $60,000 in depreciation over five years. Adjusted basis is $40,000. The equipment is sold for $90,000, generating a gain of $50,000.

  • Section 1245 recapture = lesser of $50,000 (gain) or $60,000 (depreciation) = $50,000 ordinary income
  • Remaining Section 1231 gain = $0

Because the entire gain falls within the depreciation taken, 100% of the gain is ordinary income. Nothing qualifies for capital gains rates.

Now suppose the same equipment sells for $130,000, generating a gain of $90,000:

  • Section 1245 recapture = lesser of $90,000 (gain) or $60,000 (depreciation) = $60,000 ordinary income
  • Remaining Section 1231 gain = $30,000 at capital gains rates

Section 1250 — Real Property

Section 1250 applies to commercial buildings, warehouses, office buildings, and residential rental properties. For real property placed in service after 1986, only straight-line depreciation is permitted, which changes the recapture calculation.

Under current rules for straight-line depreciated real property, there is generally no additional ordinary income recapture beyond what applies to C corporations under Section 291. However, the accumulated straight-line depreciation becomes unrecaptured Section 1250 gain, taxed at a maximum 25% rate rather than the standard 15% or 20% long-term capital gains rate.

Worked Example: A business owns a commercial building purchased for $500,000 and claims $100,000 in straight-line depreciation over 10 years. Adjusted basis is $400,000. The building sells for $600,000, generating a gain of $200,000.

  • Unrecaptured Section 1250 gain (taxed at up to 25%) = $100,000
  • Remaining Section 1231 gain (taxed at 0%/15%/20% capital gains rates) = $100,000
Section 1245 Section 1250
Property type Equipment, vehicles, personal property Commercial/residential real property
Recapture amount All depreciation up to the gain Straight-line depreciation taken
Tax rate on recapture Ordinary income rates (up to 37%) Up to 25% (unrecaptured Section 1250)
Where reported Form 4797, Part III Form 4797, Part III + Schedule D

The Four Parts of Form 4797: What Goes Where

Form 4797 has four parts, each handling a distinct category of transaction. Knowing which part applies to which property is essential for accurate reporting.

Part I — Sales or Exchanges of Property Held More Than One Year

Part I is where Section 1231 property transactions are reported and netted. This includes long-term dispositions of real estate, equipment, and other qualifying property held more than one year.

Part I also receives Section 1231 gains from installment sales (via Form 6252), from like-kind exchanges (via Form 8824), and from involuntary conversions other than casualty or theft (via Form 4684). Depreciation recapture from Part III that exceeds ordinary income thresholds also flows here as remaining Section 1231 gain.

Net result: If Part I gains exceed losses, the net gain flows to Schedule D as long-term capital gain. If losses exceed gains, the net loss flows to Part II as an ordinary loss deductible in full.

Part II — Ordinary Gains and Losses

Part II captures transactions that produce ordinary income or loss rather than capital gain treatment. This includes property held one year or less, Section 1231 losses from Part I when losses exceed gains, and depreciation recapture flowing up from Part III.

The net result on Part II, Line 17 flows directly to Schedule 1 of Form 1040 (or the equivalent line on business returns) as ordinary income or loss.

Part III — Gain from Disposition of Depreciable Property

Part III is where the depreciation recapture calculation happens. Every sale of depreciable business property, equipment, vehicles, buildings, runs through Part III to determine how much of the gain is ordinary income versus Section 1231 gain.

The calculation flows from gross sales price to adjusted basis to total gain, then applies the appropriate recapture rules under Sections 1245, 1250, 1252, 1254, or 1255 depending on the property type. The recapture amount (Line 31) flows up to Part II as ordinary income. Any remaining gain above the recapture amount (Line 32) flows to Part I as Section 1231 gain.

Part IV — Section 179 and 280F(b)(2) Recapture

Part IV handles a specific situation: when a business claims a Section 179 deduction on property and later converts it to personal use or reduces business use below 50%. In these cases, the IRS recaptures a portion of the Section 179 deduction as ordinary income.

Section 280F(b)(2) targets listed property, vehicles, computers, and similar assets where the IRS requires business use above 50% to claim accelerated depreciation. If business use drops below that threshold, Part IV calculates the recapture amount.

Calculating Your Gain Step by Step

Here is the complete calculation sequence that feeds into Parts I, II, and III of Form 4797.

Step 1: Determine Original Basis:

Start with the purchase price of the asset, plus closing costs, legal fees, and commissions paid at acquisition, plus the cost of capital improvements made after purchase.

Step 2: Calculate Total Depreciation Claims:

Add all depreciation deductions claimed on the asset across its entire life, including MACRS depreciation, bonus depreciation, and Section 179 deductions. This figure directly determines the recapture exposure.

Step 3: Calculate Adjusted Basis:

Adjusted basis = Original basis + Improvements − Total depreciation claimed

Step 4: Calculate Net Proceeds:

Net proceeds = Gross sales price − Selling expenses (commissions, closing costs, legal fees)

Step 5: Calculate Total Gain or Loss:

Total gain or loss = Net proceeds − Adjusted basis

Step 6: Apply Depreciation Recapture (Part III):

For Section 1245 property: recapture = lesser of total gain or total depreciation. For Section 1250 property: accumulated straight-line depreciation becomes unrecaptured Section 1250 gain.

Worked Example, Delivery Vehicle Sale:

A business buys a delivery van for $80,000 in 2022. Over four years, it claims $64,000 in total depreciation through MACRS and bonus depreciation. Adjusted basis = $16,000. The van sells in 2026 for $29,500 after selling fees.

  • Total gain = $29,500 − $16,000 = $13,500
  • Section 1245 recapture: lesser of $13,500 (gain) or $64,000 (depreciation) = $13,500 ordinary income
  • Section 1231 gain remaining = $0

The full $13,500 flows through Part III to Part II as ordinary income; none qualifies for capital gains rates because the gain falls entirely within the depreciation previously claimed.

How Form 4797 Connects to Schedule D and Your Tax Return

Form 4797 does not stand alone. Its results feed into other parts of the return in a specific sequence that determines how gains and losses ultimately affect taxable income.

The flow for a typical business asset sale:

  • Part III calculates depreciation recapture → recapture amount flows to Part II, Line 13 as ordinary income; any remaining Section 1231 gain flows to Part I, Line 6
  • Part I nets all Section 1231 gains and losses → net gain flows to Schedule D as long-term capital gain; net loss flows to Part II as ordinary loss
  • Part II nets all ordinary gains and losses → net result flows to Schedule 1, Line 4 as ordinary income or loss

This interconnection means an error in Part III ripples through the entire return. An understated recapture amount in Part III reduces ordinary income in Part II but inflates Section 1231 gains in Part I, producing the wrong tax rate on both ends.

Partnership and S corporation note: These entities do not report property dispositions directly on Form 4797. Instead, the entity provides partners and shareholders with the information they need on Schedule K-1. Each individual owner then reports their share of the gain or loss on their own Form 4797 based on the K-1 amounts. This is a common source of confusion for business owners who receive a K-1 and are unsure whether they need to complete Form 4797 themselves. In most cases involving Section 1231 or recapture amounts, they do.

Special Transactions That Interact With Form 4797

Installment Sales (Form 6252)

If you sell business property and receive payments over multiple tax years, the installment method may allow you to spread gain recognition over the payment period. Section 1231 gains from installment sales flow from Form 6252 to Form 4797, Part I. One critical rule: depreciation recapture cannot be deferred under the installment method. The full recapture amount must be recognized as ordinary income in the year of sale, regardless of when payments are received.

Like-Kind Exchanges (Form 8824)

A Section 1031 like-kind exchange allows gain from the sale of business property to be deferred if qualifying replacement property is acquired within the required timeframe. Any ordinary gain from the exchange flows to Form 4797, Part II; any Section 1231 gain flows to Part I. If cash or unlike property (“boot”) is received, that portion is taxable in the year of the exchange.

Involuntary Conversions (Form 4684)

When business property is destroyed, stolen, or condemned, Form 4684 calculates the initial gain or loss. If replacement property is purchased within the required period under Section 1033, gain may be deferred. Any undeferred Section 1231 gain flows from Form 4684 to Form 4797, Part I.

Common Mistakes on Form 4797

Using Form 4797 for personal investment property.

Stocks, bonds, and personal real estate belong on Schedule D, not Form 4797. The trigger for Form 4797 is business use, not simply that the asset is valuable or was sold at a gain.

Ignoring the Section 1231 five-year lookback.

Taxpayers who had Section 1231 losses in prior years sometimes assume current-year Section 1231 gains automatically receive capital gains treatment without checking whether the lookback rule reclassifies them as ordinary income first.

Understating adjusted basis.

Failing to include capital improvements in basis overstates the gain. Failing to include all depreciation reduces the adjusted basis and understates recapture. Both require careful record-keeping from the date of acquisition through the date of sale.

Assuming depreciation recapture can be deferred on installment sales.

This is one of the most frequently misunderstood rules. The full recapture amount is recognized in the year of sale. Only the Section 1231 gain beyond the recapture amount can be spread across installment payments.

Partnerships and S corporations completing Form 4797 directly.

The entity does not file Form 4797. It reports the information on Schedule K-1, and each owner files their own Form 4797 based on that information.

Missing Section 179 recapture triggers.

Business owners who reduce business use of listed property below 50%, or who convert property to personal use, often overlook the Part IV recapture obligation. This is particularly common with vehicles where business use naturally declines as the asset ages.

Records You Need to Complete Form 4797 Accurately

Completing Form 4797 correctly depends entirely on the quality of records maintained throughout the asset’s life.

Purchase documentation:

The original closing statement or purchase contract establishes initial cost basis. Without this, the basis may be estimated incorrectly, which flows through every calculation that follows.

Capital improvement records:

Receipts and invoices for improvements made after acquisition increase basis and reduce the gain. These are frequently missing because they were incurred years or decades before the sale.

Depreciation schedules:

Form 4562 from every year the asset was in service establishes the total depreciation claimed. This figure directly determines recapture exposure.

Section 179 and bonus depreciation records:

If accelerated deductions were claimed in prior years, those amounts must be included in total depreciation for recapture purposes.

Sale documentation:

Closing statement, purchase agreement, or Form 1099-B/1099-S showing gross proceeds and selling costs.

Prior-year Form 4797:

To identify any unrecaptured net Section 1231 losses from the prior five years that must be applied against current-year gains under the lookback rule.

Missing documentation almost always results in either overstating or understating the gain, and in either direction, the IRS can adjust the return during an examination. Asset sales, especially of real estate and large equipment, are a frequent area of audit focus because the tax consequences are substantial and the calculations are complex.

Conclusion

Form 4797 determines whether the gain from selling a business asset is taxed at ordinary income rates (up to 37% in 2026), capital gains rates (0%, 15%, or 20%), or a split between both. Getting it right requires understanding Section 1231 netting rules, calculating depreciation recapture accurately under Sections 1245 or 1250, applying the five-year lookback provision for prior losses, and connecting the form correctly to Schedule D and the rest of the return.

For business owners who have sold or are planning to sell significant assets, like equipment, vehicles, real estate, or an entire business, the difference between correct and incorrect Form 4797 treatment can easily amount to tens of thousands of dollars in tax. Planning the transaction in advance, with proper analysis of recapture exposure and Section 1231 character, is far more effective than discovering the tax consequences after the sale closes.

Sold business property and unsure how the gain should be classified and reported? Planning an asset sale and want to understand the tax impact before you close? Contact our team to schedule a consultation.

Frequently Asked Questions

What is IRS Form 4797 used for?

Form 4797 is used to report gains and losses from the sale, exchange, or involuntary conversion of property used in a trade or business or held for the production of income. It also calculates depreciation recapture, the amount of prior depreciation deductions that must be recognized as ordinary income when the property is sold.

What is the difference between Form 4797 and Schedule D?

Schedule D reports gains and losses from personal investment assets such as stocks, bonds, and personal real estate. Form 4797 reports gains and losses from business property. Many transactions require both, Form 4797 calculates recapture and Section 1231 results, then feeds those results into Schedule D.

What is Section 1231 property?

Section 1231 property is depreciable or real property used in a trade or business and held for more than one year. Net Section 1231 gains are taxed at favorable long-term capital gains rates; net Section 1231 losses are fully deductible as ordinary losses with no annual dollar cap.

What is depreciation recapture and how does it affect my taxes?

Depreciation recapture occurs when a business sells property it previously depreciated and the sale price exceeds the adjusted basis. The IRS recaptures prior depreciation deductions by taxing that portion of the gain as ordinary income rather than at capital gains rates. For equipment, recapture equals the lesser of the gain or total depreciation claimed.

What is the difference between Section 1245 and Section 1250 recapture?

Section 1245 applies to equipment, vehicles, and personal property, all prior depreciation up to the gain amount is recaptured as ordinary income at rates up to 37%. Section 1250 applies to real property, accumulated straight-line depreciation becomes unrecaptured Section 1250 gain taxed at a maximum 25% rate. This is higher than standard long-term capital gains rates but lower than ordinary income rates.

Do I need Form 4797 if I sold a rental property?

Yes. Rental property held for the production of income is reported on Form 4797. The sale triggers depreciation recapture on the accumulated straight-line depreciation as unrecaptured Section 1250 gain, with any remaining gain qualifying as Section 1231 gain.

What happens if I sold business equipment for less than I paid?

If the sale price is below your adjusted basis, you have a loss. If the property was Section 1231 property held more than one year, the loss is treated as an ordinary loss, fully deductible against ordinary income with no annual limitation.

Do partnerships and S corporations file Form 4797?

No. Partnerships and S corporations do not file Form 4797 directly. They report the property disposition information on Schedule K-1 for each partner or shareholder. Each owner then reports their share of the gain or loss on their own individual Form 4797.

What is the Section 1231 five-year lookback rule?

The lookback rule reclassifies current-year Section 1231 gains as ordinary income to the extent of unrecaptured net Section 1231 losses from the prior five tax years. This prevents taxpayers from deducting ordinary losses in bad years and then claiming capital gains treatment on the same type of asset in good years without consequence.

Need a Trusted CPA in Jackson, Wyoming?

 

Toran Accounting provides reliable CPA support for businesses and individuals in Jackson, WY, including tax planning, bookkeeping, payroll, financial reporting, and year-round advisory.

CPA Firm in USA

New & Articles

The Latest News