Is It Cheaper To Rebuild A Motor Or Replace It?

Is it better to rebuild or replace engine?

.

Is rebuilding a motor worth it?

How much does an engine rebuild cost?

Is it cheaper to rebuild a car or buy new?