How does FEIE affect long-term capital gains tax bracket stacking?

I've been living in Germany for three years and just sold some US-listed ETFs with about $40k in long-term capital gains. I claim the foreign earned income exclusion on Form 2555 and my salary here is well under the exclusion limit, so almost all of it gets excluded. Someone in another forum mentioned that FEIE affects long-term capital gains tax bracket stacking in a way I didn't expect — that the exclusion doesn't actually push my LTCG into the 0% bracket even though my visible taxable income looks low. I read the Form 2555 instructions but couldn't find anything that addressed capital gains specifically. Can someone walk me through how the stacking rule actually works and whether my LTCG ends up taxed at 0%, 15%, or something else?

33 comments

The stacking rule is the key thing here and it catches a lot of people off guard. The Foreign Earned Income Tax Worksheet in the Form 2555 instructions requires you to compute your tentative tax as if the exclusion were not in place. That means the excluded income still occupies the lower tax brackets, pushing your LTCG up into whatever bracket it would have landed in without the exclusion. Your LTCG doesn't just sit at the bottom of the rate schedule — it stacks on top of the phantom income that the exclusion removed from your taxable income but not from the stacking calculation.

Leah R.

Author

Filing step — so I literally have to complete the Foreign Earned Income Tax Worksheet and can't just use the regular tax tables? That's what I was missing. I assumed excluding the income meant it disappeared from all calculations.

Correct. The worksheet is mandatory when you claim the FEIE. The instructions for Form 2555 describe the worksheet steps, and line 4 of the worksheet adds the excluded amount back before computing the tentative tax on the LTCG portion. It doesn't appear on Schedule D or the Qualified Dividends and Capital Gain Tax Worksheet in isolation.

Went through this myself last year with stock sales. The practical effect is that if your excluded salary would have filled the 10% and 12% ordinary income brackets, your LTCG starts above those brackets for purposes of the LTCG rate calculation. Depending on your total income including the excluded amount, you can end up at 15% even though your taxable income on Form 1040 looks tiny.

Leah R.

Author

That's exactly the scenario I'm worried about. My salary before exclusion would have filled a good chunk of the lower brackets.

Capital gains don't get excluded by the FEIE — that's worth saying plainly. Form 2555 covers foreign earned income only, and the instructions define that as wages, salaries, and self-employment income from services you performed abroad. Gains from selling securities are not earned income, so the LTCG is fully in your US taxable income regardless of how long you've lived abroad.

This is the part people skip over. The FEIE is powerful for salary but it does nothing to shelter the gains themselves. All it does, in the stacking sense, is consume the low brackets so the gains face a higher rate.

I had the same question before my own filing. I uploaded my draft 1040 and Schedule D to taxr.ai and had it walk through the Foreign Earned Income Tax Worksheet line by line given my numbers. It flagged that my excluded salary was filling the brackets ordinarily occupied by LTCG and prepared a comparison showing what the tax would look like with and without the stacking effect — made it very concrete. For your situation the threshold amounts that separate 0%, 15%, and 20% LTCG rates are in the Schedule D instructions and shift each year, so you'd want to check the current figures there rather than relying on old posts.

Leah R.

Author

Following up on the worksheet — did it also check whether you needed the Qualified Dividends and Capital Gain Tax Worksheet instead of, or alongside, the FEIE worksheet? That interaction confused me too.

Yes, it noted that the two worksheets work together — the FEIE version doesn't compute the LTCG rates on its own. When you have LTCG, the Foreign Earned Income Tax Worksheet sends you to the Qualified Dividends and Capital Gain Tax Worksheet, with modified amounts, to figure the tax. So you do complete both, as part of one flow.

One thing that changes the answer is whether you are filing jointly. The bracket thresholds for LTCG rates differ for single versus married filing jointly filers, so the stacking effect may push you past the 0% threshold at different income levels. The Schedule D instructions have the current-year figures.

Also worth checking: did you hold these ETFs through a foreign broker or a US one? If the funds are foreign-domiciled they may be PFICs under section 1291 and the LTCG treatment wouldn't apply the same way — you'd be on Form 8621 and facing excess distribution rules instead.

Leah R.

Author

They're US-listed ETFs held at a US brokerage, so I think I'm clear of the PFIC issue. Good flag though, I hadn't connected that.

US-domiciled funds at a US broker are generally fine on that front. The PFIC concern comes up mostly with foreign-domiciled funds, like Irish-domiciled ETFs that many expats in Europe end up with.

Seconding the PFIC flag — it's a separate and much worse problem than the FEIE stacking issue. Form 8621 and the excess distribution calculation can result in tax plus interest charges going back year by year. Glad yours are US-domiciled.

Before my filing I ran my Schedule D alongside my Form 2555 through Taxr and it mapped out which lines of the Foreign Earned Income Tax Worksheet pulled in the LTCG and where the rate changed. Helped me see that even a relatively small LTCG can hit 15% if the excluded salary was substantial. The 0% rate on LTCG is effectively only available to FEIE claimants whose excluded income is small relative to the low-bracket space.

Leah R.

Author

Worksheet step — that reframing helps. So the question is really how much bracket space remains after the excluded salary fills the bottom, not what my taxable income looks like.

Exactly right. The worksheet forces the excluded income back in for this purpose, so the remaining space for 0% LTCG is whatever is left above your excluded earned income, not above zero.

The IRS page on the foreign earned income exclusion at irs.gov/individuals/international-taxpayers/foreign-earned-income-exclusion doesn't go into the stacking mechanism in depth, but the Form 2555 instructions do describe the worksheet requirement. The 2026 instructions also note the exclusion amount for the current year in the What's New section.

Does self-employment income change this? Asking because I have a mix of freelance income excluded under FEIE and some LTCG and I want to make sure the SE tax piece doesn't mess up the bracket calculation further.

SE tax is a separate line on Schedule 2 and doesn't directly change the LTCG rate calculation in the worksheet. What matters for the stacking question is your excluded earned income amount filling the brackets. The SE tax deduction on Schedule 1 does reduce your AGI, which could slightly shift things, but the stacking worksheet focuses on the excluded amount specifically.

Good clarification, so the bracket stacking itself is driven by the excluded amount, and SE tax is a parallel calculation. I'll work through the worksheet with both pieces.

Worth knowing that if your LTCG pushes you over the threshold into the 15% rate, you can't use the foreign tax credit to offset that portion unless you paid foreign tax on the gains themselves. Germany taxes capital gains, so you may have something to work with on Form 1116 — but that's a separate analysis from the stacking question.

Leah R.

Author

Form 1116 step — Germany does tax capital gains, so I should look at whether those taxes paid flow through to Form 1116 passive category. Hadn't thought about layering that on top.

Passive category is usually the right basket for investment income gains taxed abroad. A separate Form 1116 for passive category income would be the place to report those German taxes. The carryover rules in the Form 1116 instructions cover what happens if the credit exceeds the limitation in a given year.

Quick clarification on something said earlier in the thread: the stacking rule doesn't mean the excluded income is taxed — it just sets the floor for where the LTCG rate calculation begins. You still don't owe tax on the excluded salary. The worksheet is a computational device, not an extra tax on the excluded amount.

Good point to make explicit. The worksheet result is applied only to what is actually in your taxable income. The excluded income shifts the bracket position, it doesn't itself generate a tax bill.

I work with a CPA who specializes in expat returns and she flags this stacking issue to every new client who has investment accounts. If your numbers are large enough that the rate difference matters — say, you're right near the 0%-to-15% threshold — it's worth having an enrolled agent or CPA run the worksheet before you file, not after.

Leah R.

Author

Filing step — given the size of my gain I think that's the right call. I'll get a CPA to review the worksheet before I submit.

One scenario people assume makes the stacking effect zero: if your excluded foreign earned income is less than the standard deduction, you might think the standard deduction would have absorbed that income anyway. It doesn't work that way. The worksheet adds the excluded amount back on top of taxable income, which is already after the standard deduction, so even a small excluded amount pushes your LTCG up. The two calculations don't converge. For most full-year expats earning a real salary the effect is bigger, but it's worth checking.

I want to flag a small error in an earlier comment that said the excluded income 'shifts the bracket position' by sitting below the LTCG. More precisely: the worksheet adds back the excluded amount to find the tax on that phantom total, then subtracts the tax on the excluded amount alone, leaving the net tax on what's actually taxable including the gains. The Schedule D instructions for the FEIE worksheet describe this two-step subtraction. The end result is the same as what others described but the mechanics matter if you're doing the math yourself.

That two-step description is accurate and cleaner than how I put it. The subtraction in the worksheet is what prevents the excluded income from actually being taxed — it only affects the rate that applies to the gains.

For the original poster: your next concrete step is to complete the Foreign Earned Income Tax Worksheet from the Form 2555 instructions and check the LTCG rate thresholds in the current Schedule D instructions. Then look at whether you have German capital gains taxes that could go on a passive category Form 1116. Those two forms together give you the full picture.