If you've ever been deep in debt, you know how hard it is to dig yourself out. But even if you manage to get your credit cards and other bad debt paid down, there's an important next step you need to take before you can declare yourself out of danger completely.

This week, I'm taking a look at how you can get your finances in order in just five days. Yesterday's article focused on the burden that credit cards and other debt can put on your budget. Once you're out of debt, you can start thinking about what you'll do with excess cash -- including the many ways you can invest it.

But before you decide you're going to become the next Warren Buffett with your stock portfolio, there's one other thing you ought to do first. It won't necessarily give you obvious rewards up front -- but in a bind, you'll realize just how essential it is to your financial health.

Handling emergencies
We've all been there: you think you've got all your expenses covered until your next paycheck ... until the furnace breaks. Or the car stops running. Or your kids need new soccer shoes. No matter how well you plan, there's always something that you won't specifically foresee.

Suddenly, you're in a bind and need money now. What are your options?

  • Take a credit card out of its hiding place and risk getting yourself right back into the debt trap again. With even some of the best credit cards from issuers like JPMorgan Chase (NYSE:JPM) and American Express (NYSE:AXP) charging anywhere from 12% to 20% interest, using plastic for your emergency just puts off handling the real question for another day.
  • Run off to a payday advance loan store like First Cash Financial (NASDAQ:FCFS) or EZCorp (NASDAQ:EZPW) to get a payday loan. Although some of these stocks were close to failure during the worst of the financial crisis, they've bounced back strongly since early last year. For customers, though, the high fees aren't exactly what you want to pay on a tight budget.
  • Go get money that you've put into an emergency savings account specifically for this sort of unexpected expense. Spend it, and set up a plan to replenish the account over the next several months.

Doesn't Door No. 3 look like the best option?

Worth the opportunity cost
Unfortunately, people aren't getting much of an incentive to set up an emergency account right now. Many banks pay next to nothing in interest. Even banks with above-average current rates -- ones like Capital One (NYSE:COF), AIG (NYSE:AIG), and Discover Financial Services (NYSE:DFS) -- won't pay you more than 1.5% on your money. Compare that to the 60%-plus gains the stock market has seen over the past year, and you can see why emergency accounts aren't that appetizing right now.

Moreover, setting aside huge blocks of money isn't all that easy in today's economy. Experts generally recommend saving three to six months in expenses, but if you're struggling to make ends meet, it'll take a long time setting aside $50 or $100 a month to reach that goal.

It's still worth it, though. Here's why:

  • The psychological hit to going back into debt can derail your financial recovery.
  • Even saving small amounts, you'll see yourself making progress slowly over time. You can point to that as a tangible result of all the work you're doing.
  • How much you need depends on your particular situation. Even before you reach your ultimate goal, you'll still be in a position to handle smaller emergencies -- ones that would have used to throw you back into debt's clutches.

Keep moving forward
As tempting as it can be during a bull market, starting to invest before you have enough emergency savings can end up being costly. Taking the time to cover the inevitable contingency of unexpected expenses will pay big dividends over the long run.

Stay tuned for the rest of the week as Dan continues his five-day financial fix series. Up tomorrow: It's time to invest.