Could you become a millionaire? Probably. The trick is figuring out just how to get from where you are now to that point.

A bunch of factors influence how you'll get there:

  • How much you have invested already.
  • How much you can save and invest each year.
  • What average annual return you expect to earn.

Let's see how these factors can work for you, supposing you're 40 years old with a $50,000 nest egg:

Amount Invested Per Year

Average Rate of Return

Years to $1 Million

Age at $1 Million

$3,000

8%

32

72

$5,000

8%

29

69

$10,000

8%

24

64

$3,000

10%

27

67

$5,000

10%

25

65

$10,000

10%

21

61

$3,000

12%

23

63

$5,000

12%

21

61

$10,000

12%

18

58

These reasonable inputs would let you achieve millionaire-hood within about 20 to 30 years, depending on how quickly your money grows, and how much you manage to save and invest.

You might already know that the stock market's longtime average return is about 10% per year. But remember, that's a very long-term average -- stocks could average 8%, 12%, or something else entirely during the 20, 30, or 40 years that you invest. And that's not the only complication the market could toss your way.

Before you start seeing dollar signs ...
As we've seen over the past year or two, even stocks considered the safest blue chips can have widely differing performances over short or long stretches of time. Check out how some companies in the Dow 20 years ago have fared since then:

Company

20-Year Average Annual Return

IBM (NYSE:IBM)

9%

Merck (NYSE:MRK)

7%

American Express

8%

Boeing (NYSE:BA)

6%

DuPont (NYSE:DD)

5%

Alcoa

3%

Eastman Kodak

(9%)

Source: Yahoo! Finance.

Your best path to a million bucks
You can get to a million faster by saving and investing more, and by picking the right stocks to generate higher returns. And you'll stand a chance of compounding at higher rates if you invest in stocks with the healthiest growth rates.

Smaller companies are generally one good area to start looking for strong growers. After all, it's easier to double your revenue from $50 million to $100 million than from $50 billion to $100 billion. To an extent, the outsized returns in the table above reflect companies that were much younger and smaller 20 years ago.

Not only do small caps outperform their larger peers overall, but according to data compiled by my Foolish colleague Tim Hanson, all of the past decade's best performers were small, most with capitalizations less than $100 million. Check out the 10-year average returns of some of them:

Company

10-Year Average Annual Return

Jan. 1, 1999, Market Cap

Hansen Natural (NASDAQ:HANS)

47%

$53 million

Celgene (NASDAQ:CELG)

42%

$252 million

Green Mountain Coffee Roasters (NASDAQ:GMCR)

54%

$19 million

Data from Morningstar.com and Capital IQ, a division of Standard & Poor's.

Compare those puny market caps with those of today's blue chips -- IBM's, for example, tops $150 billion, while American Express' is over $30 billion. Which kinds of companies do you think stand the better chance of growing quickly?

It's critical to choose your stocks well, and to keep up with your holdings, making sure you're devoting money to your best ideas. It's also critical to start soon. The more time your money has to grow, the sooner you'll reach a million.

If you're looking for small companies with lots of room to grow, try our Motley Fool Hidden Gems newsletter absolutely free. Even in this crummy economy, its recommendations have been outperforming the market. You can access all our past issues and recommendations with a 30-day guest pass.

Already subscribe to Hidden Gems? Log in at the top of this page.

This article was originally published on June 15, 2009. It has been updated.

Longtime Fool contributor Selena Maranjian owns shares of American Express. Green Mountain Coffee Roasters and Hansen Natural are Motley Fool Rule Breakers selections. American Express is a Motley Fool Inside Value recommendation. The Fool owns shares of American Express. The Motley Fool is Fools writing for Fools.