Andromeda is about 2.5 million light years away, and is far from the nearest galaxy to our own.

 

Nearest Galaxies by Type
Title Galaxy Date Distance Notes
Nearest galaxy Milky Way always 0 This is the galaxy containing the Sun and its Solar System, and therefore Earth.
Nearest galaxy to our own Canis Major Dwarf 2003 0.025 Mly The absolute closest galaxy
Nearest dwarf galaxy Canis Major Dwarf 2003 0.025 Mly
Nearest major galaxy to our own Andromeda Galaxy always 2.54 Mly First identified as a separate galaxy in 1923
Nearest giant galaxy Centaurus A 12 Mly