On average, the cost to replace a compressor in a refrigerator is around $200 to $600.