Home Depot shares tumbled about 5% on Tuesday after the company said it would take more time for its investments to pay off.

The Atlanta-based home improvement retailer once again cut its 2019 forecast and reported same-store sales well below estimates. Although earnings came in a penny better than expected, the company said revenue, which also missed analysts' targets, was hurt by spending on improvements to its IT systems, stores, and supply chain.

"We are largely on track with these investments and have seen positive results, but some of the benefits anticipated for fiscal 2019 will take longer to realize than our initial assumptions," CEO Craig Menear said in the release.

Here's what Home Depot reported compared with what Wall Street was expecting, based on a survey of analysts by Refinitiv:

Earnings per share: $2.53, adjusted, vs. $2.52 expected

Revenue: $27.22 billion vs. $27.53 billion expected

Same-store sales growth, global: 3.6% vs. 4.7% expected

Despite the lower forecast, the market for home improvement products remains strong, Oppenheimer analyst Brian Nagel said on CNBC's "Squawk Box." He attributed the sales miss to an internal company issue, which he noted is rare for Home Depot, rather than a miss due to economic headwinds, tariffs or lumber price deflation.

"The backdrop of home improvement was quite good," Nagel said. "The lumber price issue is not as big a deal anymore, weather has been favorable and then we have this, what I have been really been excited about, is this improving overall housing environment."

Among the internal issues is that more work needs to be done to improve its digital platforms. The process "has proven to be more complex than originally anticipated," Menear said during the company's earnings call.