How this 1031 exchange calculator works
It follows the order a tax return does. Nothing is hidden, so you or your CPA can check each step.
1. Your gain
Sale price less selling costs is the amount realized. What you paid, plus improvements, less the depreciation you claimed, is your adjusted basis. The difference is the gain. The part of the gain equal to your past depreciation is taxed in its own layer.
2. Your boot
In an exchange, gain is recognized only to the extent you receive boot. The calculator treats the shortfall between your net sale price and the replacement price as boot, taxable up to the amount of your gain. A full exchange into equal or greater value shows no tax. No exchange, or a failed one, makes the whole gain taxable.
3. The tax in each layer
The gain is stacked on top of your other taxable income, using the 2026 brackets in Rev. Proc. 2025-32. The depreciation layer is taxed at your ordinary rate but never more than 25%. The rest is taxed at 0%, 15% or 20%, with the 20% rate starting above $613,700 of taxable income on a joint return and $545,500 for a single filer. The 3.8% net investment income tax applies to the gain once income passes $250,000 joint or $200,000 single. State tax uses your state's top rate.
4. The drilling deduction
The Powder River program's first-year write-off is about 88% of the amount invested: roughly 71% is intangible drilling cost and about 17% is equipment eligible for 100% bonus depreciation. The calculator caps the usable loss at the 2026 ceiling of $512,000 on a joint return or $256,000 single, carries the rest forward, and then reruns the whole tax calculation. The deduction comes off your ordinary income first, where it is worth the most, and then off the gain. The saving shown is the difference between the two runs.
Where the four production cases come from
The program is three new horizontal wells in Wyoming's Powder River Basin, drilled from the pad of a well that has been producing since October 2025. Two target the same rock as that well. The third targets a sandstone above it.
Conservative
All three new wells make 60% of what the neighboring well made. No record says this is the floor. It is here so you can see a weak outcome before you see a strong one.
Like the well next door
Each new well repeats the neighboring well: about 130,000 barrels of oil in its first 12 months, operator-reported. State records show three more wells drilled by the same field team in the same rock, 8.7 miles away, made 117,668, 120,296 and 121,855 barrels in their first year.
Higher Where the upside is
The two same-rock wells repeat the neighbor, and the sandstone well performs like the nearest well in that sand with a modern completion, twelve miles away. State records show that well made 239,909 barrels of oil in its first year.
Top of the record
The sandstone well matches the stronger wells on the public record. Of the 44 two-mile wells in that sandstone within 40 miles, state records show an average first year of 145,291 barrels. Five made more than 285,000, and the best made 386,781. This case uses 285,000.
The wells cited are other operators' wells in the public record. They show what this rock has done elsewhere. They are not a forecast for any new well, and well-to-well results in these plays vary widely.
What the calculator leaves out
- Itemized and standard deductions, credits and the alternative minimum tax. Enter your taxable income, not your gross.
- Mortgage boot in detail. If your replacement carries less debt and you add no cash, your boot can be larger than shown.
- Passive losses or carryforwards you already have, which can absorb part of the gain.
- Income tax on what the wells pay you later. That income is ordinary income, reduced by the depletion allowance.
- Local rules. A few states do not follow the federal drilling deduction; the state selector accounts for the largest ones.
The full rules, with the statute behind each one, are in our guide to 1031 exchanges and oil and gas. For the program itself, see the Powder River page.
Want these numbers checked against your real sale?
Send this and we will email the Powder River program details and call you to walk through the timing. Only a limited share of the program is still open. We do not give tax advice, and we will tell you plainly if oil and gas is the wrong tool.
Your details are with us and we will be in touch shortly. You do not have to wait for the call: the Powder River page has the proven well's production, the cost of each piece and what is still open.
See the Powder River programThanks for being straight with us. Federal securities rules limit our drilling programs to accredited investors, so we cannot send program documents. The tax half of this calculator still applies to your sale, and these are free:
Short answers
How do you calculate the tax on a 1031 exchange?
Subtract your adjusted basis (what you paid plus improvements, less depreciation) from your net sale price to get the gain. In a full exchange none of it is taxed now. In a partial exchange the boot is taxed, up to the amount of the gain. With no exchange the whole gain is taxed.
How is boot calculated in a 1031 exchange?
Boot is the value you take out of the exchange: cash you keep, debt that is paid off and not replaced, or non-real-estate property. A simple estimate is your net sale price less the price of the replacement property. Boot is taxable up to the amount of your gain.
What tax rate applies when I sell a rental property in 2026?
The gain equal to your past depreciation is taxed at up to 25%. The rest is taxed at 0%, 15% or 20%, with the 20% rate starting above $613,700 of taxable income on a joint return. A 3.8% net investment income tax can apply above $250,000 of income on a joint return, plus state tax.
Can an oil and gas investment reduce the tax on boot or a failed 1031 exchange?
It can. Drilling costs paid for a directly held working interest are deductible in the first year and can offset ordinary income and then the gain, up to the 2026 ceiling of $512,000 on a joint return or $256,000 single. The money must be new money, not exchange funds, and it is at risk in the wells.
How much of a drilling investment is deductible in the first year?
It depends on the program. Intangible drilling costs are typically 60% to 80% of a well's cost, and equipment can qualify for 100% bonus depreciation. This calculator uses about 88%, the figure for the Powder River program, where only the lease cost is not written off up front.