On schedule D, either as a long term investment or as a short term investment.
Long term is anything owned for at least one year and one day.
If owned for a shorter period of time, then it is considered short term.
And if you do it more than once, it’s actually schedule C income.