New Jersey taxation of IRA RMD's

I understand that since IRA contributions are not deductible in NJ they also are not taxed when taking RMD's from the IRA.  Only the interest and gains are taxable.  How do I find out the total of my IRA contributions (over almost 50 years) so TurboTax can calculate the taxable and non taxable amounts?