Skip to content
What's After the Movie?
Plot summary

40 Days and 40 Nights (2002) Plot Summary & Timeline

40 Days and 40 Nights (2002) movie poster

40 Days and 40 Nights is a 2002 drama and comedy film directed by Michael Lehmann, running 1 hour 36 minutes. This page retells the whole story in 566 words (about 2 minutes to read) and covers 15 key events in order, 2 characters, where and when it is set and 3 themes. Looking for the cast, ratings and where to stream it? See the movie page for 40 Days and 40 Nights.

to read the plot summary
2 min
key events in the timeline
15
characters profiled
2
themes explained
3
Loading streaming availability…
40 Days and 40 Nights (2002) movie poster
Released
Runtime
1h 36m
Director
Michael Lehmann
Genres
Drama, Comedy, Romance
Original language
English
No spoilers

What Is 40 Days and 40 Nights About?

The premise of 40 Days and 40 Nights in 317 words, with nothing given away. The full story follows below.

In the bustling tech‑savvy world of early‑2000s San Francisco, Matt Sullivan finds himself at a crossroads. A young professional working for a dot‑com startup, he is haunted by the lingering echo of a failed romance that has left his confidence shaken and his sex life stalled. Determined to regain control, he makes a bold, self‑imposed vow to abstain from any intimacy—​including the most private of habits—for the entire forty‑day season of Lent. The promise feels like a personal boot‑camp, a way to prove he can master his own impulses before he can master love again.

Living with his easy‑going roommate Ryan and confiding in his brother John, an earnest seminary student, Matt’s resolve quickly becomes the talk of the office. His colleagues, ever ready to turn a personal challenge into a communal sport, set up a light‑hearted wager that turns his private experiment into a playful, if slightly intrusive, spectacle. The office hums with teasing banter, and the city itself seems to pulse with the same mixture of ambition and vulnerability that defines the era’s startup culture. Amid this backdrop, a chance encounter at a laundromat introduces Erica, a charismatic woman who works as a “cyber nanny,” filtering online content for others. Their chemistry is immediate, sparking a connection that threatens to test the limits of Matt’s vow without fully exposing the stakes.

The film balances a breezy, romantic comedy tone with moments of earnest self‑examination. The dialogue crackles with witty observations about modern dating, commitment, and the absurdity of turning personal discipline into a betting pool. As Matt navigates his feelings for Erica, the lingering presence of his former girlfriend Nicole looms like a shadow over his progress. The story invites viewers into a world where professional ambition, personal insecurities, and the quest for genuine connection collide, leaving the audience curious whether a thirty‑plus‑day promise can truly reshape a heart that’s been battered by love’s missteps.

Full plot

What Happens in 40 Days and 40 Nights?

The complete story of 40 Days and 40 Nights, from the first scene to the last, in 566 words (about 2 minutes). Spoilers throughout. Names in the text link to 2 cast member pages.

Spoilers ahead

Matt Sullivan, played by Josh Hartnett, resides in San Francisco with his roommate Ryan. He works at a dot-com company but finds himself tormented by obsessive thoughts of his ex-girlfriend, Nicole, portrayed by Vinessa Shaw. This fixation leads to sexual dysfunction that he confides to his brother John, a Catholic priest-in-training played by Adam Trese. After a comically disastrous attempt to fake an orgasm with a date named Susie, it’s revealed that Nicole is now engaged after meeting someone in France. In a bid to regain control over his life, Matt decides to abstain from all sexual activity—including masturbation—for the 40 days of Lent.

On the very first day of this self-imposed celibacy, he clears his apartment of anything that could remind him of Nicole. While at a laundromat, he meets a stranger named Erica, played by Shannyn Sossamon. Though Matt struggles to engage in conversation, an unexpected connection begins to form between them. However, unbeknownst to Matt, his friends and coworkers start an office pool, betting on how long he can resist temptation, a competition that catches on quickly, even spreading online. Fast forward to day 11, and Matt remains steadfast in his commitment, leaving both his brother John and Ryan amazed.

As time progresses, it becomes apparent that this betting pool garners more attention, particularly from women attempting to incite Matt’s sexual urges. One bold participant, Candy, even photocopies her backside to lure him. In his interactions with Erica, it is revealed that she works as a “cyber nanny,” filtering out internet pornography, and their chemistry becomes undeniable. They embark on a date on the city bus, but Matt awkwardly avoids any physical connection, leading Ryan and the others to speculate on whether Matt genuinely likes her.

Their relationship takes a hit when both discover the existence of the betting pool, leaving Erica understandably upset, believing Matt and his friends had reduced their budding romance to a mere wager. As the days add up, Matt’s boss surprisingly joins him in his celibate phase. Even as Matt’s feelings for Erica deepen, he struggles with the emotional toll of his vow, especially when he unexpectedly encounters his former flame, Nicole, who stirs old feelings and complicates matters further.

On day 26, Erica challenges Matt to prove his commitment to her by completing his vow, while Matt finds himself fending off increasingly bold enticements from his colleagues. The pressure mounts as the pool amount swells to $18,000. Faced with temptation, Matt almost succumbs but escapes a compromising situation, only to reunite with Erica for a connection that doesn’t lead to sex. The tension peaks when Nicole returns with her own intentions to rekindle something with Matt, only for him to deny her, which only intensifies her desire.

As Matt nears the end of his 40 days, he grapples with uncontrollable thoughts, and an unexpected encounter with John highlights the absurdity of the situation they both find themselves in. After a chaotic culmination with Nicole, who confronts him on the final day of his vow, Matt is left in turmoil. However, determined to win back Erica, he confronts her and finally expresses their feelings with a passionate kiss. They share a night of intimacy that solidifies their relationship, breaking free from the constraints that once held him prisoner. Meanwhile, Ryan and the gang, ever the gamblers, wait in anticipation and excitement, placing new wagers on Matt’s newfound freedom.

Timeline

40 Days and 40 Nights Timeline: Every Key Event in Order

15 key events in the order they happen, from “Introduction of Matt Sullivan” to “Final Confrontation with Erica”. 5 events name a place, across 5 locations.

  1. 1

    Introduction of Matt Sullivan

    Matt Sullivan, portrayed by Josh Hartnett, lives in San Francisco with his roommate Ryan. He is an employee at a dot-com company but is haunted by thoughts of his ex-girlfriend, Nicole, which disrupts his life.

    Where:San Francisco

  2. 2

    Obsessive Thoughts and Sexual Dysfunction

    Struggling with obsessive thoughts related to Nicole, Matt experiences sexual dysfunction. He confides his challenges to his brother John, a Catholic priest-in-training, revealing the depths of his emotional turmoil.

  3. 3

    Failed Attempt at Dating

    In an effort to move on, Matt goes on a date with Susie, but his attempt at intimacy goes comically wrong when he tries to fake an orgasm. This incident highlights his inability to connect with others while fixated on Nicole.

  4. 4

    Nicole's Engagement

    Matt learns that Nicole is engaged to someone she met in France, which intensifies his emotional struggle. This revelation prompts him to take drastic measures to regain control over his life.

  5. 5

    Deciding to Abstain

    Determined to break free from his obsession, Matt makes a commitment to abstain from all sexual activity for the entire 40 days of Lent. This decision marks the beginning of a challenging personal journey.

    When:Lent

  6. 6

    Clearing Out Reminders

    On the first day of Lent, Matt removes all reminders of Nicole from his apartment. This act of purification symbolizes his desire to move forward and focus on his vow of celibacy.

    When:Day 1 Where:Matt's apartment

  7. 7

    Meeting Erica

    At a laundromat, Matt encounters Erica, played by Shannyn Sossamon. Despite his struggles to initiate conversation, they feel an unexpected connection, complicating Matt's vow of abstinence.

    Where:Laundromat

  8. 8

    The Office Pool Begins

    Unbeknownst to Matt, his friends and coworkers start an office pool, betting on how long he can withstand his vow. This competition garners widespread attention and adds to the pressure on Matt.

    Where:Office

  9. 9

    Day 11: Strength in Commitment

    By the 11th day of his abstinence, Matt remains committed to his vow, impressing both his brother John and Ryan. Their support highlights the contrast between Matt's internal struggles and external perceptions.

    When:Day 11

  10. 10

    Women's Interest in the Bet

    As the pool gains momentum, more women show interest in Matt's commitment, attempting to test his resolve. One bold participant, Candy, even photocopies her backside in a bid to tempt him.

Show the other 5 events of 40 Days and 40 Nights
  1. 11

    Date on the City Bus

    Matt and Erica decide to go on a date, riding the city bus together. However, despite their chemistry, Matt awkwardly avoids any physical connection, leaving their relationship in uncertainty.

    Where:City bus

  2. 12

    Revelation of the Betting Pool

    The relationship takes a turn when Erica discovers the betting pool, feeling betrayed and objectified. This clash reveals the tension between their genuine feelings and the external pressures surrounding them.

  3. 13

    Pressure Builds from Co-workers

    With the money in the betting pool swelling to $18,000, the pressure on Matt intensifies. He grapples with temptation as various enticements arise, which test his commitment to his vow.

    When:Day 26

  4. 14

    Encounter with Nicole

    Towards the end of his vow, Matt unexpectedly confronts Nicole, stirring up old emotions and complicating his feelings for Erica further. This meeting becomes a catalyst for Matt's indecision.

  5. 15

    Final Confrontation with Erica

    On the last day of his commitment, Matt decides to confront Erica. He finally admits his feelings for her, culminating in a passionate kiss that signifies a new beginning for their relationship.

    When:Final Day

Characters

Who Are the Main Characters in 40 Days and 40 Nights?

2 characters, among them Matt Sullivan (played by Josh Hartnett) and Erica (played by Shannyn Sossamon): who each one is and the part they play in the story. Every profile links to the actor’s page.

  • Josh Hartnett as Matt Sullivan (played by Josh Hartnett) in 40 Days and 40 Nights

    Matt Sullivan (played by Josh Hartnett)

    Played by Josh Hartnett

    Matt is a young man grappling with his obsessive thoughts about his ex-girlfriend, which leads him to a self-imposed 40-day vow of celibacy. His character evolves throughout the movie as he learns to confront his feelings and resist temptation, making a sincere effort to connect with Erica amidst the chaos. Despite his humorous misadventures, Matt's journey is ultimately one of personal growth and learning to value meaningful relationships.

    • 👨‍💻 Techie
    • 💔 Heartbroken
    • 💪 Determined
  • Shannyn Sossamon as Erica (played by Shannyn Sossamon) in 40 Days and 40 Nights

    Erica (played by Shannyn Sossamon)

    Played by Shannyn Sossamon

    Erica is a captivating stranger Matt meets during his celibacy journey, working as a 'cyber nanny.' She is confident, understanding, and forms a genuine connection with Matt, challenging him to embrace both his commitment to celibacy and his feelings for her. As their relationship develops, she embodies the emotional stakes of Matt's challenge, ultimately pushing him to confront his desires and emotions.

    • 🌐 Cyber Nanny
    • ❤️ Supportive
    • 🤔 Challenging
Setting

Where and When Is 40 Days and 40 Nights Set?

40 Days and 40 Nights is set in San Francisco (Modern Day). Here is why the time and place matter to the story.

When

Modern Day

The story unfolds in contemporary times, highlighting the quirks and complexities of modern relationships in the age of technology and social media. The 40-day duration of Lent serves as a unique lens through which to explore themes of commitment, temptation, and personal growth against a fast-paced backdrop.

Where

San Francisco

San Francisco is a vibrant and culturally rich city on the West Coast, known for its iconic Golden Gate Bridge and diverse neighborhoods. The city offers an eclectic mix of history, technology, and stunning scenery, making it a popular destination for locals and tourists alike. It serves as the backdrop for Matt's journey of self-discovery and restraint.

  • 🏙️ City
  • 🌉 Iconic
Themes

What Are the Themes of 40 Days and 40 Nights?

3 ideas the story keeps returning to, among them Love & Commitment, Temptation and Comedy.

  1. 01

    Love & Commitment

    The movie centers around Matt's struggle with love and commitment, particularly as he navigates the complexities of a budding relationship with Erica while trying to maintain his vow of celibacy. His journey underscores the idea that true intimacy requires not just physical connection but deeper emotional bonds. The theme of commitment is further complicated by the return of his ex, Nicole, stirring old feelings and challenging his resolve.

  2. 02

    Temptation

    Temptation plays a crucial role in Matt's journey, as he faces various challenges that test his self-imposed abstinence. The betting pool created by his friends adds an element of competition that amplifies the stakes and draws attention from various women, each trying to incite his desires. This theme highlights the struggle between desire and restraint, leading to both humorous and poignant moments.

  3. 03

    Comedy

    The film employs comedy to explore serious themes of love and restraint, providing a humorous take on the awkward situations that arise during Matt's 40-day challenge. Through funny encounters, misunderstandings, and the absurdity of his friends' bets, the narrative balances light-hearted moments with deeper reflections on relationships, making the journey both entertaining and relatable.

Tone & mood

What Kind of Film Is 40 Days and 40 Nights?

Light in tone, with steady pacing and a straightforward story, going by the plot summary.

Tone
Light
Pacing
Steady
Story
Straightforward
Intensity
Medium
Ending
Happy

A comedic and lighthearted romantic romp that follows a man's awkward yet hopeful journey of self-imposed celibacy, filled with social pressures and romantic missteps but ultimately ending in connection.

  • frustrated
  • comical
  • obsessive
  • hopeful
  • awkward
  • romantic
  • sexual abstinence
  • romantic struggle
  • self-improvement
  • betting

Content notes: sexual themes, non-consensual advance.

Quiz

How well do you remember 40 Days and 40 Nights? Test yourself on the story.

Take the quiz
Loading streaming availability…
Read next

Movies Like 40 Days and 40 Nights With a Plot Summary

4 films close to 40 Days and 40 Nights in story and themes that have a full plot summary here: 14 Days to Life (1997) and Unlovable (2018) lead.

All plot summaries

Missing a Movie Plot Summary?

Tell us which film you want explained next: the full story, the timeline, the characters and the ending.

Request a summary
FAQ

40 Days and 40 Nights Plot Questions

5 quick answers about 40 Days and 40 Nights, taken from the plot summary, character guide and setting on this page and the film’s credits.

What is 40 Days and 40 Nights about?

In the bustling tech‑savvy world of early‑2000s San Francisco, Matt Sullivan finds himself at a crossroads. A young professional working for a dot‑com startup, he is haunted by the lingering echo of a failed romance that has left his confidence shaken and his sex life stalled.

Read the full plot summary

When and where does 40 Days and 40 Nights take place?

40 Days and 40 Nights is set in San Francisco (Modern Day). The story unfolds in contemporary times, highlighting the quirks and complexities of modern relationships in the age of technology and social media.

The setting explained

Who are the main characters in 40 Days and 40 Nights?

The story follows Matt Sullivan (played by Josh Hartnett) (played by Josh Hartnett) and Erica (played by Shannyn Sossamon) (played by Shannyn Sossamon).

All the characters

What are the main themes of 40 Days and 40 Nights?

The summary picks out 3 themes: Love & Commitment, Temptation and Comedy.

The themes explained

Who directed 40 Days and 40 Nights?

40 Days and 40 Nights (2002) was directed by Michael Lehmann and runs 1 hour 36 minutes.

Michael Lehmann’s films

Coming soon to your phone

The Plot Explained Movie Summary App

From blockbusters to hidden gems: plot summaries, endings explained and timelines on your phone. Save your favorites and never miss a twist again.

Be the first to know when it launches. Your email stays private, always. Learn more about the app