You can invest in stocks (or funds made up of stocks) through an online brokerage account. Once you add money to your account you can purchase stocks and other investments from there. You can also invest in stocks through a robo-advisor or a financial advisor.