If a stock doesn't pay dividends, then why is the stock worth anything?
You are missing the fact that the company can buy back its own shares. For simplicity, imagine the case that you own ALL of the shares of XYZ corporation.  XYZ is very profitable, and it makes $1M per year.  There are two ways to return $1M to you, the shareholder: 1)  The company could buy back some fraction of your shares for $1M, or  2)  The company could pay you a $1M dividend. After (1) you'd own ALL of the shares and have $1M. After (2) you'd own ALL of the shares and have $1M. After (1) the total number of shares would be fewer, but saying you owned less of XYZ would be like complaining that you are shorter when your height is measured in inches than in centimeters. So indeed, a buyback is an alternative to a dividend. Furthermore, buybacks have a number of tax advantages over dividends to taxable shareholders (see my answer in Can I get a dividend "free lunch" by buying a stock just before the ex-dividend date and selling it immediately after?).  That said, it is important to recognize the shareholders who are less savvy about knowing when to accept the buyback (by correctly valuing the company) can get burned at the profit of the savvy shareholders.  A strategy to avoid being burned if you aren't price savvy is simply to sell a fraction in order to get your pro rata share of the buyback, in many respects simulating a dividend but still reaping some (but not all) of the tax advantages of a buyback.