This study theoretically investigates the effects of the entrainment accompanying mass, momentum, and energy transport on pore size during high power density laser and electron beam welding processes. The physics of macroporosity formation is not well understood, even though macroporosity often occurs and limits the widespread industrial application of keyhole mode welding. This work is an extension of a previous work dealing with collapses of keyholes induced by high intensity beam drilling. In order to determine the pore shape, this study, however, introduces the equations of state at the times when the keyhole is about to be enclosed and when the temperature drops to melting temperature. The gas pressure required at the time when keyhole collapses is determined by calculating the compressible flow of the two-phase, vapor–liquid dispersion in a vertical keyhole with varying cross sections, paying particular attention to the transition between annular and slug flows. It is found that the pore size increases as entrainment fluxes decrease in the lower and upper regions of the keyhole containing a supersonic mixture. The pore size also increases with decreasing total energy of entrainment and an increasing axial velocity component ratio between entrainment and mixture through the core region. With a subsonic mixture in the keyhole, the final pore size increases with entrainment fluxes in the lower and upper regions. This work provides an exploratory and systematical investigation of pore size induced by entrainment accompanied by mass, momentum, and energy transport during keyhole mode welding.