Molecular self-assembly of amyloid-beta peptides to form fibrillar aggregates is a known cause of Alzheimer's disease. Although homogeneous nucleation of amyloid-beta is unfavorable, heterogeneous nucleation of amyloid-beta in cell membranes plays a key role in fibril formation. We observed these opposite roles in the effects of cholesterol and lanosterol, the precursor of cholesterol in the brain, on nucleation. As previously reported, cholesterol accelerated nucleation, whereas lanosterol decelerated it when mixed with dioleoyl-phosphatidylcholine at 20%. The observed opposite effects of cholesterol and lanosterol on nucleation do not correlate with the differences in the mechanical and thermodynamic nature of mixed membranes. However, the affinity of amyloid-beta to the inner membrane seems to be related to the opposite effects on nucleation kinetics. Cholesterol reduced the insertion of amyloid-beta into the lipid membrane, whereas lanosterol promoted the insertion of amyloid-beta into the membrane, which would make amyloid-beta more tightly bound by lipid molecules and reduce its diffusivity in the membrane and consequently inhibit nucleation. Our study provides insights into the effects of sterol compounds other than the well-investigated cholesterol on the self-assembly of amyloidbeta to clarify the molecular basis underlying Alzheimer's disease pathology and to develop targeted therapeutic strategies.