The film starts with shots of several items floating in the middle of the ocean. They have little messages written on them by someone stating that they are hungry, bored, and they don't want to die alone.On a deserted island, Hank Thompson (Paul Dano) is getting ready to hang himself. He then sees the body of a young man (Daniel Radcliffe) wash up on the shore. Hank attempts to walk over, but he forgets he's got a noose around his neck and he is almost hung until the rope snaps. He runs to the young man and checks for a pulse, but he's dead. Hank hears a rumbling sound from inside the man's body, and the corpse farts. Hank takes the belt off the man's pants and uses it to try and hang himself again. However, the corpse continues to fart so much that it moves a little. Hank runs back to the corpse and uses his farts to ride away from the island like a jet ski. Hank loses his balance and falls into the water.Hank wakes up in a different location near the woods. He thinks the corpse has saved him. Hank brings the corpse into a cave as it rains that night. The corpse appears to be collecting water in his mouth while sticking his tongue out.In the morning, Hank gets thirsty. The corpse starts spewing water from his mouth. Hank drinks it in a cup he found. He thanks the corpse and starts talking to him. The corpse replies with a groggy, "Okay, buddy", leading Hank to scream and punch him in the face. The corpse starts mumbling, making it sound like he is saying "Manny", so Hank starts calling him that. He thinks he may just be hallucinating from starvation, but he starts trying to get Manny to remember anything he can about life.Hank carries Manny on his back as they walk through the woods. He reminds Manny of various aspects about life, like pooping and sex. Manny sees a picture of a sports magazine with a beautiful woman in the pages. He gets an erection that Hank uses as a compass to guide him away.On their walk, Hank steps in a pile of poo, and he then hears what sounds like a bear growling. In a panicked fit, Hank and Manny tumble down a hill. After the fall, Manny sees Hank's phone in a plastic bag, which Manny thinks belonged to him. The wallpaper shows a woman named Sarah (Mary Elizabeth Winstead), whom Hank would always see on the bus sitting by herself. He took the picture of her secretly. Manny falls in love with Sarah, now finding motivation to get home.Hank begins to remind Manny what it feels like to love. Hank dresses up to look like Sarah so Manny can talk to "her". Manny is awkward and doesn't know how to talk to women. The two also discuss topics like masturbation and family members, including how Hank's mom died and he doesn't have the best relationship with his dad. It gets unpleasant when Manny makes a connection between masturbating and Hank's mom, causing Hank to yell at him. He apologizes for that, though.In the woods, Hank starts to build several structures, like a bus, a theater, and a cafe. On the bus, Hank plays out with Manny what it's like to see Sarah getting on the bus and trying to find the courage to talk to her.Hank starts to use Manny like a multi-purpose tool, like hunting for food by shooting things out of Manny's mouth, chopping wood with his arms, and lighting farts with fire. Hank puts on a shadow puppet theater performance of movies like "Jurassic Park" and "E.T." for Manny.The two start to cross a pipe above a river. The pipe breaks, and the two fall into the river. Hank tries to get air from Manny before they are shot to the surface by Manny's farts. Hank then sticks something into Manny's mouth and shoots it out to use as a grappling hook to climb up a hill.Hank finally gets a signal on his phone. He has gotten a birthday message from his dad. He goes on Instagram and looks at Sarah's profile. She has a husband and a daughter. When Manny learns about this, he feels upset for Hank making him think that he was going to get a chance to be with Sarah. The two go up a tree when a bear shows up and claws Manny's leg. Up the tree, Manny starts crying after feeling deceived. He says he wishes he were dead again. Hank spots a town not far from where they are, and he tries to get the attention of passing cars. The branch then breaks and Hank twists his leg. The bear starts to carry him away until Manny drops from the tree and starts moving on his own. He lights one of his farts on fire and scares the bear away. Hank passes out.Hank wakes up to find Manny carrying him away from the woods and close to a house. The house is Sarah's. The two tumble down the hill in the backyard. They are met by Sarah's daughter Chrissy (Antonia Ribero). She can apparently communicate with Manny as well. Manny creeps her out with his water-puking and spontaneous boners, causing Chrissy to cry. Sarah comes out and sees Hank and Manny. Manny is no longer responsive. Sarah gets help to come.Paramedics, cops, and a news crew show up at Sarah's house. Hank's dad arrives and sees the body bag with Manny in it, thinking Hank is in there. He goes to his car and cries. The reporter starts to interview Hank over his experience. The cops then look at Hank's phone and see pictures of Sarah, which freaks her out. Hank ignores everyone and runs to Manny's body, taking it back into the woods. Everyone follows them and walks past all the things that Hank built. They make it back to the shore where Hank and Manny first washed up on. Hank doesn't want anyone to take Manny away. An officer cuffs Hank and takes him away. Some farting is heard, and everyone sees Manny moving as he farts violently. His farts then send him away across the ocean. Everyone looks confused and disturbed, except for Hank's dad, Chrissy, and Hank, who all react with a smile.