How should I invest the money?

To build a nest egg large enough to see you through retirement, which may last 30 years or more, you'll need the growth that stocks provide.

The stock market returned 10.02% a year on average between 1926 and 2015, versus just 5.58% for bonds, according to research firm Morningstar. Given stocks' superior returns over the long haul, most financial advisers recommend that investors whose retirement is more than 20 years away hold at least 3/4 of their portfolios in stocks and stock funds.

Of course, a stock-heavy portfolio can give you some hair-raising moments (or years). For example, during the 2007-09 bear market, U.S. stocks lost 50.17% of their value - and it took the market more than three years to recoup those losses. The stock market also suffered a 43.75% decline during the bear market at the start of this decade.

If you don't have the stomach for steep downturns, you might increase your allocation to include more bonds or bond funds. Holding, say, 70% of your portfolio in stocks and 30% in bonds will let you capture most of the long-term growth of stocks while sheltering your investments to a certain extent during market downturns.

Most stock quote data provided by BATS. Market indices are shown in real time, except for the DJIA, which is delayed by two minutes. All times are ET. Disclaimer. Morningstar: © 2018 Morningstar, Inc. All Rights Reserved. Factset: FactSet Research Systems Inc. 2018. All rights reserved. Chicago Mercantile Association: Certain market data is the property of Chicago Mercantile Exchange Inc. and its licensors. All rights reserved. Dow Jones: The Dow Jones branded indices are proprietary to and are calculated, distributed and marketed by DJI Opco, a subsidiary of S&P Dow Jones Indices LLC and have been licensed for use to S&P Opco, LLC and CNN. Standard & Poor's and S&P are registered trademarks of Standard & Poor's Financial Services LLC and Dow Jones is a registered trademark of Dow Jones Trademark Holdings LLC. All content of the Dow Jones branded indices © S&P Dow Jones Indices LLC 2018 and/or its affiliates.