Shares of Macy's (M -2.68%) and Kohl's (KSS 1.49%) were crushed on Thursday, after both department store operators cut their earnings forecasts due to weak holiday season sales. Macy's stock tumbled 14%, leaving it near a 52-week low. Kohl's shares plunged a painful 19%, eviscerating two months of big gains.

M Chart

Macy's and Kohl's Stock Performance data by YCharts.

Both companies' results suggested that department stores still haven't found the answer to changing retail traffic trends. The poor results were particularly discouraging as weather trends have been far more favorable over the past two months than in the prior-year period.

In the case of Kohl's, the big stock decline was probably justified. However, investors are overreacting to Macy's weak sales performance. Store closures and cost cuts will help Macy's continue to produce strong cash flow despite its sales declines. Furthermore, real estate represents the majority of the company's value today.

Department store sales decline once again

At Macy's, comparable-store sales (including licensed departments) declined 2.1% during the combined November-December period. That is roughly consistent with the low end of the company's Q4 guidance range, which called for a 0.5% to 2% comp sales decline. However, it's actually better than the company's prior trend. Through the first three quarters of fiscal 2016, comp sales fell 3.5% year over year.

Macy's blamed the sales declines primarily on reduced demand for handbags and watches. On the bright side, its online business continues to thrive. The Macy's and Bloomingdale's e-commerce sites both recorded double-digit sales gains during the holiday season.

Poor in-store sales at Macy's more than offset e-commerce growth. Image source: The Motley Fool.

Meanwhile, at Kohl's, comp sales fell 2.1% for November and December combined. That was in line with the company's 2.4% comp sales decline for the first nine months of the fiscal year, but fell short of its internal forecast. Management noted that sales were highly volatile, with good results around Black Friday and the week before Christmas, but big sales declines for the rest of the period.

Macy's and Kohl's slash their earnings forecasts

The poor sales results -- along with the timing and product mix of those sales -- forced Macy's and Kohl's to reduce their Q4 and full-year earnings expectations.

Macy's now expects full-year adjusted earnings per share of $2.95 to $3.10, down from a prior guidance range of $3.15 to $3.40. This implies that adjusted EPS will be slightly less than $2 in Q4, down from $2.09 a year earlier. (Some of this decline may be driven by the timing of asset sales.)

As for Kohl's, management now expects full-year adjusted EPS of $3.60 to $3.65. This implies that adjusted EPS will total just $1.27 to $1.32 this quarter, down as much as 20% from $1.58 a year earlier.

Macy's bears are missing the point

For Kohl's shareholders, the recent guidance cut is a sobering development. Kohl's stock rallied from as low as $34 last spring to nearly $60 a month ago based on optimism that the company was on track to return to steady earnings growth, driven by a combination of modest sales increases and better inventory management.

If Kohl's will instead remain on its current downward sales and earnings trajectory, the outlook for investors looks bleak. Even after Thursday's share price crash, Kohl's trades for more than 11 times earnings, which isn't that cheap for a company with declining earnings.

Macy's owns valuable real estate that it's looking to monetize. Image source: The Motley Fool.

By contrast, the bull case for Macy's stock doesn't rely on a sales recovery. The three main potential catalysts for the stock are 1. margin improvement stemming from store closures and cost cuts, 2. a potential reduction in the corporate tax rate, and 3. real estate sales.

Corporate taxes are obviously outside of management's control. However, Macy's is moving quickly on the other two fronts.

Last August, Macy's announced plans to close about 100 stores, with most of those occurring in early 2017. On Wednesday, the company identified 63 stores that will close in the next few months, along with two others that are scheduled to close later this year. Macy's also plans to cut spending on corporate overhead. These actions will result in thousands of job cuts, but will save the company about $550 million on an annual basis going forward.

Meanwhile, in the past few months, Macy's has sold three valuable stores in Portland and San Francisco for total proceeds of nearly $350 million. It is also close to selling its Minneapolis flagship location for more than $40 million. (The latter figure is surprisingly low, given that store's gargantuan size of roughly 1 million square feet.)

Macy's owns (or ground-leases) many of the stores it is closing this year. The company will work to sell those properties to mall owners or other investors for redevelopment. Macy's also recently announced a partnership with Brookfield Asset Management that will explore redevelopment options for another 50 stores.

After its recent plunge, Macy's stock trades for just nine times free cash flow. The company's cost cuts and store closures should keep free cash flow stable or rising even if sales continue to decline. Corporate tax reform creates further free cash flow upside. This will provide plenty of cash for Macy's to maintain its generous dividend (which now yields nearly 5%) while paying down high-cost debt and continuing to repurchase some stock.

Macy's will be able to use the proceeds of asset sales over the next few years for additional share repurchases. That could drive a surprisingly quick rebound in earnings per share -- and the stock price -- over the next few years.