Costco marks up prices by a razor-thin margin and makes most of its profits from the fees that customers pay for annual memberships. COST Gross Profit Margin (Quarterly) data by YCharts Costco actually benefited from inflation because more people shopped at its warehouses. Costco Wholesale (NASDAQ: COST) and Amazon (NASDAQ: AMZN) look well-positioned to win this holiday season.