The 40-Year-Old Virgin is a 2005 American romantic comedy film written, produced and directed by Judd Apatow, about a middle-aged man’s journey to finally have sex. It was co-written by its star, Steve Carell, though it features a great deal of improvised dialogue.

Andy Stitzer (Steve Carell) is the eponymous 40-year-old virgin who is involuntarily celibate. He lives alone, and is somewhat childlike and collects action figures, plays video games, and his social life seems to consist of watching Survivor with his elderly neighbors. He works in the stockroom at an electronics store called SmartTech. When a friend drops out of a poker game, Andy’s co-workers David (Paul Rudd), Cal (Seth Rogen), and Jay (Romany Malco) reluctantly invite Andy to join them. At the game (which he wins, due to playing online poker constantly), when conversation turns to past sexual exploits, Andy desperately makes up a story, but when he compares the feel of a woman’s breast to a “bag of sand”, he is forced to admit his virginity.
Feeling sorry for him (but also generally mocking him), the group resolves to help Andy lose his virginity. Throughout the next several days, the gang’s efforts prove to be unsuccessful, partly because all three men give Andy different and sometimes contradictory advice. They take him to have his chest waxed. Cal advises Andy to simply ask questions when talking to women, which makes Andy seem mysterious. His advice proves to be the most helpful, when Beth (Elizabeth Banks), a bookstore clerk, takes a liking to Andy. Andy starts to open up, and begins to form true friendships with his co-workers. David continues to obsess over his ex-girlfriend, Amy (Mindy Kaling).