An analyzing element (10) is provided with a sample chamber (11) into which a gas or liquid sample is introduced; detection light waveguides (12a, 12b) arranged adjacent to the sample chamber (11) for guiding detection light for detecting a sample; and a detection light inputting section (13) for inputting the detection light, which is traveling in a direction along the detection light waveguides (12a, 12b), into the detection light waveguides (12a, 12b) from the end surface of the detection light waveguides (12a, 12b). The detection light waveguides (12a, 12b) have an exposed surface (14) exposed in the sample chamber (11).