For debt funds purchased before April 2023, long-term capital gains apply after 24 months and are taxed at 12.5%, while STCG are taxed as per the income slab. For investments made on or after 1 April 2023, all gains are taxed as per the investor's income tax slab.