A optic method to measure the density of gas is put forward. That is, by using the optical Wedge structure to build air chamber and chamber for gas under test, and by measuring the differences of the optical Wedge interference fringes of the two rooms, the density of gas has been measured. The interference theory of Wedge has been theoretical analyzed, and a formula which can be used to measure the refractive index of gas is put forward, and the uncertainty of the measurement has been analyzed. The parameters of gas density, refractive index and gas thickness have been used in the formula. The results show that the method of optical Wedge interference is practical, and high measurement accuracy is achievement when the density of gas is high.