How the IDC deduction works
Drilling a well involves two kinds of cost. Tangible costs (casing, wellhead equipment, tanks) are depreciated. Intangible drilling and development costs (labor, fuel, drilling rig time, mud and chemicals, site preparation, anything with no salvage value) can be deducted in full in the year paid or incurred, by election under IRC 263(c) and Treas. Reg. 1.612-4. Independent producers and individual investors deduct 100% of IDC; integrated oil companies must capitalize 30% and amortize it over 60 months (IRC 291(b)).
Individuals usually get there by buying units in a drilling program. The program spends most of the money on IDC, and the investor's share flows through on a Schedule K-1. If the program prepays drilling costs late in the year, the deduction can still land in that year when the well is spudded within 90 days after year-end (IRC 461(i)(2)).
Why the working interest exception matters
Most investments in someone else's business are passive, so their losses only offset passive income. Oil and gas is the exception. Under IRC 469(c)(3), a working interest in an oil or gas property is not a passive activity if you hold it directly or through an entity that does not limit your liability. In practice, investors buy general partner units for the drilling year; many programs later convert them to limited partner units once the risky phase is over.
Two follow-on rules matter. First, once you take a non-passive loss from a working interest, later net income from that property is also non-passive (469(c)(3)(B)), so it cannot absorb passive losses from your rentals. Second, the at-risk rules of IRC 465 still cap losses at the amount you have at risk.
Who it fits, and who it does not
- Fits: owners with large ordinary income in the year (wages, a big bonus, ordinary recapture, consulting or earn-out income taxed as compensation).
- Fits: investors who want oil and gas exposure anyway and can hold an illiquid interest for years.
- Fits: people comfortable with general partner liability during drilling, usually backed by the sponsor's insurance.
- Does not fit: a seller whose sale year is almost all long-term capital gain with little ordinary income. The deduction first offsets ordinary income, and anything left only reduces gain taxed at 15% or 20%.
- Does not fit: anyone who cannot afford a total loss, or who needs the money back within a few years.
- Does not fit: someone buying a deduction for its own sake. A deduction worth roughly a third of the investment does not rescue a bad well.
Worked example
Assumptions (engine, 2026 federal rules, married filing jointly, Texas): in the year of a real estate sale producing $2,000,000 of long-term capital gain, the couple also has $500,000 of non-passive ordinary income. They invest $200,000 in general partner units of a drilling program, and we assume 80% of the investment ($160,000) is IDC deductible that year. The IDC is well under 40% of their alternative minimum taxable income, so the independent-producer AMT exception applies.
| Item | Without the investment | With $160,000 of IDC |
|---|---|---|
| Ordinary income | $500,000 | $340,000 |
| Total federal tax (income tax, AMT and NIIT) | $603,815 | $551,015 |
| NIIT on the gain | $76,000 | $76,000 |
The deduction reduced federal tax by $52,800, about 33 cents per dollar deducted, because it came off income in the 32% and 35% brackets. NIIT did not change: the capital gain is still investment income, and their income stays far above the threshold. The other $147,200 of after-tax cost is now riding on the wells. If the interest is later sold, the IDC deducted comes back as ordinary income under Section 1254. Numbers are illustrative engine output.
IRS stance and audit risk
The IDC election is written into the Code and the regulations, so a real drilling program is a mainstream deduction, not a listed transaction. The IRS focus is on the edges: prepayments that do not meet the 90-day spudding rule, deductions above the amount at risk, partnerships that limit liability and still report non-passive losses, programs where IDC is inflated by related-party drilling contracts, and investors who treat later income as passive when 469(c)(3)(B) makes it non-passive.
The alternative minimum tax is the other check. Excess IDC is an AMT preference under IRC 57(a)(2), but for taxpayers who are not integrated oil companies the preference is turned off unless it would cut AMT income by more than 40% (57(a)(2)(E)). You can also elect under IRC 59(e) to amortize IDC over 60 months, which removes the preference at the cost of a slower deduction.
On a sale of the interest, Section 1254 recaptures IDC and depletion that reduced basis as ordinary income, to the extent of the gain.
Costs and fees
- Sponsor fees, management fees and promoted interests, which can take a meaningful share of the money raised.
- Dry hole and production risk, plus oil and gas price swings.
- Illiquidity: units are rarely resellable at a fair price.
- General partner exposure during drilling until conversion to limited partner units.
- K-1 timing and state filing obligations in the states where wells sit.
- Ordinary recapture under Section 1254 when the interest is sold.
How it compares with a Section 453 installment sale
An installment sale attacks the gain itself: it spreads capital gain over the years the note is collected, which can keep more of it in the 15% bracket and below the NIIT threshold, and it carries no market risk beyond the buyer's credit. An IDC deduction leaves the gain alone and offsets ordinary income, with the investment's own risk attached.
They can work together. In a business sale with ordinary pieces that cannot be spread (Section 1245 recapture under 453(i), a consulting agreement, a non-compete), a well-chosen drilling investment can offset that ordinary income while the capital gain rides on the note. See also purchase price allocation and cost segregation.
How Hans helps
The $5,000 Big Sale Tax Analysis models what the deduction is worth at your real brackets in the sale year, the AMT and NIIT effects, and how it stacks with an installment sale, a 1031 or the other paths. Hans does not sell or recommend drilling programs; the analysis tells you what the tax side is worth so you can judge the investment on its own merits. Try the one-year vs spread estimate first.
What to know
The IDC deduction is real and well established, but it is a deduction, not a deferral of your sale gain. It is worth your marginal ordinary rate on the amount deducted, which is often around a third of the investment, and it is recaptured as ordinary income if you sell the interest. The working interest must be held without liability protection to be non-passive, losses are capped at the amount at risk, and the wells can lose money. Judge the investment first and the tax second.
Frequently asked questions
Can oil and gas deductions offset capital gains?
Are oil and gas working interests passive?
How much of a drilling investment is deductible in year one?
Is an oil and gas tax deduction an audit red flag?
What happens when I sell the working interest?
Does the IDC deduction trigger the alternative minimum tax?
Sources
- IRC 263 (Cornell LII)
- Treas. Reg. 1.612-4, IDC election (Cornell LII)
- IRC 469 (Cornell LII)
- IRC 57 (Cornell LII)
- IRC 59 (Cornell LII)
- IRC 1254 (Cornell LII)
- IRC 465 (Cornell LII)
- IRC 461, including 461(i) (Cornell LII)
- IRC 291 (Cornell LII)
Last reviewed October 3, 2026. Education only, not legal or tax advice.
Keep comparing
Installment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadCost segregation before a sale
Faster depreciation now, ordinary recapture at sale: when a late cost segregation study still pays.
ReadSolar tax credits
Buying or earning solar credits after OBBBA, and why passive and AMT limits often block them in a sale year.
ReadPurchase price allocation
How the Section 1060 split between goodwill, equipment and non-competes sets the tax on a business sale.
ReadYear-end closing timing
December or January? The closing date picks the tax year, the estimated tax bill, the Medicare premium two years out and which deductions still count.
ReadKnow your number before you sign.
The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.
Prefer email? Request the analysis by email.