For a stock sale, determine domicile at the sale or exchange under RCW 82.87.100(1)(b), then apply exclusions, deductions, losses, and credits to determine whether tax is owed. Washington’s separate 9.9% income tax (ESSB 6346, effective January 1, 2028) requires its own residency, sourcing, tax-base, and credit analysis.
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 depends on domicile as well as abode and day-count tests. Both statutes also contain a part-year residency provision. The 30-day safe harbor operates here: a Washington domiciliary who maintains no permanent place of abode in Washington during the entire taxable year, maintains a permanent place of abode outside Washington during the entire taxable year, and spends no more than 30 days in Washington during that year is treated as a nonresident for that year (RCW 82.87.020(11)(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 step-by-step process for changing it — and papering it — is in the Washington Domicile Change Checklist.)
The safe harbor operates entirely on the first concept. It never touches the second. That gap is where the trap lives.
The capital-gains tax uses resident status in one branch of its allocation rule for tangible personal property sold outside Washington. Stock and other intangible property instead follow the domicile-at-sale rule. The separate income tax beginning in 2028 gives resident status a broader role: residents and nonresidents have different rules for determining the income included in the tax base. Nonresident treatment can therefore matter beyond capital gains, but the applicable sourcing rules, base adjustments, standard deduction, and credits still must be applied.
For Washington capital-gains tax, the 30-day safe harbor can affect allocation of gains from tangible personal property, such as gold, art, and collectibles. If the property is outside Washington when sold or exchanged and the seller meets the safe harbor, the gain is not allocated to Washington under RCW 82.87.100(1)(a). The full-year abode and day-count conditions described above must all be met.
What nonresident status actually buys you
For the separate income tax beginning in 2028, nonresident status generally limits the tax base to Washington-source income. Personal investment interest, dividends, and gains generally fall outside that sourcing rule unless the intangible property is employed in a Washington business, trade, profession, or occupation. Apply the specific sourcing and allocation rules to each income item. The capital-gains excise tax remains a separate analysis.
Washington-source wages and business or pass-through income can remain taxable for a nonresident, subject to the applicable allocation rules and exceptions. Washington real-estate rents, short-term gains, and ordinary income require separate analysis; exempt long-term real-estate gain is removed under §302 and should not be grouped with taxable rents. A long-term stock sale raises the separate capital gains tax question: domicile at the time of sale.
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. For the separate income tax beginning in 2028, apply the §302(3) addback and §205 credit together with the residency and nonresident sourcing rules in §401. Domicile-based capital gains tax liability does not by itself settle the income-tax result.
For stock allocation, determine where you were domiciled when the sale or exchange occurred. Apply the abode and day-count tests separately when determining resident status.
Domicile at the time of the stock sale or exchange determines Washington allocation under RCW 82.87.100(1)(b). Allocation alone does not establish that tax is owed. A federal Section 1202 exclusion, applicable deductions, losses, or credits may reduce or eliminate the liability. Calculate the tax after applying those rules.
The trap, in one scenario
A founder sells her Seattle house in December 2027 and buys a home in Incline Village. Assume she maintains no permanent place of abode in Washington at any time during 2028, maintains the Nevada home as a permanent place of abode throughout 2028, and spends a total of 18 days in Washington that year, counting any part of a calendar day. She satisfies the domiciliary safe harbor and is treated as a nonresident for 2028. Whether her domicile changed is a separate question.
In June 2028, her company is acquired and she recognizes a $12 million long-term gain.
If she remained domiciled in Washington when the stock sale or exchange occurred, the gain is allocated to Washington under RCW 82.87.100(1)(b), despite satisfying the safe harbor. Continued Washington ties and statements that she intends to return after the deal may be evidence of continuing domicile, but the facts must be evaluated together. A Washington home occupied by family also requires a separate review of whether she maintained a permanent place of abode there; family location alone does not answer that question. Her conduct and intent must support the claimed domicile change, and announcing the move doesn't establish it.
What actually protects a stock sale
A genuine change of domicile must be completed before the stock sale or exchange to avoid Washington allocation on that basis. WAC 458-20-301(6)(c)(ii) requires physical presence in the new location and intent to make it your permanent home. Housing, family arrangements, licenses, and other ties provide evidence; selling the Washington home, moving every family member, or changing medical providers is not individually required. Document the actual change and determine the sale or exchange date from the transaction facts.
The 30-day rule can protect your other non-Washington-source income only if the full-year abode conditions and annual day limit are met. A midyear departure does not retroactively satisfy those full-year conditions; analyze part-year residency separately under ESSB 6346 §101(8)(c). We cover the 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?
If you are planning a stock sale and a move, we can review your domicile evidence, continuing Washington ties, and transaction timing before the sale.
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.