A gas measuring apparatus includes a cell portion, a light source portion, a detection portion, and a control portion. The cell portion includes a space into which a sample gas containing breath containing a first isotope of carbon dioxide and a second isotope of carbon dioxide is introduced. The light source portion changes a wavelength of the light in a band of 4.345 μm or more and 4.384 μm or less. The detection portion performs an operation including first detection of an intensity of the light passing through the space and second detection of an intensity of the light passing through the space into which the sample gas is not introduced. The control portion calculates a ratio of an amount of the second isotope to an amount of the first isotope based on a result of the first detection and a result of the second detection.