We purchased a mutual fund in 2001 and reinvested earnings in the fund. A few years ago we took dividends directly. If we sell it now, how are capital gains taxed?

We clearly have more shares and the basis changes based on the reinvestment.