NGC 7331 (also known as Caldwell 30) is an unbarred spiral galaxy about 40 million light-years (12 Mpc) away in the constellation Pegasus. It was discovered by William Herschel in 1784. NGC 7331 is the brightest member of the NGC 7331 Group of galaxies. The other members of the group are the lenticular or unbarred spirals NGC 7335 and 7336, the barred spiral galaxy NGC 7337 and the elliptical galaxy NGC 7340. These galaxies lie at distances of approximately 332, 365, 348 and 294 million light years, respectively. In both visible light and infrared photos of the NGC 7331, the core of the galaxy appears to be slightly off-center, with one side of the disk appearing to extend further away from the core than the opposite side.
The galaxy is similar in size and structure to the Milky Way, and is often referred to as "the Milky Way's twin". However, discoveries in the 2000s regarding the structure of the Milky Way may call this similarity into doubt, particularly because the latter is now believed to be a barred spiral, compared to the unbarred status of NGC 7331.