Cabin / lake house / mountain home

Selling a Cabin: Capital Gains Tax Calculator

Short answer: a cabin is usually a second home, so the gain is fully taxable with no $250,000/$500,000 exclusion. Family cabins add three twists most calculators ignore: the cabin is often in a different state from where you live, the basis is often inherited or stepped up, and the sale often lands in a year when you are retired and Medicare is watching your income.

Enter what the cabin sold for and what it cost (or was worth when you inherited it), pick the state where it sits, and see the tax plus the effect on Social Security and Medicare.

By Hans Goldstein, EA, Enrolled Agent, enrolled to practice before the IRS. Updated December 2026.

2027 federal brackets (IRS Rev. Proc. 2026-35), SSA Section 86 thresholds, CMS 2027 Medicare premiums and IRMAA tiers, state rates as of December 2026. Estimates, not tax advice.

Worked example

A married couple, 63 and 62, living in California, sell the family lake cabin in Oregon for $650,000. They paid $180,000, added $40,000 of improvements (a deck and a new roof) and pay $39,000 in selling costs. They have $70,000 of other income.

Worked exampleAmount
Taxable gain$391,000
Federal tax on the gain$48,855
Net investment income tax (3.8%)$8,018
Oregon tax on the gain$38,709
Tax most calculators show$95,582
Extra tax on Social Security the sale makes taxable ($0 more taxable)$0
Medicare Part B + D surcharge two years later$6,587
Real cost$102,169

Cabin sales are taxed in the state where the cabin sits

A cabin sale is taxed twice at the state level in the way people expect: the state where the property is located taxes the gain, and your home state may also tax it, with a credit for tax paid to the first state. The net effect is that you pay the higher of the two rates, not the sum. If your home state has no income tax, you still owe the cabin state's tax on the gain, often through a nonresident return. The calculator's State where the property is field models that.

Inherited cabin? Your basis resets to its value at death

If you inherited the cabin, your basis is generally its fair market value on the date the owner died, not what they paid. That is the step-up in basis under IRC Section 1014. Gain that built up before then is never taxed, and the sale is automatically long-term no matter how soon you sell. For a full inherited property walkthrough, see the inherited property calculator.

If instead the cabin was gifted to you, you keep the donor's basis, and a low basis means a larger gain.

What if the cabin was a rental?

Weeks rented to others change the picture. Depreciation claimed on the rented share is taxed at up to 25% when you sell, and a cabin rented heavily may be a rental property. See the rental property capital gains calculator.

Frequently asked questions

Do I pay capital gains tax when I sell a cabin?

Yes, on the gain: the sale price minus selling costs minus your adjusted basis. A cabin used as a second home gets no Section 121 exclusion. Long-term gain is taxed at 0%, 15% or 20% federally, plus 3.8% NIIT when income is high, plus state tax.

Which state do I pay tax to when selling a cabin in another state?

The state where the cabin sits taxes the gain, and your home state may also tax it with a credit for the tax paid to the first. Use the state fields above to see the combined result.

Can I avoid capital gains on a cabin I inherited?

You are taxed only on gain since the date the owner died, because your basis is stepped up to its value then. If you sell for about that value, there may be little or no gain.

What improvements increase my cabin basis?

Capital improvements that add value or extend the life of the cabin: an addition, a new roof, a new well or septic system, a dock, a deck. Routine repairs and maintenance do not count.

Is selling a cabin different from selling a house?

Mostly in the exclusion. A main home can exclude up to $250,000 ($500,000 married). A cabin that is not your main home cannot, so the whole gain is taxed.

Does a cabin sale affect Medicare premiums?

A taxable gain adds to your modified adjusted gross income. If you are 63 or older, that income can raise your Medicare Part B and D premiums two years later. The calculator shows the tier effect.

Run it on your real return

A free 15-minute call with Hans Goldstein: which levers fit your sale, what the Social Security and Medicare effects look like on your actual numbers, and what to ask your CPA.

Book 15 minutes 213-414-2808

Educational estimate, not tax, legal or financial advice. Figures use 2027 federal brackets and thresholds (IRS Rev. Proc. 2026-35), the Social Security benefit-taxation rules in IRC Section 86, CMS 2027 Medicare premiums and IRMAA tiers, and state rates as of December 2026 (California uses the FTB 2026 schedule until the 2027 schedule is published). Later Medicare years hold the 2027 tiers flat. Your CPA should confirm any figure before you act. By Hans Goldstein, EA, Enrolled Agent (enrolled to practice before the IRS), reviewed December 2026.

Run my numbers Book 15 min Call

Hans Goldstein is an Enrolled Agent, enrolled to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.