Fill out your information, and we'll do the calculations for you
IRS Form 4797 (2025), on current rules

Create Form 4797 to report sales of business property

Form 4797 is how you report selling or exchanging property used in your trade or business, from equipment to buildings. It sorts each sale by how long you held it and what it was, figures any depreciation recapture, and gives the gain its right character: a long-term capital gain on Schedule D, or ordinary income on Schedule 1. Enter each property, see how the gain splits, and preview a completed form you can file with your return.

Preview before you file Recapture-split estimator Section 1231 and recapture 24/7 support
4797
4797
Sales of Business Property
2025
Part III · PropertyMachinery (Section 1245)
Line 20 · Sales price$60,000
Line 22 · Depreciation$30,000
Line 23 · Adjusted basis$20,000
Line 24 · Total gain$40,000
Line 25 · Ordinary (1245)$30,000
Part I · Section 1231 gain$10,000
Carries to · Sch D & Sch 1Your return
Illustrative figures. Your form reflects the property and amounts you enter.

How it works

From a business sale to a filed-ready form

Enter each property you sold, let the form sort it and figure the recapture, and preview a completed Form 4797 in minutes.

Create Your 4797
Property
Machinery (Section 1245)
Held for
Over 1 yr1 yr or less
Sales price
Price$60,000
Depreciation taken
Line 22$30,000
1

Enter each sale

Add every property you sold with its price, basis, and the depreciation you took, then note how long you held it.

47972025
Sorted
2

The form sorts it

Section 1231 property lands in Part I, ordinary items in Part II, and recapture is figured in Part III. The gain splits automatically.

PDF
Form 4797
Worksheet
Print
Download
3

Preview and download

Check the totals and where each amount carries, then download a clean PDF to attach to your return.

Business property sales affect your capital gains and ordinary income, so review the figures or check with a tax professional before filing.

Why use this

What the Form 4797 generator handles

The whole form, on current rules, with the recapture math and the routing laid out clearly.

All four parts covered

Part I Section 1231, Part II ordinary gains and losses, Part III recapture, and Part IV Section 179 recapture are each handled, so nothing gets missed.

Recapture-split estimator

See how a Section 1245 sale divides between ordinary recapture and a Section 1231 capital gain before you commit the numbers.

Routes each amount

It keeps the net Section 1231 gain headed for Schedule D and the ordinary amount headed for Schedule 1, so line 18b and line 9 land where they should.

Preview before you file

Nothing is sent anywhere. You review the filled form and the split first, then download and attach it to your return yourself.

Plain-English guidance

Each part explains what it's for in everyday terms, so you can tell Section 1231 from Section 1245 without wading through the code.

Free and private

There's no charge to build and preview your form, and your figures stay with you. It's a tool to help you file accurately, not tax advice.

Inside the form

Form 4797, part by part

Tap any part of the form to see what it's for and what to watch. Form 4797 runs from the Section 1231 sales at the top to the recapture math and the summary that routes each amount.

Form 47972025

TopName and ID number

Above Part I you enter your name as shown on your tax return and your identifying number, a Social Security number or ITIN for an individual, or an EIN for a business. Everything below sorts each sale into the right part by how long you held the property and what kind it was.

WatchHolding period decides the part. Business property held more than a year goes in Part I; a year or less goes in Part II.

Part ISection 1231 property

Part I is for property used in your trade or business and held more than one year, the kind Section 1231 covers. You list each sale, combine everything on line 7, then line 8 subtracts any nonrecaptured Section 1231 losses from your prior five years. Line 9 is the net: a gain flows to Schedule D as a long-term capital gain, a loss is ordinary.

WatchLine 8 is the five-year look-back. Prior Section 1231 losses turn this year's gain into ordinary income up to the amount of those losses.

Part IIOrdinary gains and losses

Part II collects ordinary gains and losses: property held one year or less, plus the depreciation recapture that Part III kicks up to ordinary income. Line 17 combines the pieces, and line 18b carries the ordinary gain or loss to Schedule 1 (Form 1040), Part I, line 4. A loss on line 18a from income-producing property goes to Schedule A instead.

WatchRecapture lands here, not in Part I. The ordinary income Part III figures on line 31 flows up into Part II.

Part IIIRecapture setup

Part III figures depreciation recapture for property under Sections 1245, 1250, 1252, 1254, and 1255. For each item you enter the sales price on line 20, the cost or basis on line 21, the depreciation allowed on line 22, the adjusted basis on line 23, and the total gain on line 24. Those numbers feed the recapture math.

WatchAdjusted basis is cost minus depreciation. Line 23 is line 21 minus line 22, and line 24 is line 20 minus line 23.

Part IIISection 1245 recapture

Line 25 handles Section 1245 property, which is depreciable personal property like machinery, equipment, and vehicles. The ordinary income you recapture is the smaller of the depreciation you took or the total gain on the sale. In plain terms, every dollar of depreciation comes back as ordinary income before any of the gain can be a capital gain.

WatchSell below what you paid and it's all ordinary. A capital-gain slice appears only when the price tops your original cost.

Part IIISection 1250 recapture

Line 26 handles Section 1250 property, which is depreciable real property like buildings. It recaptures only depreciation taken above straight-line, and since real estate placed in service after 1986 already uses straight-line, there's usually no ordinary recapture here. The depreciation still matters: it becomes unrecaptured Section 1250 gain, taxed at a maximum rate of 25%.

WatchStraight-line means little line-26 recapture. But the 25% unrecaptured Section 1250 gain still applies to the depreciation you claimed.

Part IVSection 179 and 280F recapture

Part IV is a separate calculation for when the business use of property drops to 50% or less and you have to give back part of a Section 179 deduction or bonus depreciation you already claimed. You compare what you deducted to what ordinary depreciation would have been, and the difference is recaptured on the form where you first took the deduction.

WatchThis isn't about a sale. Part IV triggers when business use falls, even if you still own the property.

SummaryWhere each amount carries

Part III ends with a summary: line 30 totals the gains, line 31 is the ordinary recapture that moves up to Part II, and line 32 is the remaining Section 1231 gain that moves up to Part I, line 6. So a single sale can split, part taxed as ordinary income through Part II and part as a capital gain through Part I and Schedule D.

WatchOne sale, two destinations. Recapture goes to Part II as ordinary; the rest heads to Part I toward capital-gain treatment.

Tap a part above to read about it.

What it is

What Form 4797 does

In plain terms

Form 4797, Sales of Business Property, is the form you use to report gains and losses from selling or exchanging property used in a trade or business, along with involuntary conversions and certain depreciation recapture. It sorts each transaction by how long you held the property and what kind it was, then routes the result to the right place: net Section 1231 gains to Schedule D as long-term capital gains, and ordinary gains, losses, and recapture to Schedule 1. The point is to give the two kinds of income their correct tax treatment.

The map

Which part, which section, how it's taxed

Where a sale lands on the form, and what that means for the rate you pay, depends on the property type and how long you held it.

Property or situationWhere on 4797How it's taxed
Business property held more than 1 year (Section 1231)Part INet gain: long-term capital. Net loss: ordinary
Business property held 1 year or lessPart IIOrdinary gain or loss
Equipment, machinery, vehicles (Section 1245)Part III to IIOrdinary up to depreciation, rest capital
Buildings and real property (Section 1250)Part III to IMostly capital, 25% max on the depreciation
Farmland and farm property (Section 1252, 1255)Part IIIOrdinary recapture of specific items
Section 179 property, business use drops to 50% or lessPart IVOrdinary income recapture

Swipe sideways for the full table →

The order matters: depreciation recapture under Sections 1245 and 1250 is figured first and taxed as ordinary income, then whatever's left nets with your other Section 1231 gains and losses, and finally the five-year look-back can recharacterize a net gain as ordinary. IRS Publication 544 walks through the whole sequence with examples.

Recapture estimator

Estimate your Section 1245 recapture split

Sold a piece of equipment? See how the gain divides between ordinary recapture and a capital gain. Enter what you paid, the depreciation you took, and the sale price.

Section 1245 personal property, like equipment or a vehicle. A planning estimate, not tax advice.

How the gain splits

Adjusted basis (cost minus depreciation)$20,000.00
Total gain (price minus adjusted basis)$40,000.00
Ordinary income, Section 1245 recapture$30,000.00
Section 1231 gain (capital)$10,000.00
Sold above original cost, so the part above cost is a Section 1231 gain. 

Section 1245 recaptures the smaller of your depreciation or the total gain as ordinary income; anything above your original cost is a Section 1231 gain that may get capital-gain treatment after netting. Real property under Section 1250 works differently. Confirm with the IRS or a tax pro.

New for 2025

What changed

What 2025's tax law means for Form 4797

The 2025 law, the One Big Beautiful Bill Act (P.L. 119-21), didn't rewrite this form, but it changed what feeds into it. Confirm current details before you file.

Bigger write-offs, bigger recapture

The law restored 100% bonus depreciation for qualified property acquired and placed in service after January 19, 2025, and raised the Section 179 cap to $2,500,000. Every extra dollar you expense lowers your basis, so when you sell that equipment, Section 1245 claws more of the gain back as ordinary income in Part III.

Section 179 recapture in Part IV

With the Section 179 limit up to $2,500,000, more property gets fully expensed. If the business use of that property later drops to 50% or less, Part IV recaptures part of the deduction as ordinary income, even without a sale. It's easy to overlook on a vehicle whose business use slipped.

Opportunity Zone deferral

You may still defer an eligible gain from business property by rolling it into a Qualified Opportunity Fund, reported through Form 8949 and Form 8997. The existing deferral generally runs to the end of 2026, so check the current rules before you rely on it.

Avoid these

Common Form 4797 mistakes

The errors that most often show up on a business property sale, and how to steer clear.

Treating recapture as capital gain

Depreciation you took on equipment comes back as ordinary income under Section 1245, not at capital-gain rates. Only the part of the price above your original cost can be a capital gain.

Forgetting the five-year look-back

A net Section 1231 gain isn't automatically long-term capital gain. If you had Section 1231 losses in the past five years, line 8 turns this year's gain into ordinary income up to those losses.

Putting a sale in the wrong part

Property held more than a year goes in Part I; a year or less goes in Part II. The holding period, not the dollar amount, decides where a sale lands on the form.

Missing unrecaptured 1250 gain

Real estate usually has no Section 1250 ordinary recapture, but the depreciation you claimed is still taxed at a maximum 25% rate as unrecaptured Section 1250 gain. It's easy to leave off.

Ignoring depreciation you could have taken

Adjusted basis uses depreciation allowed or allowable. If you skipped depreciation you were entitled to, the form still reduces your basis as if you'd taken it, which raises the gain.

Subtracting cost instead of basis

Gain is the sale price minus adjusted basis, not minus original cost. Taking depreciation off your basis is exactly what creates the gain that recapture then splits.

Step by step

How to complete Form 4797

Four moves take you from a business sale to a filed form with each amount in its right place.

1

Sort each sale

Group every disposition by holding period and property type: Section 1231 property held over a year in Part I, short-term and ordinary items in Part II, recapture property in Part III.

Sort
2

Figure gain and recapture

In Part III, work out adjusted basis, total gain, and the ordinary recapture under Section 1245 or Section 1250 for each property you sold.

Figure
3

Net and characterize

Combine your Section 1231 results in Part I, apply the five-year look-back on line 8, and let recapture flow to Part II as ordinary income.

Net
4

Carry to your return

Send the net Section 1231 gain to Schedule D and the ordinary gain or loss on line 18b to Schedule 1, then attach Form 4797 to your return and file.

File

Filing

How and when to file Form 4797

Form 4797 rides along with your income tax return, so it follows the same calendar.

1

Attach it to your return

Form 4797 isn't filed on its own. It goes with your Form 1040, 1065, 1120, or 1120-S, and it's due when that return is due, including any extension you take.

2

Bring in the supporting forms

Casualties and thefts come from Form 4684, installment sales from Form 6252, and like-kind exchanges from Form 8824. Any gain above the recapture amount is reported on Form 8949.

3

Match the carryovers

Send the net Section 1231 gain from line 9 to Schedule D, and the ordinary gain or loss from line 18b to Schedule 1, Part I, line 4. Check that both land where they belong.

4

Keep your basis records

Purchase documents, the depreciation you claimed each year, and closing statements back up your adjusted basis. Hold onto them in case the IRS asks about a sale.

Need a different tax form?

Form 4797 attaches to your return and feeds Schedule D and Schedule 1. Browse the full library, or jump to the 1040 family it flows into.

Common questions

Form 4797 FAQs

Quick answers to what filers ask most about selling business property.

Form 4797, Sales of Business Property, reports gains and losses from selling or exchanging property used in a trade or business, plus involuntary conversions and certain depreciation recapture. It sorts each transaction by holding period and property type, then sends net Section 1231 gains to Schedule D as long-term capital gains and ordinary gains, losses, and recapture to Schedule 1.

You file Form 4797 when you sell or exchange property used in your trade or business, dispose of depreciable or amortizable business property, report an involuntary conversion of business property from something other than a casualty or theft, or have to recapture a Section 179 or listed-property deduction. It also covers oil, gas, and mineral property and certain Section 1231 gains from installment sales or like-kind exchanges.

Schedule D reports capital gains and losses, mostly from investments. Form 4797 is for business property, and it decides the character of the gain first. Net Section 1231 gains from Part I then flow into Schedule D as long-term capital gains, while ordinary gains, losses, and depreciation recapture stay on 4797 and go to Schedule 1. In short, 4797 sorts, and Schedule D collects the capital-gain part.

Section 1231 property is real or depreciable property used in a trade or business and held more than one year, like buildings, machinery, and land used in the business. It gets the best of both worlds: a net gain is treated as a long-term capital gain, and a net loss is treated as an ordinary loss. It's reported in Part I of Form 4797.

Depreciation recapture is the rule that turns part of your gain back into ordinary income because you already deducted depreciation on the property. When you sell, the tax code takes back the benefit of those deductions at ordinary rates before the rest of the gain can be a capital gain. Form 4797 figures it in Part III under Sections 1245 and 1250.

Section 1245 applies to depreciable personal property like machinery, equipment, and vehicles, and it recaptures all the depreciation you took as ordinary income up to your gain. Section 1250 applies to depreciable real property like buildings, and it recaptures only depreciation above straight-line, which is usually zero for property placed in service after 1986. Both are figured in Part III.

On line 8 of Part I you look back at the previous five tax years. If you had net Section 1231 losses in that window that haven't been recaptured, your current-year net Section 1231 gain is treated as ordinary income up to the amount of those prior losses. It stops people from timing sales to get an ordinary loss one year and a capital gain the next.

When you sell real property at a gain, the part of the gain that matches the depreciation you claimed is unrecaptured Section 1250 gain. It isn't ordinary income, but it's taxed at a maximum rate of 25% rather than the lower long-term capital gain rate. It applies even when there's no Section 1250 ordinary recapture, which is the usual case for modern real estate.

The net Section 1231 gain from Part I, line 9 carries to Schedule D as a long-term capital gain. The ordinary gain or loss from Part II, line 18b carries to Schedule 1 (Form 1040), Part I, line 4. Depreciation recapture from Part III flows up into Part II as ordinary income, and a Part IV recapture goes back to the form where you first took the deduction.

Yes. A loss on Section 1231 property held more than a year is generally an ordinary loss, which is more valuable than a capital loss because it isn't limited to $3,000 a year against ordinary income. You still report it on Form 4797, and it nets with your Section 1231 gains in Part I before landing as an ordinary loss.

Rental real estate held more than a year is Section 1231 property, so the sale goes on Form 4797. You'll usually work through Part III to figure any recapture and the unrecaptured Section 1250 gain, then the results flow to Part I and on to Schedule D. Land is handled separately because it isn't depreciable, and the depreciation you claimed reduces your basis in the building.

Report an installment sale of business property on Form 6252 first, then bring the Section 1231 gain over to Form 4797, line 4 or line 15. Depreciation recapture, though, can't be spread out: you generally report all of it as ordinary income in the year of sale, even when you receive the money over several years.

No. Form 4684 handles casualties and thefts, like property lost to a storm or fire. Form 4797 handles ordinary sales, exchanges, and involuntary conversions other than casualty or theft. They can interact, since a gain or loss figured on Form 4684 can carry into Form 4797, but they cover different events.

Usually yes. Selling equipment you depreciated is a Section 1245 disposition, so you report it on Form 4797, Part III, to figure the recapture. Most used equipment sells for less than its original cost, which means the whole gain is ordinary income. Only when you sell it for more than you originally paid does the excess become a capital gain.

No. The generator helps you fill out and produce a completed Form 4797 that you can review and attach to your return, then file with the IRS yourself. It doesn't transmit anything to the IRS, it isn't a substitute for tax software or a tax professional, and it isn't tax advice. Business property sales carry real tax consequences, so check the figures and consider professional help.

Official references

Straight from the IRS

The rules, sections, and routing on this page come from the official IRS sources below. Verify anything at the source before you file.

This page is educational and doesn't provide legal, tax, or financial advice, and isn't affiliated with the IRS. Tax rules, sections, and rates change, and the character of a gain depends on your facts, so confirm current requirements against the official IRS pages above or a qualified tax professional before filing. Every Form 4797 should reflect property your business actually sold and true, accurate figures.

Support

Not sure how a sale is taxed? A person answers, day or night

Whether it's Part I versus Part II, how much of a sale is recapture, or where line 18b carries, you can reach a person any hour.

Live chat, 24/7

Fastest for a quick "is this Section 1231 or 1245?" Start a chat from any page and keep working while you wait.

Call us

+1 857 444 9266, any hour. Real answers on the recapture math, the look-back, and the carryovers.

Email

info@epaystubs.net for anything that needs a written reply, like an installment sale or a rental property question.

Report your business property sale and file it right

Enter each sale, see how the gain splits between ordinary income and capital gain, and preview a completed Form 4797. Review it, download, and attach it to your return.

Create Your 4797
ePaystubs Support Support team is online

Start a conversation

Enter your details and tell us how we can help.

Your conversation will appear here.
This conversation has been closed by the support team.