Cash-out refi then 1031 exchange — do I still pay capital gains?
Trying to figure out if I messed up my timing. I did a cash-out refinance on my rental property in March, pulled out about six figures in equity. Then in September I sold that same property and completed a 1031 exchange into a bigger duplex. The 1031 went through a qualified intermediary, the timelines were fine, and I hit the 180-day close. My question is about the refi cash I already pocketed. My CPA last year said a cash-out refi before a 1031 is fine because a loan isn't boot. But now a friend is telling me the IRS can recharacterize it as taxable boot if the refi happens too close to the sale. Do I still pay capital gains on that refi money, or does the 1031 fully shelter everything?