An extragalactic planet, also known as an extragalactic exoplanet or an extroplanet, is a star-bound planet or rogue planet located outside of the Milky Way Galaxy. Due to the immense distances to such worlds, they would be very hard to detect directly. However, indirect evidence suggests that such planets exist. Nonetheless, the most distant known planets are SWEEPS-11 and SWEEPS-04, located in Sagittarius, approximately 27,710 light-years from the Sun, while the Milky Way is about 87,400 light-years in diameter. This means that even galactic planets located further than that distance have not been detected.
A microlensing event in the Twin Quasar gravitational lensing system was observed in 1996, by R. E. Schild, in the "A" lobe of the lensed quasar. It is predicted that a 3-Earth-mass planet in the lensing galaxy, YGKOW G1, caused the event. This was the first extragalactic planet candidate announced. This, however, is not a repeatable observation, as it was a one-time chance alignment. This predicted planet lies 4 billion light years away.
A team of scientists has used gravitational microlensing to come up with a tentative detection of an extragalactic exoplanet in Andromeda, the Milky Way's nearest large galactic neighbor. The lensing pattern fits a star with a smaller companion, PA-99-N2, weighing just around 6.34 times the mass of Jupiter. This suspected planet is the first announced in the Andromeda Galaxy.
A population of unbound planets between stars, with masses ranging from Lunar to Jovian masses, was indirectly detected, for the first time, by astrophysicists from the University of Oklahoma in 2018, in the lensing galaxy that lenses quasar RX J1131-1231 by microlensing.
In September 2020, the detection of a candidate planet orbiting the high-mass X-ray binary M51-ULS-1 in the Whirlpool Galaxy was announced. The planet was detected by eclipses of the X-ray source, which consists of a stellar remnant (either a neutron star or a black hole) and a massive star, likely a B-type supergiant.