- Long-term gain
- Home held more than one year
- Depreciation share of gain
- Taxed at up to 25% federally
- Investment income tax
- 3.8% above $200,000 single, $250,000 joint
- California
- No lower rate for capital gains
- At closing
- Form 593 withholding unless exempt
Figuring the gain
Gain is the amount you realize minus your adjusted basis. Publication 544 defines the amount realized as all the money you receive, plus the fair market value of any property or services, plus any of your debts the buyer takes on. Adjusted basis is what you paid, increased by improvements with a useful life of more than a year and reduced by depreciation and casualty losses. Selling expenses, such as commissions, reduce the gain too; in the publication's worked example they are added to basis. Basis usually starts with what you paid, but a cabin received as a gift or an inheritance starts from a different figure, so confirm which rule fits before you run any numbers.
| Example cabin sale (round numbers) | Amount |
|---|---|
| Sale price | $850,000 |
| Purchase price and closing costs in basis | $600,000 |
| Plus improvements (new deck, roof, furnace) | $40,000 |
| Minus depreciation allowed or allowable | $110,000 |
| Plus selling expenses | $45,000 |
| Adjusted basis with selling costs | $575,000 |
| Gain | $275,000 |
Notice the depreciation line. Because basis falls with each year of depreciation the law entitled you to, claimed or not, a cabin that sells for about what you paid can still show a sizable gain. Our depreciation guide explains how that figure builds up.
How the federal tax is figured
IRS Topic 409 sorts gains by holding period. Own the property more than one year and the gain is long-term; one year or less and it is short-term and taxed like wages. You count from the day after you acquired the home through the day you sell it.
For 2025, long-term gains are taxed at 0, 15 or 20 percent depending on taxable income. The 0 percent rate applies up to $48,350 of taxable income for single filers and $96,700 for married couples filing jointly; the 15 percent rate runs to $533,400 for single filers and $600,050 for joint filers; income above that faces 20 percent. One slice is different. The share of gain that reflects building depreciation is taxed as unrecaptured section 1250 gain, capped at 25 percent. In the example above, up to $110,000 of the $275,000 falls in that slice. Topic 409 also warns that a taxable gain may mean estimated tax payments, so ask your CPA whether one is due for the quarter of the sale.
Furniture, appliances and other personal property sold with the home follow their own recapture rules, which matter more if you had a cost segregation study. Publication 523 notes that the rental part of a property sale is reported on Form 4797, and Topic 409 points to Form 8949 and Schedule D for summing up capital gains and losses.
The 3.8 percent net investment income tax
On top of the capital gains rate, IRS Topic 559 describes a 3.8 percent net investment income tax. For an individual it applies to the smaller of net investment income or the amount by which modified adjusted gross income exceeds $200,000 for single and head of household filers, $250,000 for joint filers, or $125,000 for married people filing separately.
Rents and gains are on the list of net investment income, but the IRS notes that rents derived in the ordinary course of a trade or business can fall outside it. Whether your cabin was run as a trade or business, and what that means for the gain, needs your CPA's judgment. A large sale can push your income over the threshold in that one year even if you are normally below it.
California taxes the gain as ordinary income
California does not have a lower rate for capital gains. The Franchise Tax Board says all capital gains are taxed as ordinary income, so the gain on a cabin is stacked on top of your other income at regular state rates. Moving out of state does not change the answer for this property. FTB Publication 1017 says income from California real property, including the gain on a sale, is California-source income subject to California tax.
The state gain may not match the federal gain. California does not follow federal bonus depreciation, so a cabin can carry a different adjusted basis on each return, and the difference is reported on California's own capital gain schedule. Keep the state depreciation schedule as carefully as the federal one.
Why the home sale exclusion rarely applies
The exclusion that lets homeowners keep up to $250,000 of gain tax-free, or $500,000 for a married couple filing jointly, is built for a main home. Publication 523 requires that you owned the home and lived in it as your residence for at least 24 months of the five years before the sale. You can have only one main home at a time, and a cabin used on weekends and rented the rest of the year does not qualify.
Even owners who move into the cabin before selling face two limits:
- Nonqualified use. Gain is not excludable to the extent it is allocated to periods after 2008 when neither you nor your spouse used the home as your main home. Rental years before you moved in count against you. Time after you move out, within the five-year window, does not.
- Depreciation. Gain equal to depreciation claimed, or allowable, after May 6, 1997 is taxed regardless of the exclusion.
For example, if you owned a cabin for six years, rented it for the first four and lived in it for the last two, about four-sixths of the gain (after setting aside the depreciation) is tied to nonqualified use. And if the cabin came to you through a 1031 exchange, section 121(d)(10) blocks the exclusion on any sale within five years of that exchange.
Suspended passive losses come back
There is one piece of good news at sale. If the rental produced losses over the years that the passive activity rules would not let you use, Publication 925 says those losses are generally allowed in full in the year you dispose of your entire interest in the activity. Two conditions apply: the sale has to be a transaction in which all realized gain or loss is recognized, and the buyer cannot be related to you.
Those carryovers sit on Form 8582 from prior years. Bring the last few returns to your CPA so none of them are missed, since they can offset a meaningful part of the gain.
Selling to family, or as a foreign owner
A sale inside the family brings extra rules. Publication 544 lists related persons to include siblings, half siblings, a spouse, ancestors and lineal descendants, along with certain corporations, partnerships and trusts. A loss on a sale to a related person is not deductible. Suspended passive losses are released only when the buyer is not related to you, according to Publication 925. And gain on a sale of depreciable property to an entity you control, such as a corporation or partnership in which you own more than half, is treated as ordinary income instead of capital gain.
Owners who are foreign persons face federal withholding as well. Publication 544 notes that when a foreign person sells a U.S. real property interest, the buyer may have to withhold income tax on the amount the seller receives. That is separate from California's Form 593 and needs its own planning with escrow.
Withholding at closing and other deferral routes
California withholds on most real estate sales. Under the 2026 Form 593 instructions, escrow keeps back an amount equal to 3 1/3 percent of what the buyer pays unless you choose the alternative calculation based on estimated gain or qualify for an exemption, and a vacation cabin cannot use the principal residence exemption on that form. The withholding is a credit on your California return, not an extra tax. Our page on California withholding works through an example.
Two routes can push the tax into later years. A like-kind exchange into another investment property defers the gain if every rule is met. An installment sale, where the buyer pays over time, spreads the payments; for California, the Form 593 instructions call for withholding on the down payment and on the principal of later payments unless the FTB approves an elect-out. Both need planning before the sale contract is signed.
Selling a home that is still booked
A rental cabin often has guests on the calendar months ahead. Decide early whether the buyer will honor those reservations or whether they will be moved or refunded under each platform's policies, and put that decision in the purchase contract. Settle it in writing so guests are not caught in the middle of the handover.
Close out the local obligations too. Ask the city or county what final occupancy tax filings and permit steps apply when ownership changes, since local rules differ and change. Our occupancy tax guide covers the filing side.
Records to bring your CPA
- The purchase closing statement and every improvement invoice since.
- Federal and California depreciation schedules, including any cost segregation study.
- Prior returns with Form 8582 passive loss carryovers.
- A history of any years you lived in the home as your main residence, and the date it was first offered for rent.
- Your estimated tax payments for the year of the sale.
- The sale closing statement, Form 593 and any Form 1099-S you receive.
This page reflects the rules as of November 2026, and tax brackets change each year, so have a CPA run your numbers before you list. If you are deciding between selling and keeping the cabin, compare the sale price with a current income estimate from our free rental evaluation.
Questions owners ask
Is all my gain taxed at the capital gains rate?
Not all of it. Gain traced to building depreciation is taxed at no more than 25 percent federally as unrecaptured section 1250 gain, and personal property sold with the home can be taxed as ordinary income.
Can I avoid tax by moving into the cabin for two years?
Often not by much. Gain is allocated to rental years after 2008 as nonqualified use, and gain equal to depreciation after May 6, 1997 is taxed regardless.
Do I owe California tax if I now live in another state?
Yes. The gain on California real property is California-source income, so the sale belongs on a California nonresident return, where any Form 593 withholding is claimed as a credit.
What happens to rental losses I could never deduct?
Suspended passive losses are generally allowed in full when you sell your entire interest to an unrelated buyer in a fully taxable sale.
Does the 3.8 percent tax apply to my sale?
It can, if your modified adjusted gross income for the year is above $200,000 single or $250,000 joint. Whether rental income and gain count depends partly on whether the rental was a trade or business.
Sources
- IRS Publication 544, Sales and Other Dispositions of Assets
- IRS Topic 409, Capital gains and losses
- IRS Topic 559, Net investment income tax
- IRS Publication 523, Selling Your Home
- 26 U.S. Code 121, Exclusion of gain from sale of principal residence
- IRS Publication 925, Passive Activity and At-Risk Rules
- FTB, Capital gains and losses
- FTB 2026 Instructions for Form 593, Real Estate Withholding Statement
- FTB Publication 1017, Resident and Nonresident Withholding Guidelines
Checked November 2026. Rules change.





