The stock market recovered from a midday decline on Friday after touching the edge of its first bear market since the pandemic began.

The S&P 500 ended 18.7% below the all-time high it hit in early January. A 20% decline would have been considered the start of a bear market. The benchmark, at the heart of many retirement accounts, rebounded from a 2.3% loss to barely end in the green.

Rising interest rates, high inflation, war in Ukraine and a slowing Chinese economy are worrying investors. The Dow Jones erased a drop of 600 points.

Friday:


The S&P 500 rose 0.57 points, or less than 0.1%, to 3,901.36.

The Dow Jones Industrial Average rose 8.77 points, or less than 0.1%, to 31,261.90.

The Nasdaq fell 33.88 points, or 0.3%, to 11,354.62.

The Russell 2000 Small Business Index fell 2.96 points, or 0.2%, to 1,773.27.

For the week:

The S&P 500 is down 122.53 points, or 3%.

The Dow is down 943.76 points, or 2.9%.

The Nasdaq is down 450.38 points, or 3.8%.

The Russell 2000 is down 19.40 points, or 1.1%.

For the year:

The S&P 500 is down 864.82 points, or 18.1%.

The Dow is down 5,076.40 points, or 14%.

The Nasdaq is down 4,290.35 points, or 27.4%.

The Russell 2000 is down 472.05 points, or 21%.