No matter the brand or how well you maintain your air conditioning system, the compressor will need to be replaced termly. If your air conditioner is having problems and you have narrowed it down to a bad compressor, you can replace it following the steps below. A compressor works by compressing refrigerant gas and then sending it to a condenser where the gas is cooled and turned into a liquid.