The engine blew on my 2003 Honda Accord and it cost me just under $2500 to get a new engine. I found engines on eBay for half of what my mechanic was charging me for the replacement engine, but he claimed that his engine offered a warranty.
There are cheaper ways to get a new engine but this is the route I chose, because ultimately any other option wasn't saving me any real money. The bulk of the cost of repair was labor. The garage I had it towed to had a good reputation, but also not cheap. I could've tried to shop around but any savings I would've gained would've been eaten up by towing costs.