Before fertilization, the egg is haploid (n) and the nucellus is diploid (2n). After fertilization in angiosperms, the endosperm, formed from the fusion of a male gamete (n) and two polar nuclei (n+n), is triploid (3n).