Sale of a Farm: Farm Business Taxes (2025 IRS Guide)
This guide covers “Sale of a Farm” within farm business taxes. The following material presents the IRS treatment of this topic, including the qualifications, exceptions, and examples in the source section. Read the rules alongside the facts of your own situation before deciding what to report, deduct, or document.
Adapted from Publication 225 (2025), Farmer's Tax Guide, published by the Internal Revenue Service. This guide retains the source edition’s years, amounts, deadlines, and examples. It is guidance for that edition, not a statement that the same figures apply to every tax year.
Context for these rules
Generally, you will have a capital gain or loss if you sell or exchange a capital asset (defined below). You may also have a capital gain if your section 1231 transactions result in a net gain. See Section 1231 Gains and Losses in
chapter 9.
To figure your net capital gain or loss, you must classify your gains and losses as either ordinary or capital, and your capital gains or losses as either short term or long term.
Your net capital gains may be taxed at a lower tax rate than ordinary income. See Capital Gains Tax Rates, later. Your deduction for a net capital loss may be limited. See Treatment of Capital Losses, later.
Sale of a Farm
The sale of your farm may involve the sale of both nonbusiness property (your home) and business property (the land and buildings used in the farm operation and perhaps machinery and livestock). If any gain from the sale includes a gain from the sale of your home, you may be allowed to exclude the gain on your home. For more information, see Pub. 523.
The gain on the sale of your business property is taxable. A loss on the sale of your business property to an unrelated person is deducted as an ordinary loss. Your taxable gain or loss on the sale of property used in your farm business is taxed under the rules for section 1231 transactions. See chapter 9. Losses from personal-use property, other than casualty or theft losses, are not deductible. If you receive payments for your farm in installments, certain gains may be eligible to be taxed over the period of years the payments are received. See chapter 10 for information about installment sales.
When you sell your farm, the gain or loss on each asset is figured separately. The tax treatment of gain or loss on the sale of each asset is determined by the classification of the asset. Each of the assets sold must be classified as one of the following.
-
Capital asset held 1 year or less.
-
Capital asset held longer than 1 year.
-
Property (including real estate) used in your business and held 1 year or less (including draft, breeding, dairy, and sporting animals held less than the holding periods discussed earlier under Livestock).
-
Property (including real estate) used in your business and held longer than 1 year (including only draft, breeding, dairy, and sporting animals held for the holding periods discussed earlier).
-
Property held primarily for sale or which is of the kind that would be included in inventory if on hand at the end of your tax year.
Allocation of consideration paid for a farm.
The sale of a farm for a lump sum is considered a sale of each individual asset rather than a single asset. If the group of assets sold constitutes a trade or business, the residual method must be used. This method determines gain or loss from the transfer of each asset. It also determines the buyer’s basis in the business assets. For more information, see Sale of a Business in chapter 2 of Pub. 544.
Property used in farm operation.
The rules for excluding the gain on the sale of your home, described later under Sale of your home, do not apply to the property used for your farming business. Recognized gains and losses on business property must be reported on your return for the year of the sale. If the property was held longer than 1 year, it may qualify for section 1231 treatment (see chapter 9).
Example.
You sell your farm, including your main home, which you have owned since December 2007. You realize gain on the sale as follows.
| Farm | Farm | ||
| With | Home | Without | |
| Home | Only | Home | |
| Selling price | $382,000 | $158,000 | $224,000 |
| Cost (or other basis) | 240,000 | 110,000 | 130,000 |
| Gain | $142,000 | $48,000 | $94,000 |
You must report the $94,000 gain from the sale of the property used in your farm business. All or a part of that gain may have to be reported as ordinary income from the recapture of depreciation or soil and water conservation expenses. Treat the balance as section 1231 gain.
The $48,000 gain from the sale of your home is not taxable if you meet the requirements explained later under Sale of your home.
Partial sale.
If you sell only part of your farm, you must report any recognized gain or loss on the sale of that part on your tax return for the year of the sale. You cannot wait until you have sold enough of the farm to recover its entire cost before reporting gain or loss. For a detailed discussion on installment sales, see Pub. 544.
Adjusted basis of the part sold.
This is the properly allocated part of your original cost or other basis of the entire farm plus or minus necessary adjustments for improvements, depreciation, etc., on the part sold. If your home is on the farm, you must properly adjust the basis to exclude those costs from your farm asset costs, as discussed later under Sale of your home.
Example.
You bought a 200-acre farm for $700,000. The farm included land and buildings. The purchase contract designated $600,000 of the purchase price to the land. You later sold 20 acres of land on which you had installed a fence. Your adjusted basis for the part of your farm sold is $60,000 (1/10 of $600,000), plus any unrecovered cost (cost not depreciated) of the fence on the 20 acres at the time of sale. Use this amount to determine your gain or loss on the sale of the 20 acres.
Assessed values for local property taxes.
If you paid a flat sum for the entire farm and no other facts are available for properly allocating your original cost or other basis between the land and the buildings, you can use the values for local property taxes for the year of purchase to allocate the costs.
Example.
Assume that in the preceding example there was no breakdown of the $700,000 purchase price between land and buildings. However, in the year of purchase, local taxes on the entire property were based on valuations of $420,000 for land and $140,000 for improvements, or a total of $560,000. The valuation of the land is 3/4 (75%) of the total valuation. Multiply the $700,000 total purchase price by 75% to figure basis of $525,000 for the 200 acres of land. The unadjusted basis of the 20 acres you sold would then be $52,500 (1/10 of $525,000).
Sale of your home.
Your home is a capital asset and not property used in the trade or business of farming. If you sell a farm that includes a house you and your family occupy, you must determine the part of the selling price and the part of the cost or other basis allocable to your home. Your home includes the immediate surroundings and outbuildings relating to it that are not used for business purposes.
If you use part of your home for business, you must make an appropriate adjustment to the basis for depreciation allowed or allowable. For more information on basis, see chapter 6.
More information.
For more information on selling your home, see Pub. 523.
Gain from condemnation.
If you have a gain from a condemnation or sale of your home under threat of condemnation, you may use the preceding rules for excluding the gain, rather than the rules discussed under Postponing Gain in chapter 11. However, any gain that cannot be excluded (because it is more than the limit) may be postponed under the rules discussed under Postponing Gain in chapter 11.
Using the guidance
Keep the documents that establish the dates, amounts, and circumstances described above. References to other chapters, forms, worksheets, or earlier and later sections refer to the linked IRS publication. Check the full publication and its updates before relying on a rule for a different tax year or a situation not addressed here.
Sources and further reading
- Publication 225 (2025), Farmer's Tax Guide: Gains and Losses — Ordinary or Capital Gain or Loss — Sale of a Farm — Internal Revenue Service; 2025 edition.
The cited U.S. government text is in the public domain. Source accessed October 28, 2026. Fynoptic has organized this material for educational use and is independent of, and not endorsed by, the IRS.