Molecules that have the same molecular formula but different structural arrangements. Isomers can be classified as structural isomers, which have different connectivity of atoms, or stereoisomers, which have the same connectivity but differ in spatial arrangement.