US and Canada capital gains tax selling Canadian home after moving to US

Hoping someone has dealt with this. I moved from Canada to the US about two years ago and I still own my house in Ontario. I'm now a US green card holder and Canadian non-resident. I'm planning to sell the house this spring and I'm trying to wrap my head around the us and canada capital gains tax selling canadian home after moving to us situation — meaning I know Canada will want its share and so will the IRS, but I don't know how the two interact, whether I get a credit for one against the other, what forms each side needs, and whether the principal residence exemption I had in Canada even helps me on the US side. I've already read through IRS Topic 409 on capital gains but it doesn't really address the cross-border piece. Where do I start?

38 comments

Did you establish your US tax residency date clearly? That date matters a lot because Canada will compute your gain from your original purchase price to the sale price, but it may allow a principal residence exemption for the years you lived there as a Canadian resident. The IRS, though, doesn't recognize the Canadian principal residence exemption at all — it has its own rules under Publication 523 that apply only to your main home and require ownership and use as your primary residence for at least 24 months out of the 5 years before sale.

Paul M.

Author

Yes, I have a clear residency start date — my green card was issued on a specific date and I've been filing as a US resident since then. So the 24-month ownership and use test under Pub 523 is the piece I need to check for the US side, got it.

The Canadian non-resident withholding piece catches a lot of people off guard. When a non-resident sells Canadian real property, the buyer is required to withhold a portion of the gross sale price unless you've applied for a clearance certificate from the CRA beforehand. That's a Canadian tax matter, not an IRS matter, but the timing affects your cash at closing and your ability to claim the foreign tax credit on your US return.

Paul M.

Author

I hadn't thought about the withholding hitting the gross price rather than the gain. So I should be getting that clearance certificate process started well before closing?

Yes, well before — CRA processing times are not fast and buyers get nervous when it's pending at closing. A Canadian tax lawyer or cross-border CPA who works with non-resident dispositions is really the right call here.

Are you working with anyone on the Canadian side yet? I sold my Quebec property two years after moving here and the cross-border piece was genuinely complicated. I uploaded my CRA notice of assessment, my closing statement, and the foreign tax credit worksheet to taxr.ai and had Taxr map out exactly which amounts would flow to Form 1116 and which lines on Form 8949 and Schedule D the US gain would land on, given my residency date. It didn't do the Canadian filing obviously, but having that roadmap before I sat down with my cross-border CPA saved a lot of billable hours.

Paul M.

Author

That's actually really useful — I have all those documents already. Knowing which form each number lands on before the CPA call sounds like exactly the kind of prep I need.

On the US side the basic structure is: you report the gain on Form 8949 (long-term, Part II, since you've presumably owned the house more than a year) and it flows to Schedule D. If the home qualifies as your main home under Publication 523 you may be able to exclude part of the gain — but the exclusion has ownership and use requirements, and the years you lived there as a Canadian resident do count toward the ownership test. The use test is where it can get complicated for someone who moved out.

Paul M.

Author

Wait — do the years I lived there as a Canadian resident count toward the US use test even though I wasn't a US resident then? That changes my math significantly.

Yes, the use test under Publication 523 is about physical use as your main home, not about your immigration or tax status during that time. What matters is whether you actually lived there. Check the 5-year lookback window from your expected sale date and count the months you were physically using it as your primary residence.

Has anyone dealt with how the foreign tax credit works when part of the Canadian gain is sheltered by their principal residence exemption? Because if Canada exempts some of the gain and taxes only a portion, the foreign tax credit on Form 1116 is only on the tax actually paid to Canada — but the IRS taxes the full gain (minus any US exclusion). So you could end up with more US tax than foreign credit to offset it.

Yes, that asymmetry is real and it trips a lot of people up. The Form 1116 passive category income basket is where rental or investment property gains usually go, but a former principal residence can get complicated. A cross-border CPA who knows both systems is not optional in this situation.

Paul M.

Author

This is the part I was most worried about and couldn't find a clean answer to anywhere. So the foreign tax credit only covers what Canada actually collects, not a notional amount — meaning if Canada exempts half the gain I'm still fully exposed to US tax on that half with no offset.

Before my own cross-border sale I pasted my purchase contract, my residency change date, and the preliminary closing statement into Taxr and asked it to list every document the IRS would want to support the cost basis and any exclusion claim, in the order they'd be relevant if I got a CP2000. It produced a clear checklist — things like the original HUD or equivalent, records of any capital improvements, and my entry date documentation. That prep made the actual filing much less stressful.

Paul M.

Author

A CP2000 prep checklist hadn't occurred to me but it makes total sense — a foreign property sale with a large gain is exactly the kind of thing that could draw a letter. I'll do that.

What currency are you using for the US basis calculation? Because your original purchase price in Canadian dollars needs to be converted to US dollars at the exchange rate on the date you bought, and the sale proceeds get converted at the rate on the sale date. If the Canadian dollar has moved significantly since you bought, the currency effect alone can create a larger or smaller US-dollar gain than the Canadian-dollar gain, independent of any exemption.

Paul M.

Author

I hadn't fully thought through the currency conversion layering on top of everything else. So my US basis and my US proceeds are both in USD at the rates on their respective dates, and the gain is the difference — which could diverge a lot from the CAD gain?

Exactly right. Use the spot rate on each date — the IRS accepts any consistently used publicly available rate. Keep records of where you got the rates. Publication 550 and Publication 551 cover basis of foreign property but don't spell out which rate source to use, so document your choice.

Is the property currently rented out or sitting vacant? That matters because if you've been renting it since you left Canada, there may be depreciation recapture to deal with on the US side, and the character of the income you've been reporting (or should have been reporting) on Schedule E changes the analysis.

Paul M.

Author

It's been vacant — I considered renting it but didn't want to complicate the principal residence question on the Canadian side, so I've just been carrying the costs. So no depreciation recapture issue on the US side, at least.

Good, that simplifies things. Vacant still means you should check whether any carrying costs like property taxes or mortgage interest were deductible on your US return in the years you held it, and whether anything was capitalized to basis.

The Form 8949 entry for a foreign property sale — do you check box D, E, or F in Part II? Since there's no 1099-B for a Canadian property sale there's no broker reporting to the IRS, so it's not a covered security situation.

For real property there's no Form 1099-B at all — that's a securities form. Real property sales don't use the 1099-B boxes. You'd still use Part II of Form 8949 for a long-term gain, and since there's no 1099-B you check box F (basis not reported to the IRS). The Instructions for Form 8949 at irs.gov lay out when each box applies.

Yes, that makes sense — I was mixing up the securities rules with real property. Thanks for the correction.

Don't overlook FBAR and Form 8938 questions. If you have a Canadian bank account that received rent or is holding sale proceeds, the balance thresholds on those forms may be triggered. That's not a capital gains issue but it's a parallel filing obligation that people miss when they're focused on the tax side.

Paul M.

Author

For real property there's no Form 1099-B at all — that's a securities form. Real property sales don't use the 1099-B boxes. You'd still use Part II of Form 8949 for a long-term gain, and since there's no 1099-B you check box F (long-term transactions not reported to you on Form 1099-B). The Instructions for Form 8949 at irs.gov lay out when each box applies.

How long ago did you buy the property? The holding period for long-term capital gains treatment on the US side starts the day after the trade or acquisition date, and for real property your holding period begins the day after closing on purchase. If it's been more than a year since you bought — which it sounds like it has — you're in long-term territory and the gain flows to Schedule D as long-term.

Paul M.

Author

Bought it about nine years ago so definitely long-term. I just wanted to confirm that the holding period clock on the US side doesn't reset when I changed residency status, and it sounds like it doesn't.

Correct, changing your tax residency doesn't restart the holding period. The clock runs from the original acquisition date regardless of when you became a US person.

Worth knowing: even if the full gain ends up excluded on the Canadian side through the principal residence exemption, you may still need to report the sale on your US return. The IRS doesn't follow CRA exemptions. If you received or will receive a Form 1099-S equivalent from a US escrow agent (less common for a purely Canadian transaction but possible if a US title company is involved) you'd need to report on Form 8949 regardless. And even without one, any gain on foreign real property that the US main home exclusion doesn't cover is reportable.

Paul M.

Author

So the CRA exemption doesn't decide it on the US side — I report if I get a 1099-S or have gain the US exclusion doesn't cover, no silent omission just because Canada didn't tax it. That's clear.

Did you file Form 8938 or an FBAR in prior years disclosing the Canadian property? For Form 8938 specified foreign financial assets include certain real property held through a foreign entity, though directly held real property is generally not a specified foreign financial asset. Worth confirming with your preparer whether anything you filed previously needs to be consistent with the basis you're claiming now.

Directly held foreign real property is not reportable on Form 8938 — that's correct. But if you hold it through a Canadian holding company or trust that changes the analysis entirely. The OP said Ontario house so presumably direct ownership, but worth confirming.

The treaty between the US and Canada matters here too. The Canada-US tax treaty has provisions that can affect how the gain is sourced and whether credits fully offset the double taxation. This is one of those situations where a cross-border CPA or tax attorney who knows both the Code and the treaty is genuinely necessary — not just helpful. The treaty provisions interact with the domestic credit rules in ways that aren't intuitive.

Paul M.

Author

Agreed — I've been researching enough to know I need a professional, I just wanted to understand the framework before that conversation so I'm not starting from zero.

That's the right approach. Going in with a grasp of Form 8949, Schedule D, Form 1116, the Publication 523 exclusion test, and the currency conversion question means you'll use the consultation time on the hard judgment calls rather than the basics.

One practical note on timing: if you close the sale late in the calendar year you have more time before the US return is due, but the Canadian non-resident tax obligations (the withholding and clearance certificate) have their own deadlines that don't align with IRS deadlines. Getting both advisors — a Canadian tax lawyer or CPA for the CRA side and a US CPA for the IRS side — talking to each other before you set a closing date is worth it.

Paul M.

Author

I hadn't thought about the two advisors coordinating on the closing date itself. That's a genuinely useful framing — the closing date is a tax decision, not just a real estate one.