Expat capital gains tax — what actually applies when you sell US stocks abroad?

I've been living in Germany for three years on a work visa, still a US citizen, filing with the IRS every year. This spring I sold a chunk of US brokerage shares — mix of long-term and short-term lots — and now I'm trying to figure out the expat capital gains tax situation. My broker sent a 1099-B with cost basis reported. I know I still owe the IRS but I'm not clear on whether the foreign tax I paid to Germany on the same gain reduces what I owe the US, and if so, which form handles that. Also unclear whether I report on Form 8949 the same way a domestic filer would or if there's a different procedure for expats. I've searched the IRS site and read Topic 409 but it doesn't say anything specific about living abroad. What's the actual process here?

36 comments

You file Form 8949 and Schedule D exactly the same way a domestic filer does. Being abroad doesn't change how you report the sales. Long-term lots go in Part II (box D if basis was reported to the IRS, which yours was), short-term in Part I box A. Proceeds in column (d), basis in column (e), and you check the holding period against trade dates, not settlement dates — the day after you bought through the day you sold. The foreign tax piece is a separate calculation entirely. You'd claim a credit on Form 1116, foreign tax credit, using the passive income category for most capital gains. That can offset your US tax dollar for dollar up to a limit. You can't both deduct and credit the same foreign tax.

Sam S.

Author

So Form 1116 is entirely separate from 8949 — they don't interact on the form itself, just through the final tax owed?

Correct. 8949 feeds Schedule D which gives you the net capital gain. Form 1116 runs a parallel calculation and produces a credit that reduces your total tax on Form 1040. They meet on the 1040, not before.

Lived in the Netherlands for four years, sold ETFs the whole time. The 1116 limitation tripped me up. The credit is capped at the US tax attributable to that foreign income — so if Germany taxed you at a higher rate than the US would, you can't use the excess to offset other US income in the same year. It carries back one year or forward ten years though. Check the Form 1116 instructions for the carryback and carryforward rules, the IRS doesn't make that obvious on the form itself.

Sam S.

Author

The carryforward option helps a lot — I expect to have more gains next year too.

The carryback is one year, carryforward is ten. Worth confirming those numbers in the 1116 instructions because I've seen them misstated elsewhere.

Had almost the same setup — US citizen, selling shares while based in Switzerland. I uploaded my 1099-B and my Swiss tax assessment to taxr.ai and it compared the two line by line, flagged that I'd been using the wrong exchange rate date for converting the foreign tax paid, and drafted a corrected Form 1116 worksheet showing the right functional currency conversion. That alone saved me from understating the credit. Worth doing before you file if you have foreign tax documents to reconcile.

Sam S.

Author

Which exchange rate date is correct? I assumed the date I paid the foreign tax.

Generally the date you paid the tax, yes, but I had installment payments and was averaging dates incorrectly. The IRS accepts the yearly average rate for convenience but then you have to use it consistently. The Form 1116 instructions cover this in the section on converting foreign taxes paid.

One thing people miss with expat capital gains tax: the foreign earned income exclusion (Form 2555) does not exclude capital gains. It only covers earned income — wages, self-employment. Your gains from stock sales are passive income and sit outside 2555 entirely. I've seen people assume they're sheltered and they're not.

Sam S.

Author

I wasn't assuming that but good to have it confirmed. My only question was about the 1116 credit.

Worth stating plainly because it comes up constantly. 2555 and capital gains simply don't interact.

Something else to check: if you hold shares in any foreign corporation or foreign funds while abroad, the reporting picture changes completely. PFICs (passive foreign investment companies) have their own form, 8621, and can be taxed very punitively. I'm assuming you're only selling US-listed shares from a US brokerage, which is the simpler case. If any of those ETFs are domiciled outside the US, that changes the answer.

Sam S.

Author

All domestic stocks and ETFs, US-listed, US brokerage. No foreign funds thankfully.

My first year abroad I forgot that Germany taxes capital gains as capital income (Abgeltungsteuer) and my US preparer didn't ask. We ended up filing an amended 1116 the next spring. The lesson was to get a document from the German tax authority showing exactly what was withheld — the equivalent of a tax certificate — before you even start preparing the US return.

Sam S.

Author

My German bank sent a Steuerbescheinigung which I think is exactly that document. Good to know that's the right thing to bring.

Yes, that's the one. The Steuerbescheinigung shows the Abgeltungsteuer withheld, which is the amount that goes on Form 1116 as foreign tax paid. Make sure you're only claiming the tax on the capital gains portion, not on dividend withholding on the same form if the categories differ.

I ran into a question about whether my long-term gain from shares I'd held before moving abroad got its US holding period counted from the original purchase — it does. The holding period is determined by US rules: the day after you bought through the trade date you sold, regardless of which country you were living in when you bought or sold. I had Taxr read through my Schedule D draft and the 1099-B together and it caught that I'd dropped one lot into Part I by mistake when it was clearly long-term based on the dates on the 1099-B.

Sam S.

Author

That's a useful check — I have about a dozen lots and I could easily misplace one.

The state side is worth considering too if you haven't cut ties completely. Some states assert tax jurisdiction over former residents for years. If you were a California resident before Germany, for example, California has aggressive rules about domicile. Expat capital gains tax at the federal level is one thing but a state can pile on.

Sam S.

Author

I was in Texas before. No state income tax so I think I'm clear on that.

Texas makes life easier here. No franchise tax on individuals either. Federal only.

Publication 550 covers holding periods and how to report on 8949 in detail. For the foreign credit side, the Form 1116 instructions are the main reference — they walk through the limitation calculation, the foreign tax base, and the currency conversion in that order. Reading both before you fill out anything saves a lot of backtracking.

Wash sale rules apply to you the same as any US taxpayer, worth noting. If you sold any position at a loss and bought back the same or substantially identical security within 30 days before or after the sale — including through your IRA or Roth IRA — the loss is disallowed. The disallowed amount gets added to the basis of the repurchased shares. Living abroad doesn't suspend that rule.

Sam S.

Author

I didn't rebuy anything within 30 days so I should be fine. But I had no idea the IRA repurchase counted — that's one I'll remember.

The IRA version is particularly sneaky because the basis adjustment only applies to the taxable account shares, not the IRA shares. So the loss is permanently gone, not deferred.

If your net capital losses exceed capital gains for the year, you can claim only a limited amount against ordinary income — the amount is capped and anything over that carries forward. Topic 409 at irs.gov explains the limit, and the carryover worksheet is in Publication 550 and the Schedule D instructions. That limit is the same for expats as for domestic filers.

Also worth flagging: FBAR and Form 8938 aren't tax forms exactly but if your German brokerage or bank account balances cross certain thresholds, you're required to file both. Missing those has its own penalties separate from your tax bill. FinCEN's site covers the FBAR rules and Form 8938 is filed with your 1040.

Sam S.

Author

I only have my US brokerage, German checking for living expenses and a German savings account. Worth checking those thresholds.

Definitely check Form 8938's instructions for the thresholds — they vary depending on whether you're single or married and whether you live in the US or abroad. The FBAR thresholds are on the FinCEN site. Both are reported separately from your capital gains forms but same filing season.

Came back to the US last year after six years in Japan. When I sold shares the year I returned, my US residency status for part of the year created a split-year issue that my preparer had to work through carefully. If you're planning a return move, that transition year is worth talking through with a CPA who handles expat returns before it happens, not after.

For the actual 8949 entries: your broker reported basis so you're in box D for long-term lots and box A for short-term. Enter proceeds from column 1d of the 1099-B in column (d) of 8949, basis from 1e in column (e). If the basis is correct, nothing goes in column (g) for those lots and column (f) is blank. All of that flows to Schedule D lines 8a and 1a respectively if there are no adjustments, using Exception 1.

Sam S.

Author

So I could skip 8949 entirely for the clean lots and just put totals on Schedule D 1a and 8a?

Right — Exception 1 lets you do that for covered transactions reported on 1099-B with no adjustments and basis reported to the IRS. Any lot that has a wash sale code or a basis correction still needs its own 8949 row.

Pulling this together for anyone reading: file 8949 and Schedule D as normal, claim foreign tax paid on Form 1116 in the passive category, ignore Form 2555 for gains, check FBAR and 8938 thresholds separately, and if any lots have wash sale codes on the 1099-B box 1g, they need a column (f) code W entry on 8949 regardless of where you lived.

Every column (f) code you might need is listed with an explanation in the 8949 instructions. W for wash sale, B for incorrect basis — worth bookmarking if you have multiple adjustments to make.