Semen analysis is a pain free procedure that measures the amount and quality of a man's ejaculate. In order to do the analysis, you'll need to provide a sample of your semen. This can be done by collecting a semen sample into a sterile container during masturbation, or by using a special condom that collects the sample during intercourse. Once you deliver the sample to your health care provider they will run the analysis in a laboratory.