Home Depot (HD 0.20%) and Lowe's (LOW 0.90%) have helped countless homeowners increase the value of their homes. They've also made many investors rich.

With their shares having soared 879% and 484%, respectively, over the past decade, Home Depot and Lowe's have created fortunes for their long-term shareholders. But which of these home-improvement giants is the better investment opportunity today?

Home-improvement tools lined up under a yellow measuring tape shaped like the outline of a house.

Image source: Getty Images.

Competitive position

While Home Depot and Lowe's are the top two players in the home-improvement industry, Home Depot has some significant competitive advantages over its archenemy.

Home Depot's greatest advantage is perhaps its best-in-class omnichannel capabilities. The company is far more than just a traditional brick-and-mortar retailer. In fact, Home Depot generates the fifth-most e-commerce sales in the U.S., behind only Amazon.comeBayApple, and Walmart, according to research company eMarketer. This increasingly important aspect of Home Depot's business is growing rapidly; the retailer's online sales jumped 26% in the second quarter. Better still, Home Depot's digital sales are also boosting in-store traffic, as 47% of its online orders are picked up in its stores.  

Lowe's is also enjoying some e-commerce success. However, online sales make up a smaller proportion of its revenue and are growing less quickly; comparable sales at Lowes.com rose 18% in the second quarter. Lowe's is losing market share, as Home Depot's comp sales, revenue, and earnings all increased by higher percentages this past quarter. 

All told, Home Depot is the clear leader in the home-improvement industry and has consistently outperformed Lowe's on most key operational metrics over time. I expect this to remain true in the years ahead.

Advantage: Home Depot

Financial strength

Let's now take a look at how these retailers stack up with regard to some key financial metrics.

Metric

Home Depot

Lowe's

Revenue (TTM)

$104.32 billion 

$70.51 billion 

Operating income (TTM)

$15.15 billion

$6.27 billion

Net income (TTM)

$9.85 billion

$3.92 billion

Operating cash flow (TTM)

$12.08 billion

$5.78 billion

Free cash flow (TTM)

$9.93 billion

$4.59 billion

Cash

$3.49 billion 

$2.27 billion 

Debt

$25.50 billion

$15.83 billion

Data source: Morningstar. Chart by author. TTM = trailing 12 months.

Home Depot's revenue base is nearly 50% larger than that of Lowe's. It's also the far more profitable business, with an operating margin of 14.5%, compared to 8.9% for its smaller rival. In turn, Home Depot generated more than twice as much cash from operations and free cash flow as Lowe's over the past year.

So although Home Depot is the more heavily indebted retailer, its stronger profit and cash flow production give it the edge here. 

Advantage: Home Depot

Growth

Lowe's revenue growth has slightly outpaced that of Home Depot over the past half-decade, but the latter has delivered higher profit growth during this time.

HD Revenue (TTM) Chart

Home Depot vs. Lowe's Revenue, Operating Income, and Net Income: data by YCharts.

Over the next five years, Wall Street expects these two retailers to grow their earnings at roughly the same rate. Analysts forecast Lowe's earnings per share will rise by 15.2% annually, driven by its cost-reduction initiatives and low-single-digit revenue growth. Home Depot, meanwhile, is projected to increase its EPS by 14.9% per year, fueled in part by the continued strong growth of its e-commerce operations.

With such similar expected EPS growth, I'm going to call it a draw here.

Advantage: None

Valuation

Lastly, let's check out some key valuation metrics for Home Depot and Lowe's, including their price-to-free cash flow (P/FCF), price-to-earnings (P/E), and price-to-earnings-to-growth (PEG) ratios.

Metric

Home Depot

Lowe's

P/FCF

22.18

18.62

Trailing P/E

22.69 

22.16 

Forward P/E

18.70

17.53

PEG

1.34

1.32

Data source: Yahoo! Finance. Chart by author.

On all four metrics, Home Depot's stock is more expensive than that of Lowe's. Investors appear willing to pay a higher multiple per dollar of free cash flow and earnings for the industry leader, which I believe is warranted, due to its strong competitive advantages and track record of outperformance. Still, the discount in Lowe's stock price is enough to give it a slight edge here. 

Advantage: Lowe's

The better buy is...

Price matters, but business quality matters even more to the long-term investor. So while Lowe's stock is cheaper, Home Depot's operational and financial superiority make it the better buy today.