Protecting the money from a house sale comes down to two moves: cut the tax owed on the gain, then get the net proceeds into a form creditors can’t easily reach. Home equity enjoys real protection under federal tax law and most state homestead statutes, but that protection thins the moment the sale closes and the money lands in a bank account. The planning window is narrow, and the tools — the Section 121 exclusion, installment sales, homestead proceeds rules, and irrevocable trusts — work best when lined up before the closing date, not after.
Start With the Section 121 Exclusion
Federal law lets you exclude up to $250,000 of gain on the sale of your main home from federal income tax, or up to $500,000 if you’re married filing jointly.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence To qualify, you must have owned the home and used it as your primary residence for at least two of the five years before the sale. The two years don’t need to run consecutively. You could live there 14 months, move out for a year, move back for 10 months, and still meet the test.
You can only use the exclusion once every two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If you claimed it on a different home within the past two years, this sale doesn’t get it.
Gain itself is the net sale price minus your adjusted basis, and basis is where most sellers leave money on the table. Basis is the original purchase price plus capital improvements: a new roof, a kitchen renovation, added square footage. Keeping receipts for major improvements is the single simplest way to shrink your taxable gain, and it’s the step people skip most often.
If You Sell Before Two Years
A reduced exclusion is available when the sale is driven by a job move, a health condition, or certain unforeseen circumstances. For a work-related move, the new job must be at least 50 miles farther from the home than your old workplace was.2Internal Revenue Service. Publication 523 – Selling Your Home
The math is a fraction: qualifying months divided by 24 (or days divided by 730), multiplied by the $250,000 or $500,000 cap.2Internal Revenue Service. Publication 523 – Selling Your Home Fifteen qualifying months as a single filer forced to move for a job produces 15/24 × $250,000 = $156,250 of exclusion. Not the full amount, but real protection.
What You Owe on Gain Above the Exclusion
Anything above the exclusion is taxed as a long-term capital gain if you owned the home more than a year. For 2026, the federal rates track your total taxable income:3Internal Revenue Service. Revenue Procedure 2025-32
- 0% on taxable income up to $49,450 single, $98,900 joint, or $66,200 head of household.
- 15% above those thresholds up to $545,500 single, $613,700 joint, or $579,600 head of household.
- 20% above the 15% ceiling.
The 3.8% Net Investment Income Tax stacks on top once modified adjusted gross income clears $200,000 single or $250,000 joint.4Internal Revenue Service. Net Investment Income Tax Those thresholds have not been indexed since 2013, so they catch more sellers every year. The NIIT applies to the lesser of your net investment income or the amount by which your income exceeds the threshold, not to your entire gain.
State tax is the layer people underestimate. About nine states impose no individual income tax on capital gains; in the rest, rates run from roughly 2% to over 13%. A $200,000 taxable gain after the federal exclusion can produce anywhere from $6,000 to $26,000 of state tax depending on where you live. Build that into your net-proceeds estimate before you spend anything.
Spread the Tax With an Installment Sale
If you don’t need all the cash at closing, an installment sale spreads the taxable gain over multiple years instead of piling it into one. Any sale where at least one payment arrives after the end of the tax year of closing qualifies.5Office of the Law Revision Counsel. 26 USC 453 – Installment Method You calculate a gross profit percentage — total profit divided by contract price — and apply it to each payment as it comes in. You report the installment income each year on Form 6252.6Internal Revenue Service. Publication 537 – Installment Sales
The practical value is keeping annual income lower, which can hold you in a lower capital gains bracket or under the NIIT threshold. On a home selling well above the Section 121 cap, the savings can run into thousands over the life of the note. Personal-use property, including your home, is exempt from the Section 453A interest charge that applies to large business or investment installment obligations over $5 million.7Office of the Law Revision Counsel. 26 USC 453A – Special Rules for Nondealers
The tradeoff is that you’re now the lender. If the buyer defaults, you’ll need to foreclose or renegotiate. Secure the note with a deed of trust or mortgage on the property so you have a real remedy.
A Note on 1031 Exchanges
A 1031 exchange defers the entire capital gains tax by rolling proceeds into another qualifying property, but it only applies to property held for investment or business use.8Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Your personal residence doesn’t qualify. If you’re selling a rental or a second home you’ve held as an investment, the deadlines are unforgiving: 45 days from closing to identify replacement properties in writing, and 180 days to close on one (or your return’s due date, whichever is earlier). Miss either and the deferral disappears. The proceeds must flow through a qualified intermediary; if the money touches your account, the exchange fails.9eCFR. 26 CFR 1.1031(k)-1 – Treatment of Deferred Exchanges
Homestead Protection Does Not Follow the Money for Long
While the equity sits in the home, most states shield some of it from creditors under homestead exemption laws. Amounts vary widely — some states cap the exemption below $30,000, others offer unlimited protection on a primary residence. The federal bankruptcy exemption for 2026 is $31,575 per person, or $63,150 for a married couple filing jointly. States that allow it let you pick whichever is more generous.
The catch: the moment you sell, that shield starts to thin. Many states extend homestead protection to the cash proceeds for a limited window, typically six months to one year, so you have time to buy a replacement home. During that window, a judgment creditor generally cannot reach the exempt portion. The protection collapses if you mix the proceeds with other money in the same account, so open a dedicated account for the sale funds and don’t touch it until you’ve decided what’s next.
Married couples in states recognizing tenancy by the entirety get a second layer. Property held that way generally can’t be seized for a debt of only one spouse; only creditors with a judgment against both spouses can reach it. In some states that protection follows the proceeds as long as the funds stay identifiable as coming from entireties property.
None of these protections apply against your mortgage or against federal tax debt, and they won’t help against debts you incurred before establishing the homestead if the creditor recorded a judgment lien first.
Irrevocable Trusts for Larger Amounts
For sale proceeds well beyond what homestead law will cover, an irrevocable trust builds a more durable wall. Unlike a revocable trust, this one requires you to permanently give up ownership and control. A trustee, ideally independent, manages the funds for named beneficiaries. Because the money is no longer yours, it’s generally out of reach for personal creditors, future lawsuits, and divorce claims.
Funding an irrevocable trust is a completed gift for federal tax purposes. In 2026, you can give up to $19,000 per beneficiary without any gift tax reporting. Amounts above that draw down your $15,000,000 lifetime gift and estate tax exemption.10Internal Revenue Service. What’s New – Estate and Gift Tax Most people won’t owe actual gift tax, but Form 709 has to be filed for any transfer above the annual exclusion. Skipping the filing leaves the statute of limitations open, so the IRS can challenge the valuation indefinitely.
Assets inside an irrevocable trust also stay out of probate. They pass directly to beneficiaries, skipping the public court process along with its delay and cost. The trust document controls how distributions and investments work, so how flexible or restrictive it feels later depends on how carefully it’s drafted at the start.
Timing: Fraudulent Transfer Rules
Moving money into a trust or to family members after a sale does nothing for you if creditors are already circling. Nearly every state has adopted a version of the Uniform Voidable Transactions Act, which generally gives creditors four years to unwind a transfer. A court can reverse it if you got less than fair value and were insolvent at the time, or if the transfer was made to duck a known debt.
Timing decides the outcome. A trust funded five years before a lawsuit stands a much better chance than one funded six months before. If you have pending litigation, tax debts, or other serious liabilities on the horizon, moving sale proceeds into a trust will very likely be reversed, and the trust itself can be pierced, exposing everything inside. Asset protection works only when it’s done well before trouble arrives.
If You Receive Medicaid or SSI
Selling a home can quietly wreck eligibility for means-tested benefits. A primary residence is normally an exempt asset for Medicaid, so it doesn’t count toward the resource limit. Turn it into cash, and the proceeds do count. Medicaid’s individual resource limit in most states is $2,000. Going over that even briefly can end coverage.
Medicaid also runs a 60-month look-back on asset transfers. If you sold your home and gave the proceeds to family or moved them into a trust within five years of applying for Medicaid long-term care, the transfer triggers a penalty period during which you’re ineligible.11Office of the Law Revision Counsel. 42 USC 1396p – Liens, Adjustments and Recoveries, and Transfers of Assets The penalty length equals the transferred amount divided by the average monthly cost of nursing home care in your state, so a large transfer can lock you out for months or years.
Legitimate spend-down options include buying another primary residence, paying off debt, prepaying funeral expenses, purchasing medical equipment, or buying a Medicaid-compliant annuity. Each has its own rules, and the wrong move creates its own penalty.
SSI works similarly. If you sell and intend to buy a replacement home, the SSA gives you nine months before the proceeds count as a resource. After that, remaining cash pushes you over the SSI limit. Giving away proceeds or selling below market value to a relative can make you ineligible for up to 36 months depending on the amount.12Social Security Administration. Understanding Supplemental Security Income SSI Resources If you’re on either program, map out a reinvestment timeline before you list.