Amazon warned of a potential operating loss in the current quarter, which spooked investors and sent shares sharply lower in after-hours trading.

The online retailer said its fourth-quarter profit tumbled 57% from a year ago on revenue of $17.43 billion, nearly $900 million less than what analysts were forecasting.

Amazon's operating bottom...