Tax on mineral rights sale

There can be a possible capital gains tax. Were the rights inherited? If so no tax.