Retirement tax questions

Thanks @dmertz .  Would I have to pay federal tax on the amount of capital gain from the time it was in traditional account to before moving to roth?.  In my example total contributed was $12k.  when converted to roth, it was $12,579. So I need to pay tax on $579?