At the most fundamental level, supply and demand in the market determine stock price. Price times the number of shares outstanding (market capitalization) is the value of a company.