What happened?

Shares of Advance Auto Parts (AAP -0.67%), a leading automotive aftermarket parts provider for professional installers and do-it-yourself consumers, are up 8% as of 3:25 p.m. EDT Tuesday after a strong second-quarter result. In fact, the company's strong earnings result even boosted the share price of its competitors: AutoZone, Inc. (AZO 0.57%) popped more than 5% during early afternoon trading, and O'Reilly Automotive (ORLY 0.43%) also logged a smaller 3% gain.

So what

Advance reported a 2.8% sales increase to $2.33 billion, which topped analysts' estimates looking for $2.27 billion. The top-line result was driven by a 2.8% increase in same-store sales, which topped estimates for only 0.1% growth. Adjusted earnings per share checked in at $1.97, well ahead of analysts' estimates calling for $1.86 per share.

Mechanic changing filter of a car

Image source: Getty Images.

President and Chief Executive Officer Tom Greco said the following in a press release:

Our relentless focus on strengthening our Customer Value Proposition while embracing an owner's mindset on cost and cash resulted in improved sales and profit performance in the second quarter. I am encouraged by the progress our team made during the first half of 2018 and confident in our ability to drive growth throughout the balance of 2018.

Now what

Management also raised its full-year revenue guidance to a range of $9.3 billion to $9.5 billion thanks to the strong start to 2018 and noted that industry demand continues to improve. Advance also announced a new share repurchase program authorized for $600 million, with plans to return $100 million to $200 million to shareholders through buybacks during the second half of 2018. You could argue that share buybacks aren't the best use of capital -- Advance isn't cheap, trading at a price-to-earnings ratio near 23 times -- but between rising same-store sales, profits that topped estimates, and increased full-year guidance, there was plenty for investors to like about Advance's second quarter.