If you're planning to buy a home, you should be ready to spend some serious cash.

In addition to putting as much as 20 percent down, you also need to have enough in the bank to cover closing costs, moving expenses, repairs and the first few months' mortgage payments, all without draining your emergency fund.