Deductions & credits

If the investment sale was for a profit then you may have capital gains taxes assessed on the sale.

What you did with the funds from the sale is not relevant.