Here at The Motley Fool we believe you don't need to be a rocket scientist or grossly overpaid financial professional in order to beat the market. All you need is a little time, patience and a few Foolish friends to help lead you down the most profitable path. In an effort to do my part, I will be regularly comparing companies against the market itself -- or in this case, the S&P 500. We will first look at the past price performance, then a few current key metrics in order to make our investment decision.

Today, we will be looking at whether Wal-Mart (NYSE: WMT) has what it takes to beat the market.

Past
First, let's examine how Wal-Mart has performed over the past year.

WMT Chart

WMT data by YCharts. Dividends not reinvested.

Wal-Mart has easily beaten the market, more than doubling the returns of the S&P 500. Now we'll review the price performance over a longer period of time.

WMT Chart

WMT data by YCharts. Dividends not reinvested; gray area represents U.S. recession.

Over a 10-year period, Wal-Mart has been outperformed by the market. Even after taking a hit during the recession, the broader S&P 500 index rebounded more strongly than Wal-Mart in the aftermath. On the whole, the market beat out Wal-Mart when looking at the last decade in isolation.

Present
While it is very important to know about the past, current metrics will give us the best indication of whether or not we have found a future market-beating stock. In order for that to happen, it will need to beat the S&P 500 in these four areas:

  • Price/earnings: This ratio is best used when comparing two investments. It simply shows how much you are paying for $1 of earnings. The higher the number, the more expensive an investment. For this exercise we are looking for a low P/E.
  • Dividend yield: The dividend yield is a percentage of the current share price that a company will be sending shareholders. As part owner of a company, you share in the profits. The higher the better, as long as it is sustainable.
  • Return on equity: ROE shows how well a company is spending its cash on new business opportunities.
  • Net margins: All the revenue in the world doesn't matter if you're not making a profit. Margins tell you how much of the revenue is actually profit, and we always want more profit.

Metric

Wal-Mart

S&P 500

Winner

Price/earnings 15.50 16.15 WMT
Dividend yield 2.20% 1.95% WMT
Return on equity (%) 22.90 15.3 WMT
Net margins (%) 3.53 9.0 S&P 500

Sources: Yahoo! Finance, Business Insider, Multpl.com.

Even though the S&P 500 is crushing Wal-Mart in profit margins, the index is losing in the battle of P/E, dividend yield, and ROE. Furthermore, while the market has beat Wal-Mart over the past 10 years, the retail king easily outperformed the S&P over the past year and should continue this trend if management can keep ROE high. In addition, having a low P/E also indicates that Wal-Mart could move higher without becoming overly priced if earnings are flat.

Lastly, while net margins look low compared to the market, Wal-Mart actually maintains average margins in the discount variety stores sector, which boast net margin of only 3.7%. What is more promising about Wal-Mart is that it's currently testing a new "Scan and Go" checkout system. This program could speed up checkout times, resulting in lower payroll costs. Supermarket giant SUPERVALU (NYSE: SVU), which boasts net margins of -3.02%, has actually decided to cut its own self-checkout system from the Albertsons grocery chain, due to negative issues arising from the program.

Compared to its closest competitors, Target (NYSE: TGT) and Costco (Nasdaq: COST), Wal-Mart beats one while trailing the other. When Costco's renowned co-founder and former CEO Jim Sinegal left, he may have taken the good times with him. Costco has lower net margins (1.66%), lower ROE (12.79%), lower dividend yield (1.10%), and a higher P/E (27.75) than Wal-Mart. On the other hand, Target has higher net margins (4.12%), slightly lower ROE (18.95%), higher dividend yield (2.30%), and a lower P/E (14.77) than Wal-Mart.

Foolish investment decision
Even though over the past 10 years the market has beaten Wal-Mart, I believe the company Sam Walton founded nearly a half-century ago will win that battle during the next 10 years. I have also given Wal-Mart a thumbs-up CAPS Call in order to "put my money where my mouth is." Now whether or not Wal-Mart can top Target's numbers is an article for another day. But our analysts have found a retailer they believe shows great potential in the coming years. Check out this free report today.