Retirement tax questions

For RMD from inherited IRA (from grandparent) - Is there a basis for this? I’m looking more for NJ purposes, I’m assuming the contributions were deducted for federal purposes, but is there a ratio of distribution to gain in the account? Or is the whole RMD that is fully taxable??