You can generally avoid capital gains tax in a divorce because Section 1041 of the Internal Revenue Code treats property transfers between spouses, or between former spouses when the transfer is incident to the divorce, as nontaxable events.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The transferring spouse reports no gain and owes no tax. The catch is that the tax isn’t erased. It’s deferred, and it lands on whoever ends up with the appreciated asset. Structuring the settlement around that deferred liability, rather than around headline market values, is what actually avoids a lopsided outcome.
What Section 1041 Does and Doesn’t Do
Section 1041 covers every type of property: real estate, stock, business interests, vehicles, art. It doesn’t matter how much the asset has appreciated. As long as the transfer qualifies, the IRS treats it like a gift for tax purposes, and the person handing over the asset walks away with no tax bill.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce
What the rule doesn’t do is wipe out the built-in gain. The recipient takes a carryover basis, meaning they inherit whatever the original owner paid for the asset, plus any capital improvements.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce When they sell, they owe capital gains tax on the difference between the sale price and that original basis.
The Carryover Basis Problem in Settlement Math
This is where a settlement that looks equal on paper quietly stops being equal. Say one spouse bought stock 15 years ago for $50,000 and it’s now worth $300,000. When that stock transfers in the divorce, the recipient’s basis stays $50,000. Sell the next day and there’s tax on $250,000 of gain.
So a 50/50 split by market value can be badly skewed. Cash of $300,000 is worth $300,000 after tax. Stock worth $300,000 with a $50,000 basis might net closer to $250,000 after federal and state capital gains tax. Every settlement should compare after-tax values, not sticker prices.
The practical fix is to equalize by net value. The spouse who takes low-basis assets should receive additional cash or high-basis property to offset the future tax. Some settlements use a tax-effected valuation, where each asset’s market value is reduced by the estimated capital gains tax to produce an adjusted number for division. The agreement itself should identify which assets carry a low basis and estimate the embedded tax, both for fairness and to document that the split was deliberately structured around after-tax values.
Closely held businesses deserve extra care. Years of depreciation, partnership distributions, or S corporation losses can push the owner’s basis close to zero, so a business valued at $2 million might carry nearly $2 million of embedded gain. The spouse who keeps the business should either receive a discount for that latent tax or hand over more of the other assets.
Timing Rules That Keep the Transfer Tax-Free
Section 1041 protects transfers between people who are still legally married automatically. After the divorce is final, the transfer has to be “incident to the divorce” to qualify.
The statute gives a bright-line safe harbor: any transfer within one year after the marriage ends qualifies automatically.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce Between one and six years out, a transfer still qualifies if it’s carried out under a divorce decree, written separation agreement, or a modification of either.2eCFR. 26 CFR 1.1041-1T – Treatment of Transfer of Property Between Spouses or Incident to Divorce (Temporary) Without that written instrument, even a year-two transfer can fail.
Beyond six years, or any time without a divorce or separation instrument behind it, the IRS presumes the transfer isn’t related to the divorce.2eCFR. 26 CFR 1.1041-1T – Treatment of Transfer of Property Between Spouses or Incident to Divorce (Temporary) You can rebut that, but the burden is yours. A settlement agreement with specific transfer timelines is the best defense.
The Marital Home
The house is usually the largest appreciated asset, and it gets its own rules. Section 121 lets you exclude up to $250,000 of gain when you sell your principal residence, or $500,000 on a joint return, provided you owned and lived in the home for at least two of the five years before the sale.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence4Internal Revenue Service. Topic No. 701 – Sale of Your Home
Divorce complicates the use test because one spouse typically moves out. Once you’ve been out for three years, the five-year lookback no longer contains two years of your residence. Two rules exist to prevent that loss.
Ownership Carryover
If you receive the home through a Section 1041 transfer, you’re treated as having owned it for the entire time your former spouse owned it.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence That solves the ownership prong but not the use prong.
Use Attribution for the Spouse Who Moved Out
The spouse who left can count the time the other spouse lives in the home as their own period of use, as long as the occupying spouse’s right to live there is granted under a divorce or separation instrument.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Without that language in the decree, the non-occupying owner can’t use this attribution rule.6Internal Revenue Service. Publication 523 – Selling Your Home
Selling Before the Divorce Closes
If the home has appreciated by more than $250,000, selling while the divorce is pending and filing a joint return that year lets both spouses use the full $500,000 exclusion.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence Once the divorce is final and one spouse keeps the home, only the $250,000 individual exclusion is available. In a high-appreciation market, timing the sale can save tens of thousands.
Retirement Accounts
Retirement money moves through a different mechanism. A Qualified Domestic Relations Order assigns a portion of a 401(k), pension, or other qualified plan to the non-participant spouse without triggering income tax or the 10% early withdrawal penalty at the time of transfer.7Internal Revenue Service. Retirement Topics – QDRO: Qualified Domestic Relations Order The receiving spouse can roll the funds into their own IRA and keep deferring tax, or take a distribution and pay income tax at their own rate.
There’s a quiet advantage worth knowing about. If the receiving spouse takes the money directly from the plan under the QDRO rather than rolling it over, the 10% early withdrawal penalty doesn’t apply even if they’re under 59½.7Internal Revenue Service. Retirement Topics – QDRO: Qualified Domestic Relations Order The exception is only for distributions taken directly from the qualified plan under the QDRO, not for money first rolled into an IRA and then withdrawn.
IRAs don’t use QDROs. Instead, IRA funds move as a “transfer incident to divorce” under the same Section 1041 framework. The decree or settlement agreement specifies the transfer, and the custodian retitles the account or moves the funds without tax consequences.
Don’t treat retirement dollars and taxable dollars as interchangeable. A dollar in a 401(k) is worth less than a dollar in a brokerage account because the whole balance will eventually be taxed as ordinary income when withdrawn. Mixing the two without adjusting for that difference produces settlements that look equal and aren’t.
When Section 1041 Doesn’t Apply
The tax-free rule has one categorical exception: it doesn’t apply if the receiving spouse or former spouse is a nonresident alien.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce If your spouse lives abroad and isn’t a U.S. tax resident, transferring appreciated property to them is a taxable event, and the transferring spouse pays the tax. Couples in that position generally need to restructure the settlement around cash or other mechanisms.
Section 1041 can also fail on timing, as noted above: a transfer more than six years after the divorce, without a written instrument tying it to the original division, will be treated as a taxable sale or gift.
The Tax Bill When You Eventually Sell
The deferred tax comes due when the recipient sells. The gain is the sale price minus the carryover basis inherited from the former spouse. Whether that gain gets long-term rates depends on the combined holding period.
You get to add your former spouse’s holding period to your own for the one-year long-term threshold.8Office of the Law Revision Counsel. 26 U.S. Code 1223 – Holding Period of Property If your ex held the stock three years before transferring it, your holding period reaches back to their original purchase date. Most divorce-related assets easily clear the one-year mark.
Long-term capital gains are taxed at 0%, 15%, or 20%, depending on taxable income.9Office of the Law Revision Counsel. 26 USC 1222 – Short-Term and Long-Term Capital Gains and Losses For 2026, single filers pay 0% on long-term gains up to $49,450, 15% between there and $545,500, and 20% above that. Short-term gains, if the combined holding period is a year or less, are taxed at ordinary income rates.
High-income sellers also owe the 3.8% Net Investment Income Tax on capital gains once modified adjusted gross income crosses $200,000 for single and head-of-household filers, or $125,000 if married filing separately.10Internal Revenue Service. Topic No. 559, Net Investment Income Tax Those thresholds don’t adjust for inflation. A single large sale can push you well above them, so spreading sales across tax years, where the timing is yours to control, can reduce the surtax.
When you report the sale, use your former spouse’s original acquisition date and their carryover basis, not the value at the time of divorce. This is a common and expensive error when the divorce happened years earlier and purchase records are hard to reconstruct. Collecting basis documentation during the settlement, including purchase records, closing statements, brokerage confirmations, and records of capital improvements, is worth the effort while everything is still accessible.