The IRS doesn't allow a 1031 exchange on a primary home but the IRS does exclude the first $250,000 of gain from the sale of your primary home from your income and avoid paying taxes on it if you meet certain conditions. Another option is turning the primary home into a rental property and then doing a 1031 exchange down the road.