Investors and rental owners

When you fill out the Principal Residence it will ask you how many years it was your Principal Residence and then calculate any capital gain if it wasn't your Principal Residence for the whole time.