Moving from US to Germany: what to do with 529 and HSA accounts

Finally got my visa sorted and I'm moving from the US to Germany in about two months. I've been reading everything I can find but I keep hitting walls on two specific accounts. I have a 529 plan with about six years of contributions in it (no beneficiary in college yet, the kid is 11) and an HSA I've been maxing out for four years. My employer here closes out my benefits on my last day so HSA contributions stop then. I know Germany doesn't recognize either of these the way the US does, and I'm worried about the tax treatment on both sides. Do I cash out, leave them open, change something before I leave? I'll still be filing US returns as a citizen so that part I understand. It's really the what-do-I-do-NOW question before I board the plane that I can't find a clear answer to.

35 comments

Form 8889 is the one that follows your HSA forever. As long as you don't take a non-qualified distribution, the HSA stays tax-free on the US side. The problem is Germany: German tax authorities generally don't treat the HSA as a tax-advantaged account, so investment growth inside it may be taxable in Germany each year. That's a German tax law question more than a US one. On the US side, just stop contributions when your employer coverage ends and leave the account invested. You can still use it for qualified medical expenses anywhere in the world.

Greg K.

Author

Good to know the qualified expense angle still works abroad. So HSA funds used for a German doctor visit would still be non-taxable on the US return?

Correct. Qualified medical expenses are qualified regardless of where you incur them. The IRS definition in Publication 969 controls, not the country where the expense happens. The German side of that equation is a separate matter.

Left for Europe three years ago with both a 529 and an HSA. The 529 gave me more pause. The account itself stays open with no US tax consequence as long as you don't take a non-qualified distribution. If your kid eventually attends a university outside the US, check whether that school is an eligible institution — many German universities qualify. The Federal Student Aid site maintains the list of eligible foreign schools. If it qualifies, 529 distributions for tuition and fees remain tax-free on the US side.

Greg K.

Author

That's the detail I needed — I didn't know German universities could qualify. I'll check the FSA list before I do anything.

Worth doing now. Some of the major German public universities are on the list. The plan administrator can also sometimes tell you whether a specific school has a federal school code.

One thing that caught me when I relocated: some 529 plans have state income tax recapture rules. If you deducted contributions on your state return and you're leaving that state permanently, the state may claw back those deductions when you change your residency. Check your specific plan's rules before you go. This is a state-by-state issue, not federal.

Greg K.

Author

Hadn't considered the state recapture angle at all. I've been contributing to a plan in my current state for years. Definitely need to look at that.

I uploaded my HSA statements and 529 account documents to taxr.ai before my own move to Switzerland. Taxr read through the account history and listed which IRS forms would be in play each year — Form 8889 for the HSA, the 1099-Q reporting for any 529 distributions — and flagged that my state had a recapture provision I hadn't noticed in the plan documents. I then took that list to a CPA who handles cross-border returns. The combination saved a lot of back-and-forth with the CPA because I already knew the right questions.

Greg K.

Author

Really helpful approach. I'd rather walk into a CPA meeting already knowing what forms matter than pay for the education hour.

Form 1099-SA is what the HSA custodian sends if you take a distribution. Box 3 has the distribution code — code 1 for normal (qualified), code 2 for excess contributions, code 5 for prohibited transactions. If you ever take a non-qualified distribution, that amount is included in gross income on your US return and hit with an additional 20% tax on Form 8889 Part II, unless you're 65 or older or disabled. So unless you have qualified medical bills to pay, there's really no reason to close the HSA before you leave.

Greg K.

Author

The 20% additional tax sealed it for me — I'm not touching it for non-medical reasons. I'll keep it invested and use it for medical costs as they come.

FBAR question for you: once you're in Germany you'll have German bank accounts. If the aggregate balance of all foreign accounts exceeds $10,000 at any time during the year, you file FinCEN Form 114 by April 15 (auto-extended to October 15). HSAs and 529s are US domestic accounts so they don't go on the FBAR. Just flagging it because it snuck up on me in year one.

Form 8938 may also apply depending on account balances. The thresholds are higher for people living outside the US — the Instructions for Form 8938 have the exact figures broken down by filing status and by whether you live in the US or abroad (meeting either the bona fide residence or physical presence test gives you the same higher figures).

Good add. The comparison page on irs.gov lays out what goes on 8938 versus the FBAR side by side. Some assets appear on both, some only one.

Foreign earned income exclusion won't help you shield HSA or 529 growth — the FEIE on Form 2555 only excludes foreign earned income, meaning wages and self-employment income earned abroad. Passive growth inside either account is a different category. Just wanted to flag that because I see people assume FEIE covers everything once they're living outside the US.

Greg K.

Author

Good clarification. I was not under that impression but I can see why people would be.

Practically speaking: call your 529 plan administrator before you leave and confirm they'll still accept account changes, investment direction updates and eventual distribution requests from a foreign address. Some plans get awkward about foreign addresses or require extra documentation. Better to find out now than when you're trying to pay tuition from Germany.

Greg K.

Author

Calling them is on my list this week. Good point about the foreign address friction — that could be a real hassle at the worst possible time.

Form 2555 and the bona fide residence test: you generally can't claim it until you've completed a full uninterrupted tax year as a German resident. In the year you move, you may be able to use the physical presence test instead if you hit 330 full days outside the US in any 12 consecutive months. Neither test has anything directly to do with the 529 or HSA but it affects your overall return structure for year one, which a cross-border CPA will want to plan around.

HSA contribution limit question: you can contribute to an HSA only while you're enrolled in a qualifying high-deductible health plan. Once you lose US employer coverage and switch to German statutory health insurance, you almost certainly can't contribute anymore. If you contribute after you lose HDHP coverage, those become excess contributions — Form 8889 Part I has the excess calculation, and you need to withdraw the excess plus earnings before the tax deadline to avoid the 6% excise tax on Form 5329.

Greg K.

Author

Contributions stop on my last day of work here so that shouldn't be an issue, but good to know about Form 5329 for excess situations.

Before I moved to the Netherlands I had Taxr go through my 529 plan documents and check which distribution scenarios would trigger a 1099-Q and what the qualified expense offset looked like on a US return. It drafted a summary worksheet showing the earnings ratio calculation — that's the part that determines what fraction of a distribution is taxable if the expenses don't cover the whole amount. I went over the worksheet myself and confirmed the numbers before showing it to my tax preparer. Saved real time at the preparer appointment.

Greg K.

Author

The earnings ratio piece is exactly what confuses me. Good to know that can be mapped out before the appointment.

One scenario worth thinking through: if your child ends up NOT going to college, or attends a school that doesn't qualify, you have options beyond a taxable distribution. You can change the beneficiary to another family member, roll it to a Roth IRA (subject to limits and rules introduced in recent legislation — check current rules), or just leave the money in the plan. A straight non-qualified distribution pulls out earnings as ordinary income plus a 10% additional federal tax, so it's usually the last resort.

The Roth IRA rollover option has conditions — the 529 must have been open at least 15 years, lifetime limit applies, and there are annual limits tied to Roth contribution rules. Worth reading the current rules carefully before counting on it.

Greg K.

Author

Good to know there are escape valves. The beneficiary change to a sibling or future sibling is probably our most likely fallback.

When I was sorting out my own pre-move checklist for Japan, I showed Taxr my HSA custodian statements and asked it to check whether any of my past distributions were coded correctly on Form 1099-SA and whether the qualified expense amounts I'd recorded matched what I had documented. It read each distribution code, compared my expense log to the IRS qualified expense definition, and flagged two distributions I'd marked as qualified that needed a closer look. I brought those flagged items to an enrolled agent before I left. If you have years of HSA distributions in the history, worth checking before you close out your US residence.

Greg K.

Author

Years of distributions, yes. I hadn't thought to audit the past years before leaving. That's a smart thing to do while I still have easy access to US providers if anything needs correcting.

German Steuerberater (tax advisor) is what you'll need on the Germany side. They handle the German income tax return and can tell you how Germany treats your US-sourced income and investment accounts. The US-Germany tax treaty affects some things but doesn't specifically shelter HSAs or 529 plans as far as I know — a Steuerberater familiar with US expats is the right person to confirm that.

Agreed. The treaty has specific provisions for certain pensions and social security but neither HSA nor 529 appears in a way that creates the same treatment as in the US. A specialist on both sides is really the right answer here.

Form 8938 threshold reminder for your first full year in Germany: as a US citizen with a tax home in a foreign country who meets either the bona fide residence or physical presence test, your Form 8938 filing thresholds are much higher than for someone living in the US. The exact figures are in the Instructions for Form 8938 at irs.gov and depend on your filing status, not on which test you meet. German bank and brokerage accounts would count toward that threshold; your US HSA and 529 do not, as they're domestic accounts.

Greg K.

Author

So I have to track the German accounts for 8938 purposes but HSA and 529 stay off that form entirely. That actually simplifies the first year a bit.

To bring it together: before you leave, verify the 529 plan accepts foreign addresses and check your state's recapture rules. Stop HSA contributions when HDHP coverage ends. Keep both accounts open unless you have a specific reason to close them. In Germany, get a Steuerberater who knows US expats to handle the German-side treatment. On the US side, Form 8889 stays on your 1040 every year you have HSA activity, and 1099-Q flows through when you take 529 distributions. A cross-border CPA who handles Germany specifically is worth it for year one at least.

Greg K.

Author

This is the summary I needed. HSA open, 529 open, verify plan rules, sort out German advisor. Getting a cross-border CPA for year one is already on my list. Thank you all.