Capital gains depend upon the holders of demat account.
The transfer of shares from one demat to another doesnt carry tax provided it is a gift / under the same trading account. In that case, ensure to accompany it with a gift deed.
Transfer Expenses depend upon broker.
Thanks