You claim the entire amount from the 1099-R that you receive. After entering it i the Federal, make sure you go through all the follow up questions, especially the one asking about the source of the pension. The program will then determine what, if any,needs to be claimed on your state return.