Retirement tax questions

Thank you. How does one determine for NJ the taxable portion of a 401K that was contributed to over many years, then upon retirement converted to an IRA? A portion of the IRA was then converted to a Roth IRA.