Inherited or gifted shares are not taxed immediately, but tax applies when they are sold. If the person does not know the acquisition details, there is a threshold date to determine the gains.