Does a capital gains tax still apply if you sell your stock for no profit or loss. For example you invested 10 dollars in a stock that is worth 5 dollars; so you will have 2 shares. Then the stock rises to 10 dollars, so you sell 1 stock to cover your initial investment. Will the tax apply because the stock rose in value, or will it not apply because you sold for no profit?