When the IPO shares are allotted to you, the capital gains are taxed once you sell them. These taxes on the capital gains can be short-term or long-term depending on the time horizon you have kept the IPOs.