A torque sensor , comprising: a sensor housing ; a first sleeve attached to a first rotating member that rotates with respect to the sensor housing ; a magnet attached to the first sleeve ; a second sleeve attached to a second rotating member coupled to the first rotating member via a torsion bar; a carrier attached to the second sleeve ; a yoke attached to the carrier and opposing the magnet in a radial direction orthogonal to a shaft direction that is a longitudinal direction of the first rotating member ; and a magnetic flux collecting member attached to the sensor housing and opposing the yoke in the shaft direction, wherein the carrier opposes an opposing end surface of either one of the first sleeve and the magnet in the shaft direction, the torque sensor being characterized in that : the carrier includes a protrusion opposing the opposing end surface in the shaft direction, a length (D1) of a gap (C1) between the protrusion and the opposing end surface in the shaft direction is smaller than a length (D2, D3) of a gap (C2, C3) between the yoke and the magnetic flux collecting member in the shaft direction, and a length of a gap between an end surface of the second sleeve and an end surface of a raised portion formed on an outer circumferential surface of the second rotating member in the shaft direction is smaller than the length of the gap between the yoke and the magnetic flux collecting member in the shaft direction. a sensor housing ; a first sleeve attached to a first rotating member that rotates with respect to the sensor housing ; a magnet attached to the first sleeve ; a second sleeve attached to a second rotating member coupled to the first rotating member via a torsion bar; a carrier attached to the second sleeve ; a yoke attached to the carrier and opposing the magnet in a radial direction orthogonal to a shaft direction that is a longitudinal direction of the first rotating member ; and a magnetic flux collecting member attached to the sensor housing and opposing the yoke in the shaft direction, wherein the carrier opposes an opposing end surface of either one of the first sleeve and the magnet in the shaft direction, the torque sensor being characterized in that : the carrier includes a protrusion opposing the opposing end surface in the shaft direction, a length (D1) of a gap (C1) between the protrusion and the opposing end surface in the shaft direction is smaller than a length (D2, D3) of a gap (C2, C3) between the yoke and the magnetic flux collecting member in the shaft direction, and a length of a gap between an end surface of the second sleeve and an end surface of a raised portion formed on an outer circumferential surface of the second rotating member in the shaft direction is smaller than the length of the gap between the yoke and the magnetic flux collecting member in the shaft direction. the carrier includes a protrusion opposing the opposing end surface in the shaft direction, a length (D1) of a gap (C1) between the protrusion and the opposing end surface in the shaft direction is smaller than a length (D2, D3) of a gap (C2, C3) between the yoke and the magnetic flux collecting member in the shaft direction, and a length of a gap between an end surface of the second sleeve and an end surface of a raised portion formed on an outer circumferential surface of the second rotating member in the shaft direction is smaller than the length of the gap between the yoke and the magnetic flux collecting member in the shaft direction. <EOS>