Ans: Yes, it is legal if the investors calculate their capital gains and find a way to decrease their tax liabilities by complying with the regulations. Tax loss harvesting is simply reshuffling one’s portfolio by removing stocks that are underperforming with those that perform relatively well.