You are right in saying that you can only roll over a loss. Though, if you have made 20K in the shares and no other income in the year you are not going to pay tax anyway, cause you need to make $20,543 before you pay tax.