A gas sensor includes a gas sensor element. The gas sensor element includes a first detection chamber; a first oxygen pumping cell including a first solid electrolyte body and a pair of first electrodes; a second detection chamber; a second oxygen pumping cell including a second solid electrolyte body and a pair of second electrodes; and an oxygen-concentration sensing cell including a third solid electrolyte body and a pair of third electrodes. A sensing electrode of the third electrodes is disposed downstream beyond a first inner electrode of the first electrodes relative to a gas flow direction. A cross-sectional area of a space of the first detection chamber which faces the first inner electrode falls within a range from 0.03 mm2 to 0.22 mm2. A center of the sensing electrode is located downstream beyond a downstream end of the first inner electrode to cause a distance between the center of the sensing electrode and the downstream end of the first inner electrode to be greater than or equal to ten times magnitude of a height of the space.