The determination of the amount of trans fatty acids, a kind of unsaturated fatty acids, present in a sample. The trait is Experimental Factor Ontology identifier EFO_0006821 (trans fatty acid measurement).