A centrifugal compressor comprising: a casing that has a tubular shape that extends in an axial direction; a motor stator that is fixed to an inside in a radial direction of the casing; a shaft that is disposed inside in the radial direction of the motor stator and extends in the axial direction; a motor rotor that is fixed to the shaft and faces the motor stator with a gap therebetween in the radial direction; a compression unit that is fixed to an end portion of the shaft on one side in the axial direction and includes at least one impeller; a first thrust magnetic bearing that is disposed between the motor rotor and the impeller in the axial direction; and a second thrust magnetic bearing that is disposed, in the axial direction, on the other side in the axial direction relative to the motor rotor, wherein a magnetic attraction force of the second thrust magnetic bearing toward the other side in the axial direction is larger than a magnetic attraction force of the first thrust magnetic bearing toward the one side in the axial direction, wherein the first thrust magnetic bearing includes a first rotor that is coaxially fixed to the shaft, and a first stator that is fixed to an inside in the radial direction of the casing and positioned on the one side in the axial direction relative to the first rotor with a gap therebetween in the axial direction, wherein the second thrust magnetic bearing includes a second rotor that is coaxially fixed to the shaft, and a second stator that is fixed to an inside in the radial direction of the casing and positioned on the other side in the axial direction relative to the second rotor with a gap therebetween in the axial direction, wherein an outside diameter of the second rotor is larger than an outside diameter of the first rotor, wherein the outside diameter of the first rotor is smaller than an inside diameter of the motor stator, and wherein the outside diameter of the second rotor is larger than the inside diameter of the motor stator. a casing that has a tubular shape that extends in an axial direction; a motor stator that is fixed to an inside in a radial direction of the casing; a shaft that is disposed inside in the radial direction of the motor stator and extends in the axial direction; a motor rotor that is fixed to the shaft and faces the motor stator with a gap therebetween in the radial direction; a compression unit that is fixed to an end portion of the shaft on one side in the axial direction and includes at least one impeller; a first thrust magnetic bearing that is disposed between the motor rotor and the impeller in the axial direction; and a second thrust magnetic bearing that is disposed, in the axial direction, on the other side in the axial direction relative to the motor rotor, wherein a magnetic attraction force of the second thrust magnetic bearing toward the other side in the axial direction is larger than a magnetic attraction force of the first thrust magnetic bearing toward the one side in the axial direction, wherein the first thrust magnetic bearing includes a first rotor that is coaxially fixed to the shaft, and a first stator that is fixed to an inside in the radial direction of the casing and positioned on the one side in the axial direction relative to the first rotor with a gap therebetween in the axial direction, a first rotor that is coaxially fixed to the shaft, and a first stator that is fixed to an inside in the radial direction of the casing and positioned on the one side in the axial direction relative to the first rotor with a gap therebetween in the axial direction, wherein the second thrust magnetic bearing includes a second rotor that is coaxially fixed to the shaft, and a second stator that is fixed to an inside in the radial direction of the casing and positioned on the other side in the axial direction relative to the second rotor with a gap therebetween in the axial direction, a second rotor that is coaxially fixed to the shaft, and a second stator that is fixed to an inside in the radial direction of the casing and positioned on the other side in the axial direction relative to the second rotor with a gap therebetween in the axial direction, wherein an outside diameter of the second rotor is larger than an outside diameter of the first rotor, wherein the outside diameter of the first rotor is smaller than an inside diameter of the motor stator, and wherein the outside diameter of the second rotor is larger than the inside diameter of the motor stator.