A sperm donor will usually be required to enter into a contract with a sperm bank to supply their semen, typically for a period of six to twenty-four months depending on the number of pregnancies which the sperm bank intends to produce from the donor. If a sperm bank has access to world markets e.g. by direct sales, or sales to clinics outside their own jurisdiction, a man may donate for a longer period than two years, as the risk of consanguinity is reduced (although local laws vary widely). Some sperm banks with access to world markets impose their own rules on the number of pregnancies which can be achieved in a given regional area or a state or country, and these sperm banks may permit donors to donate for four or five years, or even longer.
The contract may also specify the place and hours for donation, a requirement to notify the sperm bank in the case of acquiring a sexual infection, and the requirement not to have intercourse or to masturbate for a period of usually 2–3 days before making a donation.
The contract may also describe the types of treatment for which the donated sperm may be used, such as artificial insemination and IVF, and whether the donors sperm may be used in surrogacy arrangements. It may also stipulate whether the sperm may be used for research or training purposes. In certain cases, a sperm donor may specify the maximum number of offspring or families which may be produced from the donors sperm. Family may be defined as a couple who may each bear children from the same donor. The contract may also require consent if the donor's samples are to be exported. In the United Kingdom, for example, the maximum number of families for which a donor is permitted to bear children is ten, but a sperm bank or fertility center in the UK may export sperm to other fertility centers so that this may be used to produce more pregnancies abroad. Where this happens, consent must be provided by the donor. Faced with a growing demand for donor sperm, sperm banks may try to maximize the use of a donor whilst still reducing the risk of consanguinity. In legislations with a national register of sperm donors or a national regulatory body, a sperm donor may be required to fill in a separate form of consent which will be registered with the regulatory authority. In the United Kingdom this body is the HFEA.
A sperm donor generally produces and collects sperm at a sperm bank or clinic by masturbation in a private room or cabin, known as a mens production room (UK), donor cabin' (DK) or a masturbatorium (US). Many of these facilities contain pornography such as videos/DVD, magazines, and/or photographs which may assist the donor in becoming aroused in order to facilitate production of the ejaculate, also known as the "semen sample" but the increasing usage of porn in the U.S. has dulled many men to its effects. Often, using any type of personal lubricant, saliva, oil or anything else to lubricate and stimulate the genitals is prohibited as it can contaminate the semen sample and have negative impacts on the quality and health of sperm.  In some circumstances, it may also be possible for semen from donors to be collected during sexual intercourse with the use of a collection condom which results in higher sperm counts.