
That is the short answer. The longer answer matters more, because a well sale is rarely one asset. It is usually several assets sold together, and the tax result depends on how the price is divided and documented.
What tangible drilling costs become at sale
Tangible drilling costs are the physical equipment of the well. Unlike intangible drilling costs, which are generally deducted when incurred, tangible costs are capitalized and depreciated over time. When you sell, you are not "deducting" those costs again. You are selling the equipment they created.
That equipment is generally treated as Section 1245 property. In plain terms, the IRS looks back at the depreciation you claimed and taxes that portion of your gain at ordinary income rates. Only gain above your original cost can move into Section 1231 territory, which may receive capital gain treatment depending on your broader tax picture.
The mineral interest or leasehold is a different asset. It may qualify for long-term capital gain if you held it more than one year and it is a capital asset in your hands. The equipment usually does not get that same treatment to the extent of depreciation taken.
A sale of a working interest is not one asset
This is where many investors get it wrong. A working interest sale is often a bundled transaction. You may be selling:
- The mineral interest or leasehold rights
- The tangible equipment on the well
- Sometimes related contracts, data, or other rights
Each piece can have a different tax character. If you treat the entire sale price as one capital gain, you can overstate capital gain and understate ordinary income. If you treat it all as ordinary income, you may overpay.
The cleaner approach is to break the sale into components and support the split with fair market values, an appraisal, or another reasonable method that both parties can defend.
Worked example: equipment recapture
Here is a simple illustrative example using equipment only:
| Item | Amount |
|---|---|
| Original cost of equipment | $50,000 |
| Depreciation claimed | $20,000 |
| Adjusted basis | $30,000 |
| Sale price allocated to equipment | $60,000 |
| Total gain | $30,000 |
| Ordinary income from recapture | $20,000 |
| Potential Section 1231 gain | $10,000 |
The first $20,000 of gain is recapture, because that is the depreciation you previously claimed. The remaining $10,000 is above your original cost, so it may be Section 1231 gain. You generally report this on Form 4797.
If the equipment sold for $40,000 instead, the gain would be $10,000, and all of it would typically be recapture, because recapture is limited to the lesser of depreciation taken or gain.
Why allocation drives the tax result
The IRS expects a reasonable allocation of the total sale price between the mineral interest and the tangible equipment. This allocation should reflect fair market value and be documented at the time of sale.
A typical split looks like this:
| Component | Typical treatment |
|---|---|
| Mineral interest or leasehold | Often capital gain if held more than one year |
| Tangible equipment | Ordinary income to the extent of depreciation recapture, excess may be Section 1231 gain |
If you do not allocate clearly, you create risk. The IRS can review the transaction and challenge whether your split is supportable. The buyer also needs the allocation to set their own depreciation schedule. A vague number slows diligence and can create problems on both sides.
The best practice is to put the allocation directly in the purchase and sale agreement, supported by an appraisal or other reasonable valuation method.
Before and after: same sale, different outcome
Consider a $1,000,000 sale of a producing working interest, using example numbers.
Before, sloppy version: the contract says "$1,000,000 for the well and all equipment" with no breakdown. At tax time, you guess at the split. If the IRS questions it, you have no documented position. More of the gain can be pushed toward equipment and ordinary income.
After, clean version: the contract allocates $850,000 to the mineral interest and $150,000 to equipment, supported by an appraisal and your depreciation records. The mineral interest, held more than a year, is reported as long-term capital gain. The equipment side goes on Form 4797, with recapture limited to depreciation actually claimed.
Same price. Very different tax outcome. The difference is documentation.
What to check before you sell
- Get a professional appraisal to support the allocation between mineral rights and equipment.
- Calculate total depreciation claimed on tangible assets over the full holding period.
- Report depreciation recapture as ordinary income on Form 4797.
- Confirm whether the mineral interest qualifies for long-term capital gain treatment.
- Put the allocation in writing in the sale contract.
- Keep the contract, allocation, and depreciation records for at least several years, and longer if your tax advisor recommends it.
- Have a CPA review state tax treatment, which may differ from federal rules.
- If you are the buyer, confirm the allocation gives you a usable depreciation basis.
Mistakes to avoid
- No written allocation. This is the most common and most expensive error.
- Assuming the entire sale is capital gain. The equipment portion often is not.
- Forgetting old depreciation. Recapture looks at cumulative depreciation, not just recent years.
- Ignoring the buyer's side. A weak allocation creates friction and can delay closing.
- Assuming state rules match federal. They often do not.
- Mixing up tangible and intangible costs. IDCs are deducted, not depreciated, so they follow different rules on sale.
For a deeper breakdown of how these costs are built and recovered, see our guide on tangible drilling costs and depreciation.
How this connects to depletion and other sale issues
Tangible costs also interact with your depletion deduction, because depletable basis and depreciable basis are calculated differently. If you are planning a sale, it helps to understand how tangible drilling costs affect your depletion deduction.
A sale also raises non-tax questions. Plugging obligations usually follow the working interest, so review what happens to plugging liability when you sell a well. If the deal involves contracts or other parties, you may also need to understand what happens to hedging contracts if the operator sells the well.
A lesson from reviewing deals with investors
After 19 years working with family offices and private investors, I have seen the same pattern come up repeatedly, including in discussions at Family Office Club workshops and investor events. Investors negotiate hard on price, then treat the tax side of the exit as an afterthought.
The recapture issue is predictable from the day you drill the well. Yet sellers often discover it at closing week. The better approach is to model it early. Track your tangible cost basis, keep clean depreciation records, and decide how you will allocate the sale price before you are under pressure.
The investors who do this tend to close faster and avoid surprises, because both sides of the table are working from the same numbers.
Frequently asked questions
Is depreciation recapture always ordinary income?
For Section 1245 property like oil and gas equipment, depreciation recapture is generally taxed as ordinary income up to the gain on the sale. Only gain above your original cost may receive different treatment, such as Section 1231 gain. The exact outcome depends on your broader tax situation, so confirm with a CPA.
Do I pay self-employment tax on the sale of equipment?
In many cases, no. Gain from selling equipment is usually treated as investment or business asset gain, not earned income. That means it is generally not subject to self-employment tax. It can still be ordinary income for recapture purposes, which affects your tax bracket.
What if I never depreciated the equipment?
If no depreciation was claimed, there may be little or nothing to recapture. However, the IRS can sometimes treat depreciation as "allowed or allowable," meaning it was available even if you did not claim it. That can still trigger recapture. A CPA should review your depreciation history before you rely on this.
Does the mineral interest get capital gain treatment?
Often yes, if you held it for more than one year and it qualifies as a capital asset. The mineral interest is separate from the equipment. Dealers or those holding property for sale to customers may be treated differently, so classification matters.
Who keeps the depreciation records after the sale?
Both parties should keep records. The seller needs them to calculate recapture, and the buyer needs them to establish a depreciation basis. Keep the contract, allocation, and depreciation schedules together for several years, or longer if advised.
If you want a second set of eyes on a deal you are reviewing, you can reach Richard at richard@familyoffices.com, text or WhatsApp (808) 600-9260, or through the contact page.
Educational only. Not investment, legal or tax advice.