Guides

Form 4797: Sales of Business Property, Explained

Form 4797: Sales of Business Property, Explained

Form 4797 is the IRS form you use to report the sale, exchange, or involuntary conversion of property used in a trade or business or held to produce income. It decides whether your gain is taxed as ordinary income (rates up to 37% in 2026), as a long-term capital gain (0%, 15%, or 20%), or split between the two. The form separates depreciation you already deducted, which comes back as ordinary income, from the appreciation that qualifies for capital treatment.

The form covers business machinery, equipment, vehicles, rental buildings, and land, and it feeds numbers into your Schedule D and Form 1040. Personal-use property sales do not go here. Its logic turns on three tax concepts: Section 1231 netting, and depreciation recapture under Sections 1245 and 1250.

What Form 4797 is used for

Form 4797, “Sales of Business Property,” reports gains and losses on business assets held for the production of income, including depreciable property, real estate used in a business, and involuntary conversions from theft or casualty. It routes each transaction into ordinary or capital treatment. Sales of personal assets or stock and other capital investments belong on Schedule D and Form 8949 instead.

You generally file Form 4797 when you sell equipment, a rental building, business vehicles, farmland, or an entire business. It also captures the recapture of a Section 179 expense deduction or listed-property depreciation when business use of an asset drops. The form works alongside Form 4562, which is where you claimed the depreciation now being recaptured.

The four parts of Form 4797

Form 4797 has four parts, and you often do not complete them top to bottom. Depreciable property held more than a year usually starts in Part III, which figures recapture, then flows the leftover gain up to Part I. Short-term items go straight to Part II. The table below summarizes each part.

Part Covers Typical result
Part I Section 1231 property held more than 1 year; involuntary conversions Net gain to Schedule D as capital gain; net loss to Form 1040 as ordinary loss
Part II Property held 1 year or less, and certain recapture amounts Entirely ordinary gain or loss
Part III Depreciation recapture under Sections 1245 and 1250 for property held more than 1 year Recaptured amount becomes ordinary income; remainder flows to Part I
Part IV Recapture of Section 179 expensing and listed-property depreciation when business use falls Ordinary income addback

The counterintuitive order exists because Part III must first strip out the ordinary-income recapture. Only the gain that survives recapture is eligible for the favorable Section 1231 netting in Part I.

Section 1231 gains and losses

Section 1231 property is depreciable business property and business real estate held more than one year. Its defining feature is asymmetric treatment: a net Section 1231 gain is taxed as a long-term capital gain, while a net Section 1231 loss is deductible in full as an ordinary loss with no $3,000 annual cap. This can be the most favorable outcome in the tax code for a single asset class.

You net all Section 1231 gains and losses for the year in Part I. If gains exceed losses, the net gain moves to Schedule D and is taxed at capital rates. If losses exceed gains, the net loss drops to Form 1040 as an ordinary loss, which can offset wages, interest, and other ordinary income.

The five-year lookback rule

The five-year lookback rule can convert an otherwise favorable Section 1231 gain into ordinary income. Under IRC Section 1231(c), a current-year net 1231 gain is recharacterized as ordinary income to the extent you deducted net Section 1231 losses in the prior five tax years that have not yet been recaptured. The rule prevents taxpayers from timing losses into one year for ordinary treatment and gains into another for capital treatment.

For example, if you claimed a $40,000 ordinary Section 1231 loss two years ago and now have a $50,000 net 1231 gain, $40,000 of that gain may be taxed as ordinary income and only the remaining $10,000 as capital gain. You track these “nonrecaptured” losses on the Form 4797 worksheet each year until the five-year window closes.

Section 1245 depreciation recapture

Section 1245 property is depreciable personal property: equipment, machinery, vehicles, furniture, and similar tangible assets, plus certain intangibles. On a sale, all prior depreciation is recaptured as ordinary income up to the amount of the gain. Only gain above the asset’s original cost, which is uncommon, can qualify for capital treatment.

The mechanism is direct. You claimed depreciation deductions that reduced ordinary income while you owned the asset, so on sale the tax code claws that benefit back at ordinary rates. Because your adjusted cost basis has dropped by every dollar of depreciation, a sale near the original cost can produce a gain that is entirely ordinary.

Example: you buy a machine for $50,000, claim $30,000 of depreciation (basis now $20,000), and sell it for $35,000. The $15,000 gain is fully Section 1245 ordinary income because it is less than the $30,000 of depreciation taken. None of it reaches Section 1231.

Section 1250 depreciation recapture

Section 1250 property is depreciable real property, mainly buildings and their structural components. Recapture applies only to “excess” depreciation, meaning depreciation claimed above the straight-line amount. Because most real estate placed in service after 1986 uses straight-line under MACRS, true Section 1250 recapture is often zero.

The gain that escapes Section 1250 recapture is not fully protected, though. The portion of gain attributable to straight-line depreciation is “unrecaptured Section 1250 gain,” taxed at a maximum federal rate of 25%, higher than the 20% top rate on other long-term capital gains but below ordinary rates. The remaining appreciation above depreciation is taxed at standard long-term capital gain rates.

For a deeper walk-through of how these rules apply to rental buildings and the 25% rate, see depreciation recapture.

Ordinary vs. capital treatment: how the pieces fit

The character of your gain depends on holding period and depreciation. Property held one year or less produces entirely ordinary gain or loss in Part II. For property held more than a year, Part III first recaptures depreciation as ordinary income (Section 1245 in full, Section 1250 only for excess depreciation), then the surviving gain enters the Section 1231 netting in Part I for potential capital treatment.

Scenario Where it goes Tax character
Equipment held 6 months, sold at gain Part II Ordinary
Equipment held 3 years, gain below depreciation taken Part III to Part II line Ordinary (Section 1245 recapture)
Machine sold above original cost Part III and Part I Ordinary up to depreciation; capital above cost
Rental building, MACRS straight-line, sold at gain Part III and Part I Unrecaptured 1250 at max 25%; rest capital
Net Section 1231 loss year Part I Ordinary loss, no $3,000 cap

The result: depreciation you deducted at ordinary rates generally returns as ordinary income, while genuine appreciation keeps its capital character. Section 1231 gives the taxpayer the better side of each outcome, gains as capital and losses as ordinary, subject to the five-year lookback.

How to complete Form 4797, step by step

  1. Gather each asset’s sale date, sales price, original cost, and total depreciation or Section 179 claimed, pulling depreciation figures from your prior Form 4562 filings.
  2. For depreciable property held more than one year, start in Part III (lines 19 through 24) to compute gain and the Section 1245 or 1250 recapture amount.
  3. Move the recaptured ordinary portion from Part III to Part II, and the remaining gain to Part I for Section 1231 netting.
  4. Enter short-term dispositions (held one year or less) directly in Part II.
  5. In Part I, apply the five-year lookback to convert any net 1231 gain into ordinary income up to nonrecaptured prior losses.
  6. Complete Part IV only if business use of Section 179 or listed property dropped to 50% or less.
  7. Carry the net results to Schedule D (capital) and Schedule 1 or Form 1040 (ordinary).

FAQ

What is IRS Form 4797 used for?

Form 4797 reports gains and losses from selling, exchanging, or involuntarily converting property used in a business or held to produce income, such as equipment, business vehicles, and rental buildings. It determines whether each gain is taxed as ordinary income or as a capital gain, and it feeds results into Schedule D and Form 1040. Personal-asset and investment sales go on Schedule D and Form 8949 instead.

What is the difference between Form 4797 and Schedule D?

Form 4797 handles property used in a trade or business, including depreciable assets and business real estate, and it separates depreciation recapture from capital gain. Schedule D handles capital assets like stocks, bonds, and personal-use property. Net Section 1231 gains from Form 4797 Part I flow to Schedule D, so the two forms often work together on the same return.

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

Section 1245 property is depreciable personal property such as equipment, machinery, and vehicles, and its depreciation is recaptured in full as ordinary income up to the gain. Section 1250 property is depreciable real property such as buildings, where only depreciation above the straight-line amount is recaptured as ordinary income. Straight-line 1250 gain is taxed as unrecaptured Section 1250 gain at a maximum 25% rate.

Is a Section 1231 gain a capital gain?

A net Section 1231 gain is generally treated as a long-term capital gain and taxed at 0%, 15%, or 20%, while a net Section 1231 loss is deductible as an ordinary loss without the $3,000 capital-loss limit. However, the five-year lookback rule can recharacterize part or all of a current net 1231 gain as ordinary income to the extent of unrecaptured 1231 losses from the prior five years.

Do I have to fill out Form 4797 in order?

No. For depreciable property held more than one year, you often start with Part III to compute depreciation recapture, then move the recaptured amount to the ordinary line and the remaining gain to Part I for Section 1231 netting. Short-term dispositions go directly to Part II. Part IV applies only when business use of Section 179 or listed property falls to 50% or less.

What is unrecaptured Section 1250 gain?

Unrecaptured Section 1250 gain is the part of a real property gain attributable to straight-line depreciation you already deducted. It is not recaptured as ordinary income, but it is taxed at a maximum federal rate of 25%, higher than the 20% top long-term capital gain rate. Any appreciation above the depreciation taken is taxed at standard long-term capital gain rates.

Reviewed by The Ledgerism Editorial Team. Last reviewed: July 2026.

Related guides