In the case of an IPO, the share price is determined by the company. Post listing, the share price on a stock exchange will be determined based on the matching of bid and ask prices from the buyers and sellers, respectively.