A way of measuring the average cross-sectional void fraction for vertically rising oil pipes by using closing valves quickly and optical fiber probe has been researched. Experiments were performed in oil-gas two-phase flow and the range of the average void fraction is 0.1～0.5. The relationship between average cross-sectional void fraction of a oil-gas two-phase flow and pipe’s center void fraction in vertically rising oil pipes, for different pipe diameters and varying oil flow, is obtained. An exponential model of average void fraction is also obtained with reference to Bankoff’s variable density model. It is found that local void fraction reduces from center in radial direction and the local void fraction maximum value appears in the pipe’s center.