The 40-Year-Old Virgin: screenplay analysis
When his coworkers discover he has never had sex, a gentle electronics-store clerk becomes their project, just as he meets a woman who likes him as he is.
Written by Steve Carell & Judd Apatow · Directed by Judd Apatow · 2005 · Romantic comedy
What the script is doing
Judd Apatow and Steve Carell take a premise that sounds like a one-joke sketch and treat it as character study. Andy Stitzer is not a punchline; he is a kind, orderly man who stopped trying after a few humiliations and built a safe life of action figures, video games and a bicycle commute. The comedy comes from everyone else's attempts to fix him, and the script quietly argues that most of their advice is worse than his instincts.
The structure runs two plots against each other. The coworkers' campaign, full of bad advice about bars, speed dating and waxing, is the farce. The romance with Trish, a grandmother who runs an eBay store, is the real story, and it moves at Andy's pace when she agrees to wait. Their twenty-date plan creates a countdown, and the climax arrives when his secret, not his virginity, threatens the relationship.
Structure
Setup
At a poker night Andy's coworkers David, Jay and Cal discover his secret and appoint themselves his coaches.
Campaign
A series of disastrous attempts follows: a drunk date, a chest waxing, a bookstore flirtation. Andy meets Trish and they agree to delay sex for twenty dates.
Crisis
Andy bonds with Trish's daughter Marla, but Trish discovers his collectibles and his secret. A fight sends Andy fleeing on his bike into a crash.
Resolution
Trish finds him, they reconcile and marry, and the film ends in a musical number.
Characters
- Andy Stitzer wants to avoid humiliation. He needs to let someone see him fully, and his change is honesty, not sex.
- Trish wants a partner who is steady after unreliable men. Andy's patience is what attracts her, which inverts the coworkers' advice.
- David, Jay and Cal each want to be experts on women and each is a mess, giving the script its comic chorus and a running commentary on male bluster.
Key scenes
The poker game
Andy's attempt to bluff about sex exposes him in a single conversation, launching the plot through dialogue that reveals by failing.
The chest waxing
a sustained set piece of escalating pain that makes the coaching plot physical.
The speed-dating montage
a sequence of brief encounters that compresses the coworkers' bad strategy into rapid comic beats.
The bike crash
Andy's flight from intimacy literalised as a collision, delivering the low point with physical comedy.
What writers can learn
- Treat a sketch-sized premise as a character study; the virginity matters less than why Andy stopped trying.
- Run the coaching farce and the real romance in parallel, so the bad advice measures the good relationship.
- Use a waiting deal like the twenty-date plan as a countdown that structures the second act.
- Make the climax about the hidden truth, not the stated goal; Trish's anger is about the secret, not the inexperience.
Read the screenplay
We haven't found a copy of the The 40-Year-Old Virgin screenplay published by its rights holder, so this page links to none. We don't host screenplays that are under copyright.
Questions
We haven't found an official copy online. Studios sometimes publish scripts during awards season, and published screenplay books are another legal route.
The 40-Year-Old Virgin (2005) was written by Steve Carell & Judd Apatow and directed by Judd Apatow.
Read the structure and key scenes with the film or the published script beside you, then try the lessons on your own pages. Our screenplay format guides cover the page itself.
Write your own screenplay, formatted as you type.
Start free. Credits never expire, and you pay only for what you generate













