The shapes of a growing or decaying bubble entrapped by a solidification front are predicted in this work. The bubble results from supersaturation of a dissolved gas in the liquid ahead of the solidification front. Pore formation and its shape in solid are one of the most critical factors affecting properties, microstructure, and stresses in materials. In this study, the bubble and pore shapes entrapped in solid can be described by a three-dimensional phase diagram, obtained from perturbation solutions of Young-Laplace equation governing the tiny bubble shape in the literature. The predicted growth and entrapment of a microbubble as a pore in solid are found to agree with experimental data. This work thus provides a realistic prediction of the general growth of the pore shape as a function of different working parameters.