If you bought 1mil share for .01 and sold enough to get your investment back you will be taxed as a gain because you made a gain. You sold 100k for a .10 and made your investment back, you made a gain on the 100k you sold ie you only paid 1K for those 100k shares and made 9K from selling them.