You can avoid capital gains tax in a divorce by moving property between spouses under Section 1041 of the Internal Revenue Code, which treats the transfer as a nontaxable event. The tax isn’t erased, though. It travels with the asset: the spouse who receives appreciated property inherits the original cost basis and owes the capital gains tax whenever they sell. Keeping more of your settlement comes down to using the Section 1041 shield correctly, timing the sale of the home, handling retirement accounts through the right mechanism, and dividing assets by their after-tax value rather than their sticker price.
What Section 1041 Actually Protects
Under Section 1041, no gain or loss is recognized when you transfer property to your spouse or to a former spouse if the transfer is incident to the divorce.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The transferring spouse reports nothing. The rule covers every kind of property: real estate, stock, business interests, vehicles, art. Appreciation doesn’t matter. For tax purposes, the IRS treats the handoff like a gift.
The protection is automatic while you’re still married. It stays automatic for one year after the marriage ends. After that, the rules tighten, and knowing the deadlines matters as much as knowing the shield exists.
Divide by After-Tax Value, Not Market Value
Section 1041 defers the tax by shifting it to the recipient through a carryover basis. The spouse who receives the asset takes over the original owner’s cost basis: what was paid for it, plus any capital improvements.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce
This is where settlements quietly go wrong. Imagine stock bought 15 years ago for $50,000, now worth $300,000. If that stock transfers to you in the divorce, your basis is still $50,000. Sell it the next day and you owe tax on $250,000 of gain. The transfer was tax-free, but you walked away with a $250,000 tax bill attached.
Splitting the marital estate 50/50 by current market value looks equitable and often isn’t. $300,000 in cash is worth $300,000. $300,000 in low-basis stock may be worth closer to $250,000 once federal and state capital gains taxes are paid. The fix is to compare assets by their net, after-tax value and to balance the division accordingly. A spouse taking the low-basis assets should receive additional cash or higher-basis property to offset the embedded tax.
Closely held businesses deserve special attention. Years of depreciation deductions, partnership distributions, or S corporation losses often grind the owner’s basis down to near zero. A business valued at $2 million can carry a tax bill that nothing in the current balance sheet signals. Whoever keeps the business absorbs that liability; the other spouse should receive enough offsetting assets to make the division genuinely equal once taxes are counted.
Write the embedded tax into the settlement agreement. Identify which assets carry a low basis, estimate the deferred tax, and record that the division was built around after-tax values. That documentation protects both parties later.
The Marital Home: Time the Sale Before the Divorce Closes
The home usually carries the largest unrealized gain, and it has its own rule. Section 121 lets you exclude up to $250,000 of gain on the sale of a principal residence, or up to $500,000 on a joint return, if you owned and used the home as your main home for at least two of the five years before the sale.2Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence3Internal Revenue Service. Topic No. 701 – Sale of Your Home
If the home has appreciated by more than $250,000, the single biggest move is to sell before the divorce is final and file a joint return for that year. That preserves the full $500,000 exclusion for both of you. Once the divorce closes and one spouse keeps the house, only the $250,000 individual exclusion is available on a later sale. In high-appreciation markets, this timing choice can save tens of thousands of dollars.
If one spouse keeps the home instead, two rules protect the eventual sale. A spouse who receives the home through a Section 1041 transfer is treated as having owned it for the entire time the other spouse owned it, which covers the two-year ownership requirement.2Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence And the spouse who moved out can count the time the other spouse continues to live in the home as their own period of use, provided the right to live there is granted under a divorce or separation instrument.4Internal Revenue Service. Publication 523 – Selling Your Home Without that language in the decree, a non-occupying owner who sells more than three years after moving out can fail the use test and lose the exclusion entirely. Make sure the decree spells out the occupying spouse’s right to the home.
Retirement Accounts: Use the Right Transfer Mechanism
Retirement accounts don’t move under Section 1041 in the same way other property does. A 401(k), pension, or other qualified plan is divided through a Qualified Domestic Relations Order. A QDRO assigns a portion of the plan to the non-participant spouse without triggering income tax or the 10% early withdrawal penalty at the time of transfer.5Internal Revenue Service. Retirement Topics – QDRO: Qualified Domestic Relations Order The receiving spouse can roll the funds into their own IRA to keep deferring tax, or take a distribution and pay ordinary income tax at their own rate.
There is one unusual advantage worth knowing. If the receiving spouse takes money directly from the plan under the QDRO instead of rolling it over, the 10% early withdrawal penalty does not apply even if they’re under age 59½.5Internal Revenue Service. Retirement Topics – QDRO: Qualified Domestic Relations Order The exception only covers distributions taken straight from the qualified plan under the QDRO. Roll the money into an IRA first and then withdraw it, and the penalty is back.
IRAs are different. They don’t use QDROs. IRA balances move between spouses as a “transfer incident to divorce” under the Section 1041 framework, with the custodian retitling the account or moving the funds to the receiving spouse’s IRA tax-free.
Don’t treat retirement dollars and brokerage dollars as interchangeable. Every dollar inside a traditional 401(k) will eventually be taxed as ordinary income on withdrawal, so it’s worth less than a dollar in a taxable account. Mixing the two categories in settlement math without adjusting for that difference produces a split that looks equal and isn’t.
Deadlines for Transfers After the Divorce Is Final
A transfer to a former spouse only qualifies for Section 1041 treatment if it’s incident to the divorce. The statute gives a safe harbor: any transfer within one year after the marriage ends automatically qualifies.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce
Transfers between one and six years after the divorce still qualify if they’re carried out under a divorce decree, written separation agreement, or a modification of either. Without that written instrument, even a transfer in year two can fail. Anything more than six years out, or any transfer at any time not made under a divorce or separation instrument, is presumed by the IRS to be unrelated to the divorce.6eCFR. 26 CFR 1.1041-1T – Treatment of Transfer of Property Between Spouses or Incident to Divorce (Temporary) You can rebut the presumption, but the burden sits with you, and the IRS will want to see that legal or business obstacles blocked an earlier transfer and that you acted promptly once they cleared.
The practical lesson: put every post-divorce transfer, with specific timelines, into the settlement agreement itself.
When Section 1041 Won’t Save You
Section 1041 does not apply when 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 in the divorce is a taxable event for you. You recognize the gain and owe the tax at the time of the transfer. Couples in this situation often need to use cash or other mechanisms rather than hand over appreciated assets.
The protection also fails if you miss the timing rules above. A transfer to a former spouse more than six years after the divorce, with no documentation tying it to the original property division, is treated as a taxable sale or a gift.
What You’ll Owe When You Eventually Sell
The deferred tax bill lands when the recipient sells. The taxable gain is the sale price minus the carryover basis inherited from the former spouse, not the value of the asset on the date of divorce. Using the fair market value at divorce as basis is a common and expensive mistake on the return.
The holding period carries over too. You include your former spouse’s holding period when determining whether the sale qualifies for the lower long-term capital gains rates.7Office of the Law Revision Counsel. 26 U.S. Code 1223 – Holding Period of Property For most assets divided in a divorce, the combined period easily exceeds one year, so the gain qualifies for long-term rates of 0%, 15%, or 20% depending on your taxable income.8Office of the Law Revision Counsel. 26 USC 1222 – Short-Term and Long-Term Capital Gains and Losses
High-income sellers also face the 3.8% Net Investment Income Tax on capital gains once modified adjusted gross income passes $200,000 for single and head-of-household filers, or $125,000 for married filing separately.9Internal Revenue Service. Topic No. 559, Net Investment Income Tax A single large sale can push you well over the threshold in one year, so spreading sales across multiple years, where possible, keeps more of the proceeds.
Gather the basis records during the divorce, not years later: purchase documents, closing statements, brokerage confirmations, receipts for capital improvements. Tracking down a cost basis from a stock purchase your ex made 15 years earlier is painful, and without the records the IRS can treat your basis as zero.