What Is a Stock Buyback?

A stock buyback is one way for a public company to return capital to shareholders. What is a stock buyback, and what is its impact on a company?