4. Understand how long your investments will have to last. In other words, how long you're likely to live in retirement.

There's a very good chance it's longer than you think. That's great news, of course. But it doesn't help your math.

The average life expectancy in the U.S. these days is about 75 for a man and 80 for a woman. Those data are from the U.S. census. And they're completely useless for retirement math.

Why? Because you are unlikely to be exactly average. And your fears are asymmetric. From a purely financial standpoint, you don't want to outlive your savings, even by a couple of years.

Furthermore, those life-expectancy figures are measured from birth, not from age 65.

Much more useful are the cohort survivorship figures calculated by the U.S. Department of Health. Of those who make it to 65, 25% will go on to live to 90, they show. Among women it's 30%. And of women who make it to 65, 12%, or one in eight, will live to 95. Quite a few, about 3%, will live to 100.

I have a couple of friends going very strong indeed in their 80s. Fortunately, they are financially secure. You do not want to find yourself there with your money running out.

In other words, to save enough for your retirement, you're going to have to set aside enough money to provide you with a suitable income for several decades. Think 25 years, maybe even 30.

5. And here's your answer. You now have the data to make some estimates.

Let's say you plan to retire at 65 and will need an income of $10,000 a year from your investments. (We'll take that, as it's a simple place from which to start the calculations.) And you want to make sure the money will last up to 30 years.

How much will you need to save?

Some people will direct you to the annuities market for some answers. An immediate fixed annuity is a product from an insurance company that will provide you with a guaranteed income for life.

A 65-year-old man who wants an income of $10,000 a year for life could buy an annuity for $130,000. A 65-year old woman would pay a little more, $140,000, because the insurance company figures she'll live longer.

So that's it, right? You'll need to save about 13 or 14 times the extra income you need? (Is your 401k going to provide enough? Find out with MSN Money's calculator.)

Not so fast.

Those annuities won't protect you from inflation. And that's a very big deal. Over 20 or more years, even modest rates of inflation will hurt you. An inflation rate of 3% will nearly halve your purchasing power.

Click here to become a fan of MSN Money on Facebook

There are, alas, very few annuities that offer inflation protection. A reasonably conservative investment portfolio, suitable for someone in retirement, can do better.

Think of a portfolio of inflation-protected Treasury bonds, known as TIPS, and high-quality blue-chip stocks. Although both offer lower returns than usual at the moment, most of the time you would expect a portfolio like this to earn an average return of inflation plus about 3% over the course of an economic cycle.

Based on those numbers, you probably need to set aside about 20 times your required annual income by the time you retire.

If you need your portfolio to generate $10,000 a year and last up to 30 years, for example, you'd want to start with about $200,000. If you need your portfolio to generate $50,000 a year, you'd want to start with $1 million.

More from The Wall Street Journal: