I mine btc using gomining. The rewards sent from gomining to my personal wallet, are them rewards taxed? Or only is it when i sell said rewards?

Also, when i do sell and theres no avarage cost price, how does one know how much they made?