Planning a sale, move, or exit before 2028? Book a 20-min planning call →
Holding QSBS? Get a fixed-fee Section 1202 issue-spotting review →
Washington’s 9.9% income tax is now law. Get the Tax Planning Guide →
Washington State Taxes

You Can Pass the 30-Day Rule and Still Owe Washington Tax on Your Stock Sale

By Joe Wallin,

Published on Jun 13, 2026   —   6 min read

ESSB 6346Domicile Planning
Illustration: a person with a suitcase walks away from Seattle, but a golden thread ties them back to a stock certificate anchored in Washington

Summary

Washington's 30-day safe harbor makes you a nonresident — it doesn't change your domicile. Long-term stock gains are allocated by domicile at the time of sale, so the safe harbor alone won't protect your exit.

TL;DR

The 30-day rule’s real power is over tangible property — gold, art, collectibles — not your stock. Move those assets out of Washington, relocate to a no-tax state like Nevada, keep no home here, and spend 30 days or fewer in the state during the year, and Washington can’t tax the gain when you sell them — even if it argues you never truly shed your Washington domicile. That bright-line nonresident status is the whole point of the rule. Your company stock is the opposite story: it’s intangible, so Washington taxes the gain based on where you’re domiciled the day the sale closes, not on any day count. The same rule that protects your gold and your art does nothing for your equity — and that gap is what this post is about.

Bottom line: Washington's 30-day safe harbor can make you a nonresident. It cannot change your domicile. And when you sell stock, the tax doesn't ask whether you were a resident — it asks where you were domiciled on the day of the sale. Long-term gains on stock and other intangibles are allocated to Washington — and taxed under the 7% capital gains tax — if you were domiciled here when the sale occurred (RCW 82.87.100(1)(b)). That turns on domicile, not residency, so you can clear every prong of the safe harbor and still owe the capital gains tax on your exit. Washington's separate 9.9% income tax (ESSB 6346, effective January 1, 2028) reaches capital gains only for residents — it adds them back under §302(3) with a credit for the capital gains tax paid (§205) — but a nonresident's stock gain generally isn't Washington-source (§401(2)(f)), so becoming a nonresident shields the gain from the income tax even though domicile leaves it exposed to the capital gains tax.

Residency and domicile answer two different questions

The confusion is understandable, because the 30-day rule sounds like a complete escape. It isn't, because Washington's tax statutes use two distinct concepts:

Resident status is an annual classification determined by mechanical tests — whether you maintained a place of abode and how many days you spent in the state. The 30-day safe harbor operates here: a Washington domiciliary who keeps no Washington abode all year, maintains a home elsewhere all year, and spends 30 or fewer days in the state is treated as a nonresident for that year (RCW 82.87.020(10)(a); ESSB 6346 §101(8)).

Domicile is your one true, fixed, permanent home — the place you intend to return to whenever you're away. It doesn't reset each year, and no day count changes it. Domicile changes only when you actually move and intend to remain in the new place indefinitely. Until both happen, your old domicile sticks.

The safe harbor operates entirely on the first concept. It never touches the second. That gap is where the trap lives.

Here’s the part that should reframe how you read this rule: the 30-day safe harbor isn’t new. It has sat in the capital gains tax statute since 2022 — the standard residency definition states copy from one another. And it did serve a purpose there, just a very narrow one: it helped determine whether Washington could tax gains from sales of tangible personal property, the one place the capital gains tax’s allocation rules turn on residency at all. Your stock was never in reach — gains on stock and other intangibles are allocated by domicile, and the carve-out leaves domicile untouched, so for a founder selling equity the provision did nothing. ESSB 6346 then adopted the same definition into a broad income tax where residency is the master switch. The identical clause that once decided a narrow tangible-property question now decides whether Washington taxes your entire non-Washington income. Same words; the stakes went from narrow to enormous.

What nonresident status actually buys you

Becoming a nonresident is genuinely valuable — it cuts the cord that ties your worldwide income to Washington, leaving only Washington-source income on the table. For many people, the biggest wins are portfolio interest and dividends, short-term gains, wages for work performed outside the state, and retirement income.

But look at the right side of this chart — the income nonresident status does not protect:

What the 30-day safe harbor protects — and what it doesn’t The 30-day safe harbor is a residency test from the capital gains tax (RCW 82.87.020, 2022), adopted by the new income tax (ESSB 6346). It shields only non-WA-source income — never your stock sale, which follows domicile at the time of sale, not residency. ✓  SHIELDED Non-WA-source income · the safe harbor protects this ✗  STILL TAXED — WA-SOURCE A nonresident owes this regardless ✗  STILL TAXED — DOMICILE Source is irrelevant · only a real move escapes it Interest & dividends often the biggest win Wages earned outside WA Short-term capital gains Retirement & pension income Business income earned entirely outside WA Pay for days worked in WA WA real estate rents & gains WA business & pass-through income Intangibles tied to a WA business Long-term gains on stock Taxed under the 7% capital gains tax, not the income tax. Allocated to Washington by domicile at the time of sale (RCW 82.87.100(b)) — a residency test like the safe harbor can’t reach it. Usually the biggest number in an exit — and the safe harbor doesn’t touch it. 30-DAY SAFE HARBOR Sources: ESSB 6346 §§101(8), 302(3), 401–405; RCW 82.87.100(1)(b). Long-term gains follow domicile at the time of sale. Educational only — not legal advice.

Pay for Washington workdays, Washington business and pass-through income, and Washington real estate stay taxable for the obvious reason: they're sourced here. The long-term stock gain is the one that surprises people — because it follows a rule most readers of the 30-day rule never get to.

Why your stock sale doesn't care about the safe harbor

Under the capital gains tax, long-term gains from intangible personal property — stock, fund interests, crypto — are allocated to Washington if "the taxpayer was domiciled in this state at the time the sale or exchange occurred." RCW 82.87.100(1)(b). Read that rule again: resident status appears nowhere in it. The 30-day safe harbor is simply not the operative rule for a stock sale. ESSB 6346 then picks up the same allocation through §302(3), so the analysis carries forward into the 9.9% income tax era.

So the sequence that matters isn't abode-plus-day-count. It's: where was your domicile on the closing date?

The rule, reduced to one line: if you are domiciled in Washington on the day your sale closes, the gain on your stock is allocated to Washington — and no amount of day-counting, nonresident status, or safe-harbor compliance changes that. Domicile at closing decides whether the tax applies. Everything else — your standard deduction, a Section 1202 exclusion, a credit for tax paid to another state — only decides how much.

The trap, in one scenario

A founder sells her Seattle house in December 2027, buys a home in Incline Village, and spends 18 days in Washington during 2028 — no Washington abode, a maintained Nevada home, well under 30 days. She passes the safe harbor cleanly. She is a nonresident for 2028.

In June 2028, her company is acquired and she recognizes a $12 million long-term gain.

If the Department of Revenue concludes her domicile never genuinely left Washington — her professional and social life remains anchored in Seattle, her doctors and advisors are here, her belongings sit in a Bellevue storage unit while the Incline Village house stays sparsely furnished, and her own statements suggest she plans to return after the deal — the gain is allocated to Washington under RCW 82.87.100(1)(b). All three prongs of the safe harbor, satisfied perfectly, are beside the point. (And had her family stayed behind in a Seattle home, she would likely have flunked the abode prong of the safe harbor itself — the two failures often travel together, but they are independent.) Domicile turns on intent and the whole pattern of your life, and announcing the move doesn't establish it.

What actually protects a stock sale

A genuine change of domicile, completed before the sale date. That means the move is real and provable: home sold or genuinely surrendered, new permanent home established, family relocated, driver's license, voter registration, professional and medical relationships moved, estate plan updated to the new state — and conduct after the move consistent with staying. The order of operations matters: domicile first, sale second. If the gain lands while your domicile is still arguably in Washington, the day count won't save you.

The 30-day rule still matters — it's what keeps your other income out of Washington's reach in the year of the move, and we cover its three prongs in detail here. But for the sale itself, the planning lives in domicile. For how this interacts with timing a sale, see residency planning before you sell and, for QSBS holders, timing Section 1202, your sale, and your move.

Selling stock before — or after — a move?

Day counts are easy to plan. Domicile is where these cases are won and lost. If a sale is on your horizon, we can pressure-test whether your domicile change would hold up before the gain is on the table.

Book a 20-min call Email Joe

This post is for educational purposes only and is not legal or tax advice. Domicile determinations are intensely fact-specific — consult a tax attorney about your situation.

No attorney-client relationship is created by reading this post or by contacting the firm. Please do not send any confidential or time-sensitive information until an attorney-client relationship has been established in writing. This post reflects the law as of its publication date and may not reflect subsequent changes; statutes, regulations, and effective dates discussed here (including ESSB 6346) may change. This material may be considered attorney advertising under applicable rules.

Share on Facebook Share on Linkedin Share on Twitter Send by email

Subscribe to the newsletter

Subscribe to the newsletter for the latest news and work updates straight to your inbox, every week.

Subscribe