We report the design and performance of a gas-phase sample cell for measurements of momentum transfer (q) dependent nonresonant inelastic x-ray scattering (NRIXS). NRIXS measurements from He gas at 2 MPa (20 bars) readily demonstrate dipole-allowed and dipole-forbidden final states for two-electron excitations. Direct comparison of gas-phase NRIXS measurements with the corresponding nonresonant electron energy loss spectroscopy results (EELS) will be a valuable method for characterizing systematic errors in either technique for studies that require absolute normalization of the double differential cross section.