Sourcing rule for foreign stock sale by US UK dual citizen — where does the gain actually come from?

I'm a US citizen living in the UK, also hold British citizenship. Sold shares in a UK-listed company this past year — bought and sold while I was resident here. On my US return I'm trying to figure out where the gain is sourced. I know the US taxes me on worldwide income, and I know I'll get some credit on Form 1116, but the sourcing rule for foreign stock sale is what's tripping me up. The IRS seems to source capital gains from stock by the seller's residence, not where the company is incorporated. So would this gain be US-source because I'm a US citizen, or foreign-source because I'm UK resident? That distinction matters enormously for how much foreign tax credit I can actually use. I've read Publication 514 and I'm going cross-eyed. Anyone worked through this?

41 comments

The sourcing rule for gains on personal property — which includes stock — is in IRC section 865. The general rule is that gain from the sale of personal property is sourced where the seller resides. For a US citizen, that residency determination under section 865 looks at "tax home," not citizenship. If your tax home is in the UK (which it almost certainly is if you live and work there) and the UK actually imposes income tax of at least 10% of the gain, the gain is foreign-source under section 865(a)(2); otherwise section 865(g)(2) keeps it US-source. That's the result that lets you put it in the Form 1116 foreign tax credit basket rather than fighting a sourcing mismatch.

Sofia N.

Author

This is what I was hoping to hear but was scared to assume. So for 1116 purposes, UK-resident tax home = foreign-source gain, even though I'm a US citizen filing a US return?

Exactly, provided the UK tax paid on the gain is at least 10% of it. Section 865 sources by residence of the seller, not citizenship. Your tax home being in the UK, plus that 10% foreign tax, is the key fact. The gain goes in the foreign basket on Form 1116, and you credit the UK CGT paid against your US liability on that gain.

Went through nearly this exact situation last year — UK shares, UK CGT paid, trying to work out the 1116 basket. I uploaded my brokerage statement and my draft 1116 to taxr.ai and had it walk through each line of the form for my specific numbers. It flagged that I'd put the gain in the wrong basket initially. Worth doing before you finalize anything. Anyway — the residence-based sourcing under 865 is real, but watch the exception for "depreciable personal property" (doesn't apply to plain stock) and the look-through rules if the company is a controlled foreign corporation, which a UK-listed company almost certainly is not.

Sofia N.

Author

The CFC point is reassuring — it's a FTSE-listed company, definitely not a CFC. And good to know about the basket issue, that's exactly the kind of thing I'd miss.

The basket distinction matters more than people realise. General basket vs passive basket changes how much credit you can absorb in a given year, and stock gains from non-CFCs generally sit in the passive basket, not the general basket, for an individual investor.

Worth flagging: even if the gain is foreign-source for 1116 purposes, you still need to check whether the UK capital gains tax paid is actually a creditable foreign tax under section 901. UK CGT generally is creditable, but the IRS has specific rules about whether a foreign levy qualifies — it has to be an income tax or a tax in lieu of income tax. UK CGT has been accepted as creditable in practice, but you should confirm rather than assume, especially after the 2022 final regulations.

Good point on the creditability question. The 2022 final regs caused a lot of noise. IRS notices that came out after (Notices 2023-55 and 2023-80) provided relief letting taxpayers apply the older creditability rules for now, which covers many standard foreign income taxes including most UK taxes, but it's worth verifying your specific situation against the current rules and notices rather than relying on older guidance.

Sofia N.

Author

I hadn't even thought to question whether UK CGT was creditable at all. I'll check the final regs and the relief notices on that explicitly.

My first year doing this I confused the sourcing question with the treaty question and spent two weeks going in circles. They're separate analyses. The sourcing rule under 865 tells you where the gain comes from for Form 1116 basket purposes. The US-UK treaty is a different question — it may affect which country has the right to tax, but that doesn't change the 1116 sourcing analysis directly.

Sofia N.

Author

That separation is really helpful. I kept collapsing them into one question and confusing myself.

Practically speaking: on Form 1116, you'll put the foreign-source gain amount on line 1a, the UK CGT paid in Part II (Foreign Taxes Paid or Accrued), and you're on the passive category income form. The limitation calculation in Part III then caps your credit at the proportion of your total US tax that the foreign income bears to total worldwide income. If your only foreign income this year is this stock gain, the math is fairly straightforward.

Sofia N.

Author

The limitation formula is what always makes my head spin. So the foreign income / total worldwide income ratio times total US tax before credits — that's the ceiling on what I can claim?

That's the formula. If your UK CGT rate on the gain was higher than the effective US rate on that portion of income, you'll have excess credits that carry forward (or back) — you don't lose them, they just don't all absorb in the current year.

Had a situation two years back where I sold shares in a UK company but I'd bought them when I was still US-resident, then moved to the UK. The tax home question under 865 looks at the year of sale, not the year of purchase. So partial-year residence in the year of sale could complicate things. If you were UK-resident for the full year of the sale, it's cleaner. I had Taxr read through my own timeline and draft a summary of which rules applied to each lot — it organized the section 865 analysis by acquisition date and sale date, which helped me see the problem clearly before I took it to my CPA.

Sofia N.

Author

I was UK-resident for the full year, bought and sold entirely while here, so the timeline should be clean. The partial-year scenario sounds like a nightmare.

Full-year UK residence for the year of sale is the cleaner case, yes. The mess comes in if you sold in a year you were only partially UK-resident — then the tax home determination for that year needs more care.

Don't forget FBAR if the brokerage account where you held the shares is a foreign financial account. If the aggregate balance of all your foreign accounts exceeded $10,000 at any point during the calendar year, you need to file FinCEN 114. The stock sale itself doesn't trigger FBAR separately — it's the account balance that matters.

And Form 8938 on top of that if the aggregate value of your foreign financial assets clears the relevant threshold. The thresholds differ depending on whether you file single or jointly and whether you live abroad — the Form 8938 instructions have the chart.

Sofia N.

Author

I already file both every year, but good reminder for anyone reading who hasn't thought about it.

The FEIE question sometimes comes up here — just to be clear, the FEIE (Form 2555) excludes foreign earned income, not capital gains. Stock sale gains are not earned income. So the FEIE doesn't help with this gain at all. The foreign tax credit on Form 1116 is the right tool.

Correct, and worth stating plainly because I've seen people try to shield capital gains with 2555 and it doesn't work. Capital gains are unearned income. Form 1116 is the path.

If the UK shares were held in an ISA — just want to flag this because a lot of people here hold ISAs — the US does not recognize the ISA tax shelter. Gains inside an ISA are still taxable on your US return, and they may also face PFIC issues if the ISA holds UK funds. The 1116 sourcing analysis doesn't help here: with no UK CGT paid (since the ISA shelters UK tax), the 10%-foreign-tax condition in section 865(g)(2) isn't met, so the gain is US-source and you'd owe US tax with no offset.

Sofia N.

Author

Not in an ISA — these were in a standard dealing account. But the ISA warning is worth having in the thread for anyone who assumed the ISA shelter carried over to the US side.

The number of people who assume ISA = tax-free globally is surprisingly high. It's tax-free on a UK return, GOV.UK says so clearly, but that shelter has no effect on US reporting obligations.

Related point: if any of the UK shares were in a fund — a UK OEIC or unit trust — rather than individual company shares, the PFIC rules under Form 8621 completely change the analysis. The sourcing question becomes secondary to the PFIC regime, which has its own punishing tax treatment unless you made a QEF or mark-to-market election. Individual company shares in a UK-listed company are not PFICs, but pooled vehicles almost certainly are.

The PFIC trap is real and the 8621 is not a simple form. If anyone reading this holds UK funds outside an ISA and hasn't thought about PFIC elections, that warrants a conversation with an enrolled agent who knows cross-border work.

Sofia N.

Author

Individual company shares, not funds — so I think I'm clear of the PFIC issue. Good to have that spelled out though.

I sold UK shares three years running and kept second-guessing the basket every time. Last year I uploaded my entire 1116 draft and the underlying brokerage statement to Taxr and asked it to check whether each line matched the section 865 sourcing analysis — it went through the form section by section and flagged two lines where I'd netted gains and losses across baskets incorrectly. I still had my CPA review the final return, but showing up with a pre-checked draft made the conversation a lot faster. Anyway, for a plain UK-listed company share sold while UK-resident, you're in good shape with the residence-sourcing rule as long as the UK tax paid is at least 10% of the gain.

Sofia N.

Author

The netting-across-baskets error is exactly the kind of thing I'd do without noticing. Good to know that's a real trap.

Something worth checking: did you use the actual exchange rate on the date of sale to convert the sterling gain to dollars, or an average rate? The IRS wants you to convert at the spot rate on the transaction date. Using the annual average rate is common but technically incorrect for capital gains transactions — it can shift your gain or loss amount in either direction depending on how sterling moved during the year.

Spot rate on the date of sale is right for the transaction itself. The IRS's own guidance says to use the exchange rate at the time of the transaction for income received. For a capital gain, the sale date rate applies to the proceeds, and the purchase date rate applies to the basis.

Sofia N.

Author

I was using the annual average. I'll go back and recalculate with the actual transaction dates. That could move things slightly.

Worth mentioning that if you're also filing a UK Self Assessment, the UK CGT computation and the US gain computation can differ — different basis rules, different treatment of costs, potentially different gain figures even for the same transaction. You can only credit the UK tax actually imposed on the foreign-source gain as computed under US rules, not a larger UK figure. The Form 1116 instructions cover how to handle a situation where the foreign tax rate exceeds the US rate on the same income.

The excess credit carryforward mentioned earlier is key — if UK CGT on this gain comes out higher than the US tax on the same income, the unused credit doesn't disappear. It carries forward. The Form 1116 instructions explain the carryforward period. Worth keeping a record year by year.

Sofia N.

Author

I hadn't thought about accumulating a carryforward pool. If I keep holding UK shares and selling periodically that could actually be useful over time.

Coming at this from the other direction: has anyone here also looked at the treaty to see whether the US-UK treaty grants sole taxing rights to one country on these gains? For most ordinary share gains it doesn't — both countries can tax, and you sort it out with the credit mechanism. But it's worth at least reading Article 13 of the treaty before assuming the credit is the only tool.

Article 13 of the US-UK treaty generally preserves both countries' right to tax capital gains, so the credit mechanism is usually the operative tool, as you say. The treaty doesn't eliminate the US liability on a UK share sale for a US citizen; it mainly matters for certain categories like immovable property.

Sofia N.

Author

I looked at Article 13 briefly and had the same read — both countries tax, credit resolves the double tax. Reassuring to have that confirmed.

Final practical note: attach Form 1116 to your 1040 for each basket you're claiming a credit in. If the only creditable foreign tax you paid this year is the UK CGT and it's under the de minimis threshold in the instructions, there is an election to claim the credit without filing 1116 — but check the Form 1116 instructions for the exact conditions, because getting that wrong means you've claimed the credit without proper substantiation.

Sofia N.

Author

I'm well over any de minimis amount so I'll be filing 1116. But good to flag that the simplified election exists for smaller amounts.