You can deduct the interest as Investment Interest Expenses (see screenshot) but note that there are limitations, such as you must itemize your deductions on Schedule A and also have sufficient investment income to cover the amount of the expense (read the guidance in the screenshot).