When shares are transferred from one spouse to another, the recipient spouse inherits the original cost basis of the shares. Therefore, the transferor spouse does not pay Capital Gains Tax at the time of transfer. Tax is only payable by the recipient spouse when they eventually sell the shares, based on the difference between the sale price and the original cost basis.
I have doubt that Person A has transfer shares to his wife account. example A bought Rs. 2 lac shares and he has transfered this shares to her wife account. when he transfered at that time shares value was Rs. 3 lac. Her wife has still not sold this shares. Does Mr. A has to pay tax on ( STCG/LTCG ) 3 lac - 2 lac = 1 lac ?