In tryptophan, nitrogen atom present in cyclic structure cannot donate pair of electrons as it is stabilized by resonance. The other amino group and carboxylic group present in the side chain neutralize each other. Tryptophan has equal number of amino and carboxylic groups. Hence, tryptophan is a neutral amino acid.
In histidine, amino groups are more in number than carboxyl groups therefore histidine ¡s basic in nature.