The determination of the amount of a sex hormone present in a sample. The trait is sex hormone measurement (EFO_0011008).