<prompt> Human: Asking for a friend...If you transfer funds from a non-retirement portfolio into a retirement account, do you need to pay capital gains taxes on the gains of the amount transferred?  <response>: You cannot transfer securities from non-retirement into a retirement plan. Only cash can go in as contribution. 