How to calculate ipo price per share

How is the IPO price per share calculated during an offering?

The IPO price is set by the company and its underwriters, often through a process called book building, where investor demand helps determine the final price.