- Identify replacement
- By midnight of day 45 after the sale
- Receive replacement
- By day 180, or the tax return due date with extensions if earlier
- Property that qualifies
- Real property only, for 2018 and later years
- Unrecaptured section 1250 gain
- Federal maximum rate of 25%
- NIIT
- 3.8%, once modified AGI passes $250,000 (joint) or $200,000 (single)
What the Calculator Shows
When you sell a rental at a profit, the gain is not taxed at one rate. The part that comes from depreciation you claimed over the years is taxed one way, the rest of the federal gain another, California adds its own income tax, and higher-income sellers can owe a further 3.8% federal surtax on investment income. A 1031 exchange, done correctly, puts all of that off by rolling the sale into another investment property.
This tool gives you a rough size for each piece so you can see what is at stake, and it prints the two dates that matter most once the sale closes. It does not decide whether your sale qualifies. Bring the result to a CPA and a qualified intermediary before you list the home.
The Inputs
- Sale date, the day the cabin transfers to the buyer.
- Sale price and selling costs %, covering commissions, escrow, title and transfer charges.
- Adjusted basis: what you paid, plus improvements, minus the depreciation you have taken. Your tax preparer's depreciation schedule shows it.
- Depreciation taken, the total claimed on the building and improvements over the years you rented it.
- Federal capital gain rate %, usually 15% or 20% depending on taxable income.
- Recapture rate %, up to 25% on the depreciation part of the gain.
- State rate %, your California bracket for the year of sale, or zero if it does not apply.
- NIIT %, 3.8% if your income is above the threshold, otherwise zero.
How the Math Works
- Net sale = sale price x (1 - selling costs %).
- Gain = net sale - adjusted basis.
- Recapture tax = the smaller of depreciation taken or gain, x recapture rate.
- Federal capital gain tax = (gain - that recapture part) x federal rate.
- State tax = gain x state rate.
- NIIT = gain x NIIT rate.
- Tax deferred = recapture tax + federal capital gain tax + state tax + NIIT.
- Identify by = sale date + 45 days. Close by = sale date + 180 days.
The NIIT does not get its own result line; it is folded into the deferred total. Each rate is applied flat to make the estimate readable, while real brackets are progressive.
Worked Example
The cabin below is imaginary and its numbers were picked to keep the arithmetic clear. Rates are examples, not a reading of anyone's return.
| Input | Value used |
|---|---|
| Sale date | June 15, 2026 |
| Sale price | $900,000 |
| Selling costs | 6% |
| Adjusted basis | $500,000 |
| Depreciation taken | $90,000 |
| Federal, recapture, state, NIIT rates | 15%, 25%, 9.3%, 3.8% |
Net sale is $846,000, so the gain is $346,000. The first $90,000 of it is the depreciation part: $22,500 of recapture tax at 25%. The remaining $256,000 at 15% is $38,400. California at 9.3% on the full gain is $32,178, and the NIIT at 3.8% is $13,148. Together that is $106,226 that an exchange could defer.
The 45th day after June 15 is July 30, 2026, and the 180th day is December 12, 2026. Because the 2026 return is not due until 2027, the 180-day date controls here.
Exchange Deadlines
Under the Treasury regulation for deferred exchanges, the identification period ends at midnight on the 45th day after you transfer the old property. The exchange period closes on day 180 or on that year's filing deadline with extensions, if that comes sooner. A sale late in the year can run into the return deadline before day 180, which is why many sellers file an extension.
Identification must be in writing, signed by you, and delivered before day 45 to the person bound to transfer the new property to you or to another party in the deal who is not disqualified. The list can hold three candidates regardless of price, or a longer list as long as the candidates together are worth no more than twice the cabin you sold. The calculator adds calendar days and does not move a date that lands on a weekend, so count on the strict reading.
Vacation Homes and the Safe Harbor
A home you also use yourself has to show it was held for investment. Revenue Procedure 2008-16 gives a safe harbor: own it for 24 months or longer before the exchange, and in each year of that span book paying guests at market rates on 14 or more days, while your family's own nights stay at or under 14 or 10% of those booked days, whichever number is bigger. The same test applies to the replacement home for the two years after. Our guide to 1031 exchanges for vacation rentals covers how owner stays count.
California Rules to Know
The Franchise Tax Board treats every capital gain as ordinary income, with no special reduced rate. In the 2025 rate schedules the brackets run from 1% to 12.3%, so pick the bracket your income reaches in the year of sale rather than guessing.
If you exchange a California cabin for a property in another state, the gain stays California-sourced. That means an FTB 3840 information return in the exchange year and again every following year, until a California return finally reports the deferred gain, and the board can estimate and assess tax if you skip it. Owners who live outside the state should also read our guide on California withholding.
What the Estimate Leaves Out
- Boot. Cash or other non-like-kind property you take out is taxed as gain up to the amount received, so buying a cheaper replacement can leave some tax due.
- Bracket math. For 2025 the 0% federal rate covered taxable income up to $96,700 on a joint return and 15% applied up to $600,050, with 20% above that, according to the IRS. Thresholds move each year.
- NIIT thresholds. The 3.8% surtax hits only the smaller of your investment income or the slice of modified AGI over the line for your filing status ($250,000 on a joint return).
- Related-party sales, which can undo the deferral if either side sells within two years.
- Reporting. The exchange goes on federal Form 8824.
Treat every figure here as a planning estimate. A CPA should check your real numbers before the cabin goes on the market.
Selling or Replacing a Cabin
An exchange works best when the replacement property earns its keep. If you are trading into another mountain rental, send us the addresses you are considering during the 45-day window and our team can prepare a free rental estimate on each one, so the income side is not a guess. The cabins we manage are marketed on the big booking platforms and through this website, and owners choose between hosting help and full-service management. For pricing, ask us for our rate.
Questions owners ask
Does a 1031 exchange erase the tax?
No. It defers it. The deferred gain carries into the replacement property and is generally taxed when that property is later sold in a taxable sale.
Can I exchange a cabin for a rental in Arizona?
California's own instructions plan for exactly that kind of trade, a California property swapped for like-kind property in another state. The catch is paperwork: form FTB 3840 every year until the California share of the gain is reported.
What happens if day 45 falls on a weekend?
The regulation counts calendar days and ends the period at midnight on day 45. Plan as if there is no extension and deliver your written list early.
Why is recapture taxed differently from the rest of the gain?
Gain that traces back to depreciation you deducted on the building gets its own federal ceiling of 25%, rather than the 15% or 20% that applies to the rest. IRS Topic 409 calls it unrecaptured section 1250 gain.
Do I need an intermediary?
Most delayed exchanges use one. The Form 8824 instructions say that when a qualified intermediary handles the transfers, the deal is treated as a like-kind exchange. Ask your CPA how the sale money must be held until the new home closes.
Sources
- IRS Instructions for Form 8824, Like-Kind Exchanges
- 26 CFR 1.1031(k)-1, Treatment of deferred exchanges
- Revenue Procedure 2008-16, Internal Revenue Bulletin 2008-10
- IRS Topic No. 409, Capital gains and losses
- IRS Topic No. 559, Net investment income tax
- FTB, Capital gains and losses
- FTB, 2025 California Tax Rate Schedules
- FTB, 2025 Instructions for Form FTB 3840, California Like-Kind Exchanges
Checked November 2026. Rules change.





