A Neptune-size planet appears to be masquerading as a comet, with a gargantuan stream of gas flowing behind it like a comet's tail.

The bizarre find is the first of its kind ever discovered by astronomers. The strange, cometlike planet, known as GJ 436b, is orbiting a red dwarf star and is about 22 times as massive as Earth. Astronomers detected the giant gas cloud around the planet using NASA's Hubble Space Telescope and Chandra X-ray Observatory.

"I was astonished by the mere size of the cloud of gas escaping from the planet," said study lead author David Ehrenreich, an astronomer at the observatory of the University of Geneva in Switzerland. [The Strangest Alien Planets]

This artist's impression shows exoplanet GJ 436b, which is surrounded by a massive gas cloud that streams behind the planet like a comet's tail for millions of miles. Mark Garlick / University of Warwick

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

GJ 436b, located about 33 light-years from Earth in the constellation Leo, is a kind of world known as a warm Neptune. Such planets, at about 10 to 20 times the mass of Earth, are about the mass of "cold Neptunes" such as Uranus — and, naturally, Neptune — but they are as close, or closer, to their stars than Mercury is to our sun. With an orbit of only about 3 million miles (4.8 million kilometers), "GJ 436b is 33 times closer to its star than Earth is to the sun, and 13 times closer than Mercury," Ehrenreich told Space.com.

The cloud of gas around GJ 436b, made up mostly of hydrogen, has a circular head that surrounds GJ 436b, and a tail trailing behind the planet. The diameter of the head is about 1.8 million miles (3 million km), or five times the width of the host star, which is about half that of the sun, Ehrenreich said. The length of the tail is uncertain, because the research team's observations do not cover it entirely, but their computer models suggest it could be about 9.3 million miles (15 million km) long.

Related: ESA Extends Rosetta Spacecraft's Comet Exploration Mission by 9 Months

Although prior research has predicted that other gas giants should be blowing off cometlike tails, based on how hot they must be due to their proximity to their stars, "GJ 436b is the first planet for which a cometlike tail is confidently detected," Ehrenreich said. (A previous study revealed indirect evidence of a rocky world that appears to be disintegrating around its host star, creating a cometlike tail of material behind the planet. That study used data from NASA's Kepler space telescope, which observed scattering of the light from the planet's host star.)

The scientists estimated that GJ 436b is currently blowing off up to 1,000 tons of gas per second. This means that GJ 436b is currently losing about 0.1 percent of its atmosphere every billion years, which is far too slow a rate to deplete its atmosphere in the lifetime of its parent red dwarf star. However, when the star was more active in its infancy, the researchers estimated that GJ 436b could have lost 10 percent or more of its atmosphere during its first billion years.

The scientists detailed their findings online Wednesday (June 24) in the journal Nature.

This is a condensed version of a report from Live Science. Read the full report. Follow us @Spacedotcom, Facebook and Google+. Original article on Space.com.

More from Space.com