Capital-gains exemption depends on what you sold, when you sold it and where you reinvest. Selling a residential house, selling another…