You need to have enough for a down payment, closing costs, and at least a couple thousand for emergencies.
The hardest part for me was to get my savings and annual income to increase faster than home prices. You can’t control home prices, but you can control (to some extent) where you live, how much you work/where you work, and how much you spend. The more aggressive you are in your career and saving, the sooner you can buy a home.