Can I gift stock to my spouse filing separately to avoid NIIT?

My wife and I have been filing separately for a few years because of some complicated deductions on her side. This year I sold a good chunk of appreciated stock and I'm worried about hitting the NIIT threshold on my MFS return. Someone mentioned I could gift the stock to her before the sale so the gain lands on her return instead, where she might be under the threshold. I looked at the gift tax rules but got confused about whether a spousal gift even needs Form 709, and whether the IRS would just reattribute the income back to me anyway. Has anyone actually tried shifting investment income between spouses this way, and does it hold up?

32 comments

Gifts between spouses who are both U.S. citizens are covered by the unlimited marital deduction, so no Form 709 is required and there's no gift tax regardless of the amount. That part is clean. The harder question is whether the strategy actually works for NIIT purposes, and the answer depends on when the gift happens. If you transfer the shares to her before she sells them, the gain is hers and goes on her Schedule D. The IRS doesn't reattribute that. The step transaction doctrine is the risk — if she sells the day after you gift it, an auditor could argue the gift and the sale were really one transaction you orchestrated.

Nina S.

Author

So the timing gap between gift and sale is the key variable. I wasn't planning to have her sell immediately — more like a few weeks. Does a few weeks help or does the IRS still look at intent?

Weeks help more than days, but "intent" is exactly what the IRS and Tax Court look at under the step transaction doctrine. If email or brokerage records show you arranged the sale before you gifted the shares, timing alone won't save you. The substance has to be a real transfer of ownership and control before any sale is arranged.

The NIIT threshold for MFS is not the same as for MFJ — it's lower. So you need to check whether her income is high enough that the gain on her return would still be subject to NIIT anyway. The plan helps most if her modified adjusted gross income, including the transferred gain, stays under her threshold, because NIIT applies to the smaller of net investment income or the MAGI excess. Check the Instructions for Form 8960 for how net investment income is calculated and where the threshold appears by filing status.

Nina S.

Author

That's a really good point I hadn't thought through. What line on Form 8960 shows the threshold comparison?

Form 8960 line 13 is where you enter the modified adjusted gross income, and line 14 is the threshold for your filing status. The tax at line 17 only applies if line 13 exceeds line 14. Run her projected numbers before assuming the gift helps — if her other income is already close to the MFS threshold, the gain could just be taxed on her return instead of yours.

There's also the basis question. When you gift appreciated stock, the recipient takes your carryover basis, not a stepped-up basis. So your wife would have the same built-in gain you had. The gift doesn't eliminate the gain, it just moves it to a different return. If NIIT avoidance is the goal, that only works if her modified adjusted gross income stays under her threshold after absorbing the gain.

Carryover basis on a gift is right. Worth noting that this is different from inherited property, which gets a step-up in basis under section 1014. Gifts between living spouses don't get that treatment.

Went through something close to this last year. My spouse and I file separately and I was looking at a large dividend income shift. I uploaded my draft Form 8960 and our two Schedule Ds to taxr.ai and it compared the numbers side by side, flagged that her MFS threshold was lower than I expected, and laid out exactly how much of the gain would still be exposed to NIIT on her return. Saved me from a plan that would have moved the gain but not the tax. Still worth running by a CPA before you act, especially if the amounts are significant.

Nina S.

Author

Seeing both returns compared side by side is what I need before moving anything. I'll try that before I do anything.

One thing people get wrong here: the unlimited marital deduction on gifts applies to U.S. citizen spouses. If your spouse is not a U.S. citizen, the marital deduction is limited and gifts above the annual exclusion amount require a Form 709. The Instructions for Form 709 have the details. Assuming your wife is a citizen, you're fine on the gift tax side, but the NIIT math still has to work.

Nina S.

Author

She's a citizen, so that shouldn't be an issue. Good flag though.

The step transaction concern is real but courts have generally required a pretty clear pre-arrangement to collapse the steps. A gift where the donee spouse independently decides to sell — with no prior agreement — is on much stronger footing. Document everything: transfer the shares into her account, let her make the sell decision independently, and keep records showing the gift was complete before any sale was discussed.

I had a similar question about shifting income between spouses to manage the NIIT and uploaded my Form 8960 workpapers and brokerage statements to Taxr. It read through both spouses' projected MAGI, ran the threshold comparison by filing status, and drafted a summary showing which spouse ended up with the lower NIIT exposure under different scenarios. Really useful for seeing the whole picture before committing to a strategy. A tax attorney is probably worth it here if the numbers are large, since the step transaction risk is a legal question, not just a math one.

The attorney point is solid. NIIT planning that involves shifting assets between spouses is exactly the kind of thing that can look fine on paper and then attract scrutiny if the amounts are large and the timing is tight.

Does your wife have any capital loss carryovers on her return? If she does, those would offset the gain you gift her, which could reduce or eliminate the NIIT exposure on her return even if she's otherwise over the threshold. Worth pulling her prior-year Schedule D to check.

Nina S.

Author

She actually might have some from a few years ago. I'll check her prior returns before we do anything.

Loss carryovers show up on Schedule D line 6 (short-term) and line 14 (long-term). If they're large enough they could absorb a chunk of the gifted gain entirely.

Separate filing already costs you a lot — you lose certain deductions and credits that MFJ gets. Before going down the gift-and-sell path, it might be worth modeling whether switching to MFJ this year would actually reduce your combined tax bill even with the NIIT on the full gain. Sometimes MFS is a habit that stopped being optimal years ago.

Nina S.

Author

We've modeled it before and MFS is still better for us overall, but it's a fair point that it should be revisited.

Fair enough. If you've already run the comparison recently and MFS wins, then the gift strategy is worth exploring. Just flagging it because a lot of people stay on MFS autopilot.

To be clear on the gift mechanics: you transfer the shares in kind from your brokerage account to hers. There's no sale by you, so no gain recognized by you at the time of transfer. Your basis and your holding period carry over to her. She then sells and reports the gain on her Schedule D. That's the whole transaction if the gift is real and complete before any sale is arranged.

Worth mentioning that if the gain is long-term on your end, it carries over as long-term for her too because the holding period transfers with a gift. That matters for both the capital gains rate and for NIIT, since NIIT applies to net investment income without regard to whether the gain is short or long term.

Holding period tacks on a gift, correct. Section 1223(2) covers that.

Has anyone looked at whether this kind of pre-sale gift has been litigated? I know the step transaction doctrine gets cited a lot but I'm curious whether there are actual Tax Court cases on spousal gifts specifically before a sale.

There's a body of case law on the broader "assignment of income" doctrine going back decades. The spousal gift version is less litigated because the marital deduction makes it clean on the gift tax side, but the substance-over-form and step transaction arguments still apply. A tax attorney would know the current state of the cases better than any of us.

The strategy also only makes sense if the sale is actually hers to make. If the stock is in a joint account or if you retain any control over when or how it's sold, the IRS could argue you realized the income. The gift has to be a complete transfer — she controls the account, she decides to sell.

Nina S.

Author

We have separate brokerage accounts, so I'd be moving the shares to her account outright. That should satisfy the "complete transfer" requirement.

Separate accounts make it cleaner. Keep the confirmation of the transfer and don't discuss the sale with her beforehand in any written communication. Paper trail is everything if this ever gets questioned.

Circling the marital deduction point back to Form 709: even though no gift tax is owed on a spousal gift to a U.S. citizen spouse, you may still want to document the transfer carefully with your brokerage. The IRS won't require a 709 for this, but having a record of the transfer date and the shares transferred protects you if the step transaction question ever comes up.

Bottom line for the original question: yes, gifting appreciated stock to a spouse before a sale is a recognized technique and the gift itself is clean under the marital deduction. The risks are the step transaction doctrine if the sale follows immediately, and the NIIT math may not help if her income already reaches the $125,000 MFS threshold, which is the same for both of you. Run the Form 8960 numbers for both spouses before deciding, and involve a CPA or tax attorney if the gain is substantial.

Nina S.

Author

This is a good summary. I'm going to run the 8960 numbers, check her loss carryovers, and talk to a CPA before doing anything. Thanks everyone.