Water alternating gas (WAG) injection is a well-established technique that leverages the benefits of gas injection and waterflooding processes to improve the ultimate oil recovery. The connectivity of the fluid phases in a porous media is a crucial factor governing the mobility, displacement, and recovery of the multiple fluid phases during primary, secondary, or enhanced recovery operation. We develop, apply, and evaluate several statistical and computational functions capable of quantifying connectivity of a fluid phase of interest captured in the segmented microcomputed tomography scans of fluid-filled porous material undergoing WAG injection. These functions capture the evolution of three-dimensional connectivity of the wetting and nonwetting phases along the length of the sample during each injection process. The changes in connectivity of the fluid phases compared with the changes in fluid saturations better describe the effects of WAG injection and the recovery at each stage. This is a first-of-its-kind quantification of connectivity of wetting and nonwetting phases, focused on WAG injection. A robust quantification of the fluid phase connectivity in a porous material undergoing WAG injection facilitates a better understanding of the efficiency of the sequential injection strategies and reveals new approaches for improving oil recovery. The direct computation and comparison of the connectivity help determine the level of contribution of each injection cycle to the final recovery of the oil phase, thereby facilitating optimization of future injection strategies.