How Old Do You Need to Be to Invest in Stocks?

How old do you need to be to invest in stocks? Most brokerages require you to be a minimum of 18 years old in order to open an account.