Why Alphabet's Stock Is Up 20% in 2017

What happened

Shares of Alphabet (NASDAQ: GOOG) (NASDAQ: GOOGL) have climbed roughly 20% so far in 2017, according to data provided by S&P Global Market Intelligence, after the company beat analysts' earnings consensus in two of three quarters this year.

So what

The first few months of this year weren't all that impressive for Alphabet investors. The company's share price was relatively flat for the first two months of 2017. Investors likely weren't enthused that the company didn't beat analysts' earnings estimates in the fiscal fourth quarter.

But things started turning around for the company's share price leading up to Alphabet's first-quarter fiscal 2017 report in late April. That optimism didn't leave investors disappointed, as Alphabet reported revenue of $24.7 billion, up 22% year over year, and earnings per share of $7.73 beat analysts' consensus estimate of $7.38.

Alphabet's share price retreated a bit toward the end of June and early July, but started ticking back up before the company's second-quarter results in late July. Google's parent company ended up beating analysts' consensus estimates once again, with revenue rising 21% to $26 billion and EPS coming in at $5.01, which was much higher than the $4.44 that analysts expected. Alphabet had to pay out a massive $2.7 billion European Commission antitrust fine in the quarter, which investors certainly didn't like, but it didn't do much to take away from the company's share price gains this year.

Now what

Alphabet didn't provide guidance for the upcoming quarter, but investors should be optimistic about the company's future. Ruth Porat, Alphabet's CFO, said on the call:

Alphabet's ad sales continue to drive the company's revenue, but the company's other bets -- like cloud computing -- remain a bigger part of the business, and that should help investor sentiment to stay positive going forward.

10 stocks we like better than Alphabet (A shares)When investing geniuses David and Tom Gardner have a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, Motley Fool Stock Advisor, has tripled the market.*

David and Tom just revealed what they believe are the 10 best stocks for investors to buy right now... and Alphabet (A shares) wasn't one of them! That's right -- they think these 10 stocks are even better buys.

Click here to learn about these picks!

*Stock Advisor returns as of July 6, 2017

Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool's board of directors. Chris Neiger has no position in any stocks mentioned. The Motley Fool owns shares of and recommends Alphabet (A shares) and Alphabet (C shares). The Motley Fool has a disclosure policy.