NEW YORK ( TheStreet) -- In a little over three years as a public company, Facebook ( FB) is now worth more than Wal-Mart ( WMT) and has replaced the retailing giant as one of the 10 largest companies in the Standard and Poor's 500 Index by market capitalization.

During the past year, Facebook's stock has jumped roughly 30% as the broader S&P 500 has barely managed to keep its head above water. The climb has added more than $65 billion to Facebook's market value, bringing it to more than $238 billion, just above Wal-Mart's $235 billion. Shares of Wal-Mart are down 20% from their 2015 high, which was reached in January, and they recently hit a 20-month low.

By revenue, Wal-Mart is the largest company in the world, with sales of $476 billion in the company's latest fiscal year ended in January. Facebook recorded revenue of roughly $12.5 billion in 2014.

Wal-Mart hasn't finished a year outside the top 10 biggest S&P 500 companies by market cap since 1997, said S&P Dow Jones Indices' Howard Silverblatt.

On Tuesday, shares of Facebook were trading at $85.31, up 57 cents. Wal-Mart was down 8 cents to $72.71.

If you liked this article you might like

Watch: Facebook Co-Founder Chris Hughes on How to Solve 'Fake News'

Watch: Facebook Co-Founder Chris Hughes on How to Solve 'Fake News'

What's Next for Snap?

What's Next for Snap?

24 Stocks Hedge Funds Are Loving Right Now

24 Stocks Hedge Funds Are Loving Right Now

AAP Exclusive: Cramer on Facebook, Alphabet and Amazon.

AAP Exclusive: Cramer on Facebook, Alphabet and Amazon.

Kylie Jenner Puts $168 Million Into the Pockets of People That Hate Snap Stock

Kylie Jenner Puts $168 Million Into the Pockets of People That Hate Snap Stock