A dominant allele needs only one copy to produce a trait, whereas a recessive allele needs two of the same copies.