Here's How Much You'd Have Today if You Invested $5,000 Each in Amazon and Costco 3 Years Ago. The Gains May Surprise You.

Source The Motley Fool

Key Points

  • Amazon and Costco are both major players in the consumer goods space.

  • Because of its massive cloud computing business, Amazon is more of a tech company than a retailer.

  • Global cloud computing sales are expected to climb to $2 trillion by 2030.

  • These 10 stocks could mint the next wave of millionaires ›

Amazon (NASDAQ: AMZN) and Costco Wholesale (NASDAQ: COST) are both well known as sellers of consumer goods, but when it comes to its bottom line, Amazon is much more of a tech company than a retailer. That's because Amazon also has cloud operations, chip design and production, and artificial intelligence (AI) infrastructure for other companies to utilize.

Given how much the AI trend has lifted many tech stocks over the last three years, it would be reasonable to assume that Amazon would have been a better-performing stock than Costco. That assumption proves to be correct, but anyone who invested $5,000 in both companies at the start of that period will probably find the difference between their two performances surprising.

Missed Nvidia in 2009? This Rare Signal Is Flashing Again. In 2009, a "Double Down" signal flashed for a little-known chipmaker called Nvidia. For the first time in years, that same "Total Conviction" signal is flashing for a company 1/100th the size of Nvidia. Continue »

The word Amazon over a truck and a shipping center.

Image source: The Motley Fool.

What a $5,000 investment in each looks like today

Let's start by looking at these two companies' adjusted closing prices on July 14, 2023.

Stock

Adjusted Closing Price, July 14, 2023

Amazon

$134.68

Costco

$525.24

With fractional investing, a $5,000 investment on July 14, 2023, would get you around 37.1 shares of Amazon or 9.5 shares of Costco. Using the adjusted closing price on July 14, 2026, that initial investment in each company would be worth the following today:

  • Amazon: $9,186
  • Costco: $8,756

It may seem surprising that the investment in Amazon would not have yielded much more than a stake in Costco. That's not a knock on Costco, as I like the company for its recession-resistant business model, loyal customer base, and dividend payout, as well as the special dividends it pays from time to time. That said, looking to the next three years, I'd still rather own Amazon.

The opportunity is in the cloud

Based on traditional valuation metrics, Amazon is currently cheaper than Costco. Amazon trades at a forward price-to-earnings (P/E) ratio of 29.2, while Costco's forward P/E is 41.1. That lower valuation, paired with the tech company's wider revenue growth opportunities, makes it look like a more favorable stock pick.

Amazon is the global leader in cloud computing infrastructure: Its Amazon Web Services (AWS) unit had a 28% market share as of the first quarter of 2026. Its next closest competitor was Microsoft, with its Azure platform accounting for 21% of the market.

AWS generated $128.7 billion in revenue in 2025, and those sales should increase further in the years ahead thanks to AI. According to Goldman Sachs Research, overall cloud computing sales are expected to climb to $2 trillion by 2030, with 10% to 15% of that spending attributable to generative AI.

Amazon is also developing its own custom AI accelerator chips, which can further strengthen AWS by helping it to meet the needs of its customers at lower costs.

With that all said, it's also true that Amazon and other hyperscalers are spending unprecedented amounts to build out their AI infrastructure. To keep investors happy, capex spending needs to eventually show signs that it's boosting margins, unlocking more revenue, or ideally, both. But if Amazon continues to lead the cloud market and eventually shows that its AI infrastructure spending is delivering the expected returns on investment, its stock could generously reward long-term shareholders.

Don’t miss this second chance at a potentially lucrative opportunity

Ever feel like you missed the boat in buying the most successful stocks? Then you’ll want to hear this.

On rare occasions, our expert team of analysts issues a “Double Down” stock recommendation for companies that they think are about to pop. If you’re worried you’ve already missed your chance to invest, now is the best time to buy before it’s too late. And the numbers speak for themselves:

  • Nvidia: if you invested $1,000 when we doubled down in 2009, you’d have $551,839!*
  • Apple: if you invested $1,000 when we doubled down in 2008, you’d have $62,419!*
  • Netflix: if you invested $1,000 when we doubled down in 2004, you’d have $397,351!*

Right now, we’re issuing “Double Down” alerts for three incredible companies, available when you join Stock Advisor, and there may not be another chance like this anytime soon.

See the 3 stocks »

*Stock Advisor returns as of July 16, 2026.

Jack Delaney has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Amazon, Costco Wholesale, and Goldman Sachs Group. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
SK Hynix ADR Premium Narrows Sharply, Two-Way Conversion Imminent, Arbitrage Window Tests PricingAfter experiencing a wild surge following its initial listing, SK Hynix ( SKHY) ADR premium is rapidly unwinding. In US trading on Wednesday, July 15, SK Hynix ADRs closed down 9% at $176
Author  TradingKey
6 hours ago
After experiencing a wild surge following its initial listing, SK Hynix ( SKHY) ADR premium is rapidly unwinding. In US trading on Wednesday, July 15, SK Hynix ADRs closed down 9% at $176
placeholder
Today’s Market Recap: Unexpected PPI Drop Boosts Markets, Apple Hits All-Time High, AI Hardware Stocks Remain Under Pressure, Micron, SanDisk SlumpOn July 15, Eastern Time, the three major US stock indexes closed higher for the second consecutive trading day. The unexpected decline in the US June PPI further st
Author  TradingKey
16 hours ago
On July 15, Eastern Time, the three major US stock indexes closed higher for the second consecutive trading day. The unexpected decline in the US June PPI further st
placeholder
Gold Price Trend Forecast: Why Did Gold Prices Fall After US CPI Cooled? Fed Chair Speech and Iran Situation Become Obstacles As of the Asian trading session on July 15, gold ( XAUUSD) prices fell back to fluctuate near $4,030, erasing nearly all of the gains driven by yesterday's positive CPI data. Looking at t
Author  TradingKey
Yesterday 09: 28
As of the Asian trading session on July 15, gold ( XAUUSD) prices fell back to fluctuate near $4,030, erasing nearly all of the gains driven by yesterday's positive CPI data. Looking at t
placeholder
WTI rises as Trump's threats strikes on IranWest Texas Intermediate (WTI) oil price extends its gains for the third successive day, trading around $79.20 per barrel during the Asian hours on Wednesday. Crude oil prices have climbed following threats from US President Donald Trump regarding additional military strikes on Iran.
Author  FXStreet
Yesterday 01: 21
West Texas Intermediate (WTI) oil price extends its gains for the third successive day, trading around $79.20 per barrel during the Asian hours on Wednesday. Crude oil prices have climbed following threats from US President Donald Trump regarding additional military strikes on Iran.
placeholder
Gold Price Trend Forecast: June CPI Plus Fed Chair Congressional Testimony, Can Gold Price Hold Above $4,000?As of the Asian session on July 14, gold ( XAUUSD) prices consolidated around the $4,000 mark, briefly slipping below $4,000 intraday to hit a low of $3,983.23. Looking at the market acti
Author  TradingKey
Jul 14, Tue
As of the Asian session on July 14, gold ( XAUUSD) prices consolidated around the $4,000 mark, briefly slipping below $4,000 intraday to hit a low of $3,983.23. Looking at the market acti
goTop
quote