Can you avoid capital gains by buying another home?
So I sold my house last month and made a decent profit. A friend told me that if I buy another home right away I don't have to pay capital gains on the sale, like a rollover or something. I've been trying to figure out if this is still a thing because I keep seeing mixed info online. Some sites say it ended years ago, others make it sound like it's still possible. I already lived in the house for about 6 years so I'm not sure if that matters. I haven't filed anything yet and want to understand the actual rule before I do something wrong. Can you avoid capital gains by buying another home, or is my friend just remembering something old?