The Amityville Horror (1979) has Jodie, a pig-like creature that's the imaginary friend of the little girl member of the Lutz family; at one point in the film the girl's mother Kathy hears her talking to Jodie in her room, goes inside and is told Jodie left through the window. Looking outside, the mother sees a demonic face with red eyes staring back at her. In the 2005 remake, Jodie is reimagined as the spirit of one of the murdered members of the Defeo family, instead of a (presumably) demonic entity.
In A Boy Called Po, Po retreats into the world of his imagination, where he is friends with Jack, who looks suspiciously like the janitor at his school. Jack takes the form of a pirate, a cowboy, a knight, and an astronaut, and is usually asking Po for help with something.
Chocolat: Due to her mother's being on the run, the narrator has one constant friend, Pontouf, who is a kangaroo. It isn't until the end of the movie, after her mother decides to settle in the town, that we see Pontouf from the child's point of view, hopping away to have his own adventures. "I didn't miss him."
Cloak & Dagger (1984): Jack Flack was the father figure to the kid whose Disappeared Dad was one of those "present but not here" types. Interestingly, it was implied that a version of him had been the father's imaginary friend as well; also, when the kid rejects Jack Flack out of horror for the real violence to which he's just been exposed, Flack starts to die, and says "I hate this part ... leaving when they stop believing." All this suggests that "Flack" does have some sort of independent existence. It's also interesting that Jack Flack is played by the same actor as the dad, suggesting the hero that his son had always believed him to be, despite everything. The final line just tops it off: "I don't need him, anymore. Dad. I've got you."
In Daniel Isn't Real, young Luke locks his imaginary friend "Daniel" away inside his mind after Daniel prompts him to poison his mother, almost killing her. Years later, Luke lets Daniel loose, with catastrophic consequences. The film implies that Daniel is real and not a figment of Luke's imagination. Luke calls Daniel a "parasite" and Daniel tells Luke that he's been around for centuries, jumping from one host to another.
Donnie Darko's "friend" Frank is considered imaginary by his doctor, even though Donnie's convinced that he's real.
In Don't Look Under the Bed, imaginary friends become boogeymen if the child stops believing in them too soon.
Drop Dead Fred is about a girl who had her imaginary friend locked in a jack-in-the-box by her mother, and lets him back out by accident after she grows up. Apparently he still exists because Elizabeth still needs him. How Imaginary or Not-So-Imaginary he really is is pretty open to debate. The film tries to have it both ways. In one scene Elizabeth is taken to a therapist by her mother, and while she's in the waiting room Fred plays with several of his own friends, who are the imaginary friends of the other children in the room. We see the scene from the perspectives of Elizabeth and the other children, and each child can only see their own friend, apparently playing with nobody.
Everything You Want: Abby, the protagonist, creates an imaginary friend named Sy as a way to cope with the emotional abandon by her perpetually traveling parents and her incapability to relate with other human beings derived from the above. Sy grows with her until adulthood and becomes her model and her perfect boyfriend. Abby is content with the situation, until she mets a classmate and begins to fall in love with a real person for the very first time...
In Fight Club, Tyler Durden turns out to be an imaginary friend.
In the 1961 British film Hand In Hand, Rachel has always had a "pretend sister" and asks her opinion about everyday things.
Haunter: Lisa's little brother Robbie is often playing with his imaginary friend Edgar, who eventually appears before Lisa. It's later revealed to be the killer himself appearing as he did when he was a child, as he originally grew up in the house.
IF (2024) follows a young girl who can see the imaginary friends of children who outgrew them.
Imaginary follows a family tormented by a malevolent imaginary friend seeking revenge on the mother for abandoning him.
In Jack Frost (1998), the snowman everyone thinks the boy is fixated on is inhabited by the ghost of his father.
Jojo from Jojo Rabbit has one of these in Adolf Hitler. He increasingly grows disillusioned with him over the course of the movie, mostly because he befriends a Jewish girl named Elsa, but also because the tide of the war starts turning towards the allies and because the Nazis kill his mother, who was hiding in their attic. Once his town gets liberated and "Hitler" starts taunting him about going outside with Elsa, he kicks him out of a window and says "Fuck off, Hitler!"
Jungle: At the greatest depth of his Sanity Slippage, Yossi believes that he is being accompanied by a native woman he finds abandoned in the jungle. Believing that he is caring for someone else is enough to keep him pushing forward.
The Ladykillers (2004): Mrs. Munson invites the Sheriff in to introduce him to her tenant Prof. Dorr. Since the Professor is trying to keep his criminal scheme under wraps from the authorities he hides from the Sheriff under the bed, which Mrs. Munson finds very amusing. This all conspires to make it seems like the old lady has lost it and is talking to imaginary people from the Sheriff's vantage point.
The giggly, bald Cajun guy in The Machinist turns out to be a figment of the protagonist's guilty conscience, while the airport waitress/single mother the protagonist chats with turns out to be a manifestation of the mother whose son he recklessly killed with his car and fled the scene. The son of the "waitress" is a manifestation of the boy the protagonist killed.
In Mr. Brooks, the eponymous character is urged to commit his killings by "Marshall", who acts as his id, as well as an extremely close companion who both friendlily taunts him and comforts him in times of despair. Interestingly, many of Brooks' secret talents and mental skills, such as his Living Lie Detector ability and cunning attention to detail, seem to manifest especially through Marshall.
The Brazilian movie A Mulher Invísivel features an imaginary lover, the "invisible woman" of the title.
In Paper Man, the titular superhero is the imaginary friend of the main character, a middle-aged failed writer.
Paranormal Activity 3 shows that the demon terrorizing Katie and Kristi initially introduced itself to Kristi as an entity named "Toby", who the rest of the family assumed to be just an imaginary friend.
In the film Parental Guidance, one of the issues Artie and Diane Decker (played by Billy Crystal and Bette Midler) face when babysitting their grandkids is that of their youngest grandson Barker and his imaginary friend Carl the invisible kangaroo, whom Barker claims tells him to do dangerous things. Later on, Barker is taught to stand up to Carl, who Barker then claims is now upset by this and is supposedly "killed" after getting hit by a car while running away.
Play It Again, Sam: Allan Felix is just divorced and not adjusting well to being single, so in order to cope with his insecurity around women, he creates an alter ego based on Humphrey Bogart.
In Poltergeist (1982), the family briefly mistakes the poltergeists for Carol-Anne's imaginary friends.
Reyeb for Malik in A Prophet. Remarkably friendly (if mysterious), considering that Malik murdered him.
In Rites of Passage, Delgado hallucinates that his dead daughter's stuffed monkey named Pancho clings to his shotgun talks and makes futile attempts to reason with his apparently absent sense of morality.
The Spirit of the Beehive: After watching Frankenstein (1931) and inspired by a ghost story of her sister, six-year-old Ana becomes obsessed with the idea of befriending an imaginary monster.
Stir of Echoes: The family briefly mistakes the ghost for the child's imaginary friend.
In the movie Sunday at Tiffany's (based on a book by James Patterson), Jane's imaginary friend Michael left her life on her 10th birthday. Twenty years later, on the eve of her birthday and her wedding, he shows up again — this time as a corporeal adult. Neither of them have any idea why he suddenly showed up out of nowhere or what his mission is. Michael falls in love with Jane, who is initially very resistant to his naive, innocent view of her and the world. Eventually, she realizes she isn't satisfied with how her life has gone since Michael left, and that she loves him... just as he has to leave again. Or does he?
Troll 2 features the (long-dead) Grandpa Seth being mistaken for an imaginary friend of the child.
Tully: Marlo, a worn-out mother of three including a newborn baby, hires the titular night nanny to help take care of the kids and even bonds with Tully. It's implied that Tully was just a figment of a sleep-deprived Marlo's imagination to help her cope with her post-partum depression.
In A Whisper In The Dark (a.k.a. Un Sussurro Nel Buio), the boy's imaginary friend is the ghost of his brother who died as an infant before he was born.