Generally, it is cheaper to rebuild an engine than to buy a new one. However, this can depend on the specific engine and the extent of the rebuild. It's important to weigh the costs and benefits of each option before making a decision.