TaxGirl3
Level 5

I assume the gain exceeds the 250k/500k exclusion, if applicable?  Taxable gain will be taxed by CA because it is CA property, regardless of residency.  PA provides a resident tax credit for the amount of income sourced to, and taxed by, CA.