Ryan Gosling waking up alone on a spaceship with no memory and two dead crewmates sounds like the setup for a horror film. But Project Hail Mary, directed by Phil Lord and Christopher Miller and written by Drew Goddard, plays it as something stranger and warmer than that. Released in March 2026 and based on Andy Weir’s 2021 novel, it has since crossed $538 million at the box office, making it one of the biggest sci-fi hits in years. The film earns that number honestly. It is a survival story built around a scientist who does not want to be there, slowly piecing together both who he is and why the sun is dying.
What makes Project Hail Mary work, though, is not the science or the stakes—it is the friendship that forms at the midpoint, between Grace and a rock-pile alien named Rocky who turns out to be on the exact same impossible mission. Goddard previously adapted Weir’s The Martian, so he knows how to translate dense technical problem-solving into something a general audience can ride without feeling talked down to. Here, that skill gets applied to a story with a lot more emotional weight underneath it. The film earns that weight slowly, and by the time it arrives, it hits harder than any of the science does.
Waking Up With No Past
The story begins with a man named Ryland Grace (Ryan Gosling) who has just come out of a coma. With no memory of who he is, Grace panics when a robotic arm tries to haul him off to the medical bay, but when he makes it to the top of a ladder, he realizes he’s in outer space. Grace tries to remember who he is. The ship’s robotic system, which introduces itself as Mary, tells him his two crewmates are dead and that it would take eleven years to get back to Earth.
What makes this even more disorienting is that he keeps recognizing things on the ship he shouldn’t know, and without even thinking, he does the math on the return trip himself. Sure enough, Mary’s right. Even so, fragments of memory start coming back. He remembers being a teacher. One of his students had been curious about the Petrova line, an anomaly discovered two years earlier by a Russian scientist named Irina Petrova.
Grace had told the class it was just a cluster of reddish material stretching from the sun to Venus. Deep down, though, he knew that something called Astrophage was slowly feeding on the sun’s energy, dimming it a little more every day. He’d told himself NASA would pull together the best minds in the world and figure it out.
That assumption was tested when a NASA representative named Eva Stratt (Sandra Huller) showed up as the head of the Petrova task force. Stratt knew Grace had been pushed out of the scientific community over an arrogant paper arguing that water wasn’t necessary for life, which had left him stuck teaching middle school. She offered him a way back in. NASA had just received a sample from the Petrova line, and as a molecular biologist, Grace was exactly who they needed to study it.
Astrophage and the Dying Sun
He pressed on, and what he found immediately knocked his arrogant hypothesis sideways. The alien cells were made up mostly of hydrogen and oxygen, in other words, water. Grace theorized that the organisms lived by absorbing heat energy and moved by releasing it, which explained the infrared signature visible all along the line between Venus and the sun. They were commuting back and forth, feeding on solar energy to reproduce. But one question kept nagging at him, why Venus? After a lot of pushing, Grace finally convinced Stratt to let him go deeper into the research.
The alien organisms were named Astrophage. Dozens of scientists got involved, Grace included. Working with a security escort assigned by Stratt, he built a model of Venus’s atmosphere in the lab. But the moment he switched on a light source, all three of his Astrophage samples bolted. He had to black out the entire lab to keep them from escaping.
Standing there in the dark, Grace was stunned to count four Astrophage where there had only been three. That was how he figured out how they reproduce. The news traveled fast and Grace was rushed onto a military jet to meet with Stratt, who walked him into a room full of some of the most brilliant people on the planet. He was asked to explain Astrophage’s reproductive cycle.
As it turned out, NASA already knew how Astrophage reproduced, and already knew why Venus was the breeding ground, since it’s rich in carbon dioxide, which Astrophage needs to multiply. What impressed them was that Grace had figured all of this out with next to nothing. That was the moment Stratt officially brought him on board Project Hail Mary.
It was also around this time that the full scope of the problem came to light. Astrophage wasn’t just eating the sun—it was consuming light from every star in the universe, except one. Tau Ceti was somehow untouched, and nobody knew why. That was exactly why Project Hail Mary existed, and why they were breeding Astrophage: the organism was an insanely powerful energy source, and two million kilos of it could fuel an interstellar spacecraft to Tau Ceti. But Grace was deeply unsettled when he realized what this meant for whoever got sent. It was a one-way trip.
Back in the present, with what little memory he has, Grace starts to recognize the two bodies on board the Hail Mary. Commander Yao Li-Jie (Ken Leung), a Chinese pilot, and Olesya Ilyukhina (Milana Vayntrub), a Russian engineer. He pays his respects, still baffled as to why a scientist like himself would ever have agreed to go on a suicide mission. Then he gives them a burial, out in space.
First Contact With Rocky
Not long after, Mary announces the ship is approaching Tau Ceti’s orbit. Grace isn’t a pilot, but he does his best to take the controls. The Petrova line did reach Tau Ceti, which meant Astrophage had made it here too. But the planet’s light energy was completely untouched. Before Grace can even begin working out why, he’s startled to find another spacecraft sitting right next to his.
Grace completely freaks out and tries to pull away, but the alien ship keeps pace with him effortlessly. His panic only grows when Mary reports that the alien has launched something directly at the Hail Mary. Grace assumes it’s a bomb. When it doesn’t explode, his scientific curiosity overrides his fear and he suits up and goes out to retrieve it, nearly drifting off into space in the process. He manages to grab it, and can’t help doing a little victory dance when he gets back inside.
The object turns out to be just a container. At first he thinks the stuff inside is metalwork, thin rods, almost like sticks. But on closer inspection, he realizes it’s a map indicating the alien came from 40 Eridani. Grace figures this is an introduction, so he builds a similar model to show where he came from and sends it back. From that point on, the two keep exchanging messages, until one of them tells Grace that the alien is going to build a connecting tunnel between their ships.
Grace nerves himself up and crosses through. When he knocks on the alien spacecraft’s hull, he gets the shock of his life. The creature on the other side looks like a pile of rocks. And it has a sense of humor, showing him a little model of Grace doing his victory dance before nudging him to head back for a bit. When the tunnel reconnects, Grace is caught off guard because there’s now air pressure inside it. The alien had deliberately adjusted the atmosphere to be breathable for a human, signaling this with a twin-circle model to indicate O2. Grace reached up and took off his helmet.
Explore More:
Through the alien’s models, Grace understood that the Petrova line was what had brought both of them here. Once it clicked they were on the same mission, Grace built a translation device, documented everything for Earth, and named the alien’s metal material “xenonite.” Given what the creature looked like, he named the alien “Rocky.” Once they’d built up a vocabulary of thousands of words, they could finally hold a real conversation.
The more they talked, the closer they got. When Grace learned that Rocky was the sole survivor of a twenty-three-person crew from 40 Eridani, and that Rocky had no idea what had killed the others, he felt an immediate kinship. Two strangers, the last ones standing, on the same impossible mission. From that point on, they were partners.
Rocky Moves In, Mystery Solved
Grace ran Rocky’s translated speech through a voice synthesizer, then caught some sleep. While he slept, we’re taken back to a memory of Grace’s first meeting with the astronauts going on this suicide mission. At that meeting, Grace demonstrated just how staggering Astrophage’s energy output was: a single gram could power a device hot enough to melt a ton of steel.
When Grace woke up, Rocky had a surprise waiting. Unable to resist sneaking aboard, he’d built himself an Eridian-style spacesuit to explore Grace’s ship, and Grace was annoyed. He told Rocky that shared goals were all well and good, but they each needed to stay on their own ship. Rocky was not having it. Eventually, he just moved in and started planning his own bedroom.
It was around this time that they figured out what had killed Rocky’s crewmates: radiation. Rocky’s workspace had been right next to the Astrophage sample bay, and without either of them realizing it, the Astrophage had been shielding him the whole time. With that mystery solved, Grace and Rocky started planning their sample run, trying to figure out why Tau Ceti had resisted the Astrophage. They estimated they’d arrive in about eleven days.
While they waited out the eleven days, Grace showed Rocky what Earth looked like in a simulation room. Grace found out Rocky had a partner, and Rocky proudly shared their name. Then Tau Ceti came into view. Grace suited up for a spacewalk while Rocky improvised as mission control. Together they flew into the Petrova line to collect a sample, and up close it was unmistakable, millions of Astrophage packed together, forming that red streak through space. As the first beings ever this close to Tau Ceti’s planet, they figured they’d earned naming rights. They’d been watching Rocky Balboa earlier, so they agreed to call the planet Adrian, after Rocky’s wife in the film.
The Sample Run That Nearly Killed Them
After running tests on the Astrophage sample they had collected from the Petrova line, Rocky made a discovery. Adrian had its own native life form that was eating any Astrophage that landed on the planet. Before Astrophage could feed on the planet’s light, something on Adrian was already feeding on the Astrophage. To find out what that something was, they needed a sample from Adrian itself. Since the ship wasn’t built to enter Adrian’s atmosphere, Grace and Rocky planned to get within five kilometers and collect samples by dangling a chain down like a fishing line, and Rocky built the chain himself.
Rocky also insisted on being the one to document the sample run for Earth scientists, which was when he let slip that he assumed Grace had been talking to Earth in real time all along. That assumption cracked things open. Grace had only been recording video logs, with everything bundled into a probe capsule to send home once the mission was done. The ship didn’t have enough fuel to return to Earth, so Grace was going to live out whatever time remained until the food or fuel ran out.
Rocky refused to accept that. Even without being able to read Rocky’s face, Grace could hear the genuine grief. After learning the truth, Rocky made a stunning offer. He would split his two million kilos of Astrophage fuel in half and give Grace enough to get home, even though it would mean arriving back at his own planet six years late. Grace had started to make peace with his fate only after remembering how he’d ended up here. Three days before launch, while briefing Eva Stratt, an explosion killed the mission’s third astronaut along with all the backup candidates. That left only Yáo as pilot and Olesya as engineer, willing volunteers, but without a scientist.
There was no time to find and train a replacement, and every set of eyes landed on Grace. He’d been refusing from the start, he didn’t have the nerve to throw his life away, and he said so plainly, so Stratt simply decided for him. She had her security team grab Grace, knock him out, and lay him down inside the Hail Mary. When Grace woke up, his crewmates were already dead.
Now came the moment of truth. Rocky cast out the chain, with a collection pouch at the end designed to scoop up cells from Adrian. Grace headed to the underbelly to manually operate the winch. Standing out there, he could see the hull getting dangerously hot from Adrian’s atmosphere and gravity. He got the pouch, but something went seriously wrong and nearly killed him. Things got worse when he almost dropped it on the way back in. Rocky told him not to do anything stupid. Grace jumped for it anyway, caught it, and they burned out of Adrian’s orbit as fast as they could. That’s when they found several fuel tank compartments had sprung leaks.
Grace started jettisoning them one by one, but the hull breach threw off the ship’s gravity stabilization. The forces knocked Grace unconscious, his face pinned against the wall. That was when Rocky climbed out of his protective shell, jettisoned the remaining leaking tanks, got the gravity back online, and carried Grace to the medical bay—even knowing his body couldn’t handle the ship’s atmosphere without his shell.
When Grace came to, Rocky was back inside his shell but in rough shape, barely moving, like he’d gone dormant. Not knowing if Rocky was dead or alive, Grace let him be. In the meantime, he got to work studying the Adrian sample, which contained a microbe that preyed on Astrophage. This was it, the key to stopping Astrophage from eating the sun and dragging Earth toward extinction.
Grace named the microbe Taumoeba. His plan was to breed it in massive quantities and seed it into the sun. There was one problem, though. Taumoeba couldn’t survive contact with nitrogen. And that’s where Rocky turned out to be the answer, because xenonite from 40 Eridani could protect Taumoeba from nitrogen exposure.
Grace Turns the Ship Around
Grace talked to himself for who knows how long. Eventually he fell asleep, and it was only then that Rocky stirred, having spent all that time in hibernation to heal. Once Rocky was back on his feet, they walked through everything they’d figured out together. With the universe officially saved, it was time to celebrate and say goodbye. Before parting, Grace took one last look around Rocky’s ship. Then, with a heavy heart, he walked back aboard the Hail Mary. Rocky told him he was the bravest human he had ever encountered. Of course, Grace was also the only human Rocky had ever encountered — but still.
With the Astrophage Rocky had given him, Grace’s return trip to Earth would take only four years. But partway home, Mary flagged a contamination alert. The Taumoeba inside his xenonite containers had been evolving fast enough to punch through the xenonite itself. He caught it in time and patched the breach, but that left him with a terrifying realization. Rocky’s entire ship was made of xenonite. It was only a matter of time before the Taumoeba chewed through it, devoured Rocky’s fuel, and left him stranded.
Without hesitating, Grace packed all his research into a probe capsule with instructions for saving Earth and live Taumoeba samples, and launched it toward home. Then he turned his ship around. Going back to save Rocky mattered more than getting back himself. Fifty-six days later, Grace reached Rocky’s ship, where Rocky had already taken serious radiation damage from the Taumoeba breach.
Grace repaid the debt and got his research back to Eva, who mobilized every scientist she had. They bred Taumoeba on a massive scale, seeded it into the sun, and the sun came clean of Astrophage. Some time later, Grace gets a visitor at his home. It turns out he’s been living on 40 Eridani, having chosen to stay and teach there. Rocky comes by to say that Eridian scientists have found a way to get Grace back to Earth in much less time. Grace says he’d rather stick around a little longer, more time with Rocky. Their friendship, still burning like Venus, and the film ends.