Polymeric foams offer significant benefits in terms of resource conservation. Foam injection molding (FIM) is a common mass-production technique used for preparing polymeric foams. Recently, we developed an inline near-infrared (NIR) spectroscopic sensor to monitor the concentrations of blowing agents dissolved in the polymers during the process. The proposed technique was suitable for measuring concentrations of carbon dioxide (CO 2 ); however, for nitrogen (N 2 ), it is still challenging because N 2 is infrared-inactive. A scheme developed in this research overcame this problem by estimating the N 2 concentration from changes in the polymer density resulting from N 2 dissolution. The NIR absorption peak of the polymer density was changed by the dissolution of N 2 during polymer processing. A multivariate model and an equation of state were combined to estimate the N 2 concentration from the NIR spectrum. The method provides precise concentrations for N 2 dissolved into the polymer as the physical blowing agent.