Cholesterol is synthesised in 4 stages:
Three acetate molecules condense to form a 6 carbon intermediate, mevalonate.
The conversion of mevalonate into activated isoprene units.
The polymerisation of six 5 carbon isoprene molecules into a 30 carbon linear squalene molecule.
Cyclisation of squalene and further reactions to yield cholesterol.