Deductions & credits

I agree with Opus. 

 

The exclusion is for the sale of your "Principal Residence".  If your second home has not been your "Principal Residence" in the last 5 years, it is cut-and-dry that you DON'T qualify for an exclusion on that home.