What determines opening stock price

What factors go into setting the initial stock price at market open?

The opening stock price is determined by matching pre-market buy and sell orders. The price where the most shares can be traded becomes the opening price.