If the gain is considered capital gain, then it is taxable as such by the states.
Only interest on U.S. obligations is exempt from state taxation.