The IPO profit is essentially the percentage gain on your investment. Therefore, to determine your profit or loss, divide the investment amount by the share’s purchase price.