There's a few ways to go about this. One way is to convert the property from a secondary residence to your primary residence and reside in the home for at least 2 years. This changes how much you're taxed from short-term capital gain (which is akin to income) to a long-term capital gain which has a higher upper limit.