Form 4797
A Form 4797 (Sales of Business Property) records the sale of rental property, business equipment, or land held for business use. It separates ordinary income (from depreciation recapture) from capital gains, which determines how much tax you owe.
Why 4797 exists: depreciation recapture
You own a rental apartment building. You buy it for $500,000, claim $50,000 in depreciation over five years, and then sell it for $550,000. Your basis is now $450,000 (original price minus depreciation claimed). Your realized gain is $100,000 ($550,000 sale price minus $450,000 basis).
But not all $100,000 is taxed the same way. The $50,000 of depreciation you deducted earlier is recaptured—meaning it’s taxed as ordinary income (at rates up to 37%), not the preferential 15% or 20% long-term capital gains rate. The remaining $50,000 may qualify as a Section 1231 gain.
Form 4797 is where this split happens. The IRS does not let you deduct depreciation, get a tax break from it, and then sell the property and pay only capital gains tax on the whole proceeds. It claws back the benefit you received.
Part I: Ordinary gains and losses
Form 4797, Part I is for property held one year or less. If you buy and flip business property, gains and losses here are treated as ordinary income or loss, not capital gains.
You list each property sold:
- Description of the property
- Date acquired and date sold
- Sale price (proceeds)
- Depreciation claimed or deductions from years you owned it (depreciation, repairs, etc.)
- Gain or loss (sale price minus basis)
The total from Part I flows to your Form 1040 as ordinary income.
Part II: Long-term gains and losses
This is where the strategic part happens. Property held more than one year goes in Part II. At this point, you’re dealing with Section 1231 property.
For each property:
- Calculate your realized gain (sale price minus adjusted basis, which reflects depreciation claimed).
- Separate the gain into depreciation recapture (taxed at ordinary rates) and remaining gain (the Section 1231 portion).
The depreciation recapture is reported in a separate Part II line as ordinary income. The Section 1231 gain goes to line 7 of Part II.
Section 1231 gain: the tail that wags the dog
After you fill in all your Section 1231 gains and losses for the year (both real estate and equipment), the IRS applies the Section 1231 netting rule:
- If net Section 1231 gain is positive, treat it as long-term capital gain (15% or 20% top rate).
- If net Section 1231 gain is negative (net loss), treat it as ordinary loss (with carryback and carryforward rules).
This is a tax-planning inflection point. If you’re near a Section 1231 loss carryforward from a prior year, realizing gains this year may trigger recapture of that loss, turning what looks like a capital gain back into ordinary income. Sophisticated real estate investors watch this closely.
Depreciation recapture: the unpleasant surprise
Let’s say you sell rental real estate on which you claimed $100,000 in straight-line depreciation. Under IRC Section 1250, that $100,000 of gain is recaptured at ordinary income rates, up to 25% (not 37%, but still much higher than the long-term capital gains rate).
If you used an accelerated depreciation method (rare for real estate, but common for equipment), the recapture rate can be even higher.
This is why some investors are surprised when they sell appreciated rental property: they expected a capital gain tax bill, but depreciation recapture makes it ordinary income, which is significantly costlier.
Part III and IV: Summary and carryover
Part III recaps your totals. Part IV handles the interaction with carryforwards and prior-year Section 1231 losses.
If you had a Section 1231 loss carryforward from a prior year, it offsets this year’s Section 1231 gain first, potentially keeping your current-year gain in ordinary-loss territory rather than letting it graduate to capital-gain treatment.
Interaction with Schedule E and Form 8949
If your Section 1231 gain qualifies as long-term capital gain, it flows to Form 8949 and then Schedule D, where it sits alongside stock sales and other investment gains.
Any ordinary income from depreciation recapture or short-term gains stays on Form 4797 and goes directly to your Form 1040.
Real example: selling a rental house
You buy a house for $200,000, live elsewhere (making it rental property), and claim $50,000 in depreciation over ten years. You then sell it for $280,000.
- Basis: $200,000 − $50,000 = $150,000
- Realized gain: $280,000 − $150,000 = $130,000
- Depreciation recapture: $50,000 (taxed as ordinary income)
- Section 1231 gain: $80,000 (potentially long-term capital gain, if no prior Section 1231 losses)
Your Form 4797 shows the $50,000 recapture as ordinary gain. Your remaining $80,000 goes to Form 8949 / Schedule D as long-term gain, and you pay roughly 15% on it.
Compare that to forgetting to file Form 4797 and reporting the entire $130,000 on Schedule D as a capital gain—you’d miss the recapture, the IRS would catch the error, and you’d owe the difference plus penalties.
Form 4797 vs. Form 8824: when they intersect
If you sell real estate as part of a like-kind exchange, Form 8824 calculates the deferred and recognized portions of your gain. Any recognized gain still flows through Form 4797 for the depreciation recapture analysis.
Similarly, if you have boot received in a 1031 exchange, that boot amount is recognized gain and triggers recapture calculations on Form 4797.
See also
Closely related
- Depreciation — the deduction that gets recaptured when you sell
- Form 8949 — where capital gains from 4797 are detailed
- Schedule D — where Section 1231 capital gains are reported
- Form 8824 — like-kind exchange form that often intersects with 4797
- Basis accounting — calculating your adjusted basis before computing gain
- Section 1231 gain — the property type that receives capital-gains treatment
- Schedule E — reports rental property depreciation and income
Wider context
- Capital gains tax — the favorable rates you’re trying to qualify for
- Rental property taxation — how rental-property income and sales are taxed
- Depreciation recapture — the claw-back mechanism Form 4797 enforces