M40 is unique in the Messier Catalogue as a simple optical double star (though it falls within a field of galaxies, and was perhaps catalogued incorrectly in place of one of these). The two stars of M40, HD 238107 and HD 238108, are in fact unrelated, and lie more than 200 light years from one another.