HP memory costs, the main threat to the PC maker's profits this year, turned into a reason to buy its shares on Wednesday. HP Inc. stock closed up 11.5% at $31.15, after rising as much as 15% intraday, as investors bet the company has found a way to live with a memory-chip shortage that is squeezing the hardware industry. The rally matters because it came a day after Hewlett Packard Enterprise, the server and networking company split from the same parent in 2015, fell 16.3% on the same problem. Together the two reports show how investors are now sorting hardware makers: less by how fast sales grow, and more by whether rising component costs can be passed on to customers. Why did HP shares jump while HPE fell? HP forecast adjusted earnings of $3.15 to $3.45 a share for the fiscal year that began in November, compared with an analyst average of $3.18, according to Bloomberg. Fourth-quarter revenue rose 9.3% to $16.0 billion, above the $15.42 billion analysts expected, according to Reuters. Adjusted earnings per share fell 10.8% to 83 cents, a figure that included a 15-cent benefit from tariff refunds. HPE posted stronger growth. Revenue for its fourth quarter jumped 50% to $14.5 billion, server revenue nearly doubled to $8.8 billion, and the company raised its fiscal 2027 revenue growth forecast to 27% to 35%, from 13% to 17%. But it also guided the operating margin of its Cloud & AI unit, which houses servers and storage, to about 14% for the year, from 18.4% in the fourth quarter. HP and HPE shares moved in opposite directions within three trading days after their results Chief Financial Officer Marie Myers told analysts that costs were rising faster than pricing and that margins would come under pressure in the second half as HPE ships more lower-margin AI systems. HP, by contrast, told investors that the fourth quarter should mark the low point for its PC margins, with improvement expected from product design and component choices. How are memory costs changing PC prices? The shortage began as chipmakers shifted production toward high-bandwidth memory for AI data centers, leaving less conventional DRAM for laptops and desktops, a dynamic covered in Tabbicus's earlier memory chip shortage explainer. HP said in February that memory and storage had grown from 15% to 18% of a PC's bill of materials at the start of the year to closer to 40%, according to The Register. HP's answer has been to sell fewer, more expensive machines. In the quarter to Oct. 31, Personal Systems revenue rose 14% to $11.8 billion while total PC units fell 29%. Commercial revenue climbed 23%, consumer revenue slipped 7%, and AI PCs reached nearly 60% of shipments, the company said in its fourth-quarter results. HP Personal Systems revenue rose even as PC unit shipments fell by nearly a third The strategy has a cost. The segment's operating margin fell to 3.0% from 5.8% a year earlier. Chief Financial Officer Karen Parkhill said memory and storage costs should keep rising in fiscal 2027, but more slowly than last year, and that CPU costs would also increase. She declined to update the 40% figure, saying a fast-changing product mix makes it less useful. Why are investors worried about AI server margins? The servers that cloud providers and enterprises buy for AI work carry large amounts of memory and flash storage, and much of HPE's growth now comes from large AI system deals. HPE Chief Executive Antonio Neri said on the earnings call that the company expects "supply of memory, NAND, and many other critical components to remain constrained to at least the second half of calendar 2028." Segment operating margins at HP Personal Systems and HPE Cloud & AI, including HPE's fiscal 2027 guidance Neri described the lower margin target as a natural progression that still sits well above the unit's historical levels. Analysts were less relaxed. Raymond James said the forecast points to a meaningful decline in gross margins, and Piper Sandler said the outlook implies slower growth later in the year. Dell Technologies and Super Micro Computer also fell on the day HPE dropped. What does the memory shortage mean for PC makers in 2027? HP expects the PC market to shrink by a high-single-digit to low-double-digit percentage in units in calendar 2027. It is targeting about $1 billion in gross annual cost savings by fiscal 2028 and forecast free cash flow of $2.9 billion to $3.1 billion for fiscal 2027. Inventory rose to $12.3 billion at the end of the quarter, or 84 days, up 11 days from the prior quarter. The next test arrives early next year. Former GSK chief Emma Walmsley takes over as HP chief executive on Jan. 4, and the first-quarter forecast of 66 to 76 cents a share will show whether premium pricing can keep offsetting component inflation. For hardware makers more broadly, the HP and HPE reports suggest investors will keep rewarding pricing power over raw growth for as long as memory stays scarce. Quick facts HP Inc. shares: +11.5% to $31.15 on Nov. 25, 2026 HP fiscal Q4 revenue: $16.0 billion, +9.3%; adjusted EPS 83 cents HP fiscal 2027 adjusted EPS outlook: $3.15 to $3.45 (analyst average $3.18) HP PC units: -29%; Personal Systems revenue: +14%; segment margin 3.0% HPE fiscal Q4 revenue: $14.5 billion, +50%; shares -16.3% on Nov. 24 HPE Cloud & AI margin: 18.4% in Q4, guided to about 14% for fiscal 2027 HPE expects memory and component supply to stay tight into at least the second half of 2028 Sources: company statements and reporting by Reuters, Bloomberg and The Register.