This story has been updated to remove incorrect figures concerning Amazon’s stock price.

Amazon.com Inc. AMZN, +0.18% made history Thursday when shares skyrocketed after the company reported a surprise second-quarter profit of 19 cents a share, compared with a loss of 27 cents a share a year earlier. Revenue rose to $23.185 billion from $19.34 billion, blowing past analysts’ expectations.

Shares rose 10% on Friday to close at $529.42 after hitting an intraday high of $580.57.

Sources: FactSet/Wall Street Journal

Terrence Horan/MarketWatch

As of Friday, Amazon is the 11th-largest company among the S&P 500, surpassing Wal-Mart for the first time.

Amazon packed 800,000 orders of “Harry Potter and the Half Blood Prince” for shipment in the U.S. upon its release. Getty Images

Amazon saw its second-largest one-day point gain (a gain of $47.24) in its history on Friday. Its largest one-day point and percentage gain came on April 24, 2015, when shares surged 15% after company remarks on a stronger-than-expected enterprise cloud business prompted at least three analyst upgrades.

Jeff Bezos on a Segway in 2002. Segways were first made available to the general public exclusively at Amazon.com for $4,950. Getty Images

This was the third consecutive earnings announcement to result in at least a 9% gain in Amazon’s stock.

Jeff Bezos signs the board after opening the Nasdaq in on August, 2003. Getty Images

Amazon is now on pace for its best month since September 2010.

Amazon shares year-to-date are up 70.59%.

Getty Images

Amazon gained about $22.1 billion in market value Friday.