A dwelling that is not rented and does not otherwise produce income does not qualify as 'investment property.' However, it may be possible to exchange out of a residence that has no rental history and defer capital gains, as long as the exchanger can demonstrate it was held for investment.
Read more about “Does a Vacation Home Qualify For a 1031 Exchange?”