
As TV love stories go, Jim and Pam’s relationship on The Office is among the all-time best. Their rollercoaster friends-to-lovers story spanned years; across seasons of the beloved workplace comedy. And it isn’t just a handful of episodes that tell that story. In fact, if you’re the kind of fan who keeps their Peacock subscription active to access The Office at all times like I do, you may want to try revisiting the series strictly through the lens of PB&J’s romance.
This might go without saying, but we'll say it anyway. This list of episodes includes major spoilers from The Office. This episode playlist -- which includes some of the best episodes of The Office -- is not meant for someone who's new to the series.
I've broken this list down by different stages of Jim and Pam's relationship, beginning with their friendship/flirtmance and moving all the way through the ups and downs of their relationship, which occasionally involved some of the other great characters in the cast of The Office.
Jim and Pam - Just Friends

These are the episodes that showcase Pam and Jim's friendship and budding romance before it was officially a romance.
Pilot (S1E1)
The first episode of the series doesn't hide the fact that there's a connection between salesman Jim Halpert (John Krasinski) and receptionist Pam Beesly (Jenna Fischer). Plus, it just makes sense to start at the start.
The Dundies (S2E1)
In “The Dundies,” Pam gets drunk at the Dundie Awards, gets banned from Chili's and somewhere in between, plants a firm kiss on Jim's lips. Their first kiss? If you want to count it as such, sure. Still, it's a significant (and hilarious) little moment, if only for being able to watch a flustered Jim quickly attempt to act casual afterward.
The Client (S2E7)
After a conference room table-reading of an early draft of Threat Level Midnight as part of the B-story of “The Client,” Jim and Pam have dinner on the office roof. Fireworks and dancing (kind of) ensue.
Christmas Party (S2E10)
In the “Christmas Party” episode, Pam gives up the opportunity to own a video iPod in exchange for the teapot Jim intended her to have for Secret Santa/Yankee Swap. While the iPod probably seemed like a better deal in the moment, the teapot's relevance stands the test of time in the series.
Booze Cruise (S2E11)
During a rare heart-to-heart between Jim and Michael in the “Booze Cruise” episode, Jim admits he used to have a thing for Pam. This is the episode where Jim dumps Katy, and Pam and Roy decide to finally set a date.
The Secret (S2E13)
Michael with a secret is like a ticking time bomb. In “The Secret,” Jim has to tell Pam about his crush on her… kind of.
Casino Night (S2E22)
“Casino Night” is a big one. With an opportunity to transfer to Stamford and Pam's wedding coming up, Jim has nothing to lose by telling Pam how he really feels. It's not only a great episode, but an epic moment in the saga that is Jim and Pam's relationship throughout the series.
Gay Witch Hunt (S3E1)
In “Gay Witch Hunt,” we get the aftermath of Jim's confession to Pam. And now he's in Stamford and she's un-engaged and not married.
Initiation (S3E5)
Honestly, the Jim/Pam moment in the “Initiation” episode is small, but significant nonetheless. It's just a phone conversation, but it's a reminder that there's unfinished business between them, and that they miss each other. There's undoubtedly distance between them at this point, but the chemistry is still there (even over the phone).
The Merger (S3E8)
Well, well, well, how the turntables… Once upon a time, it was Jim pining for Pam while she was in a relationship with someone else. In "The Merger," Pam finds herself on the other side of that when she learns that Jim is seeing someone (Karen).
The Convict (S3E9)
“The Convict” is great, if only for the awkwardness of Jim and Pam trying to find a new groove. When Andy asks for tips about how to get close to Pam, Jim pranks Andy (and really, Pam too) by giving him all the wrong advice.
Benihana Christmas (S3E10/11)
Fancy new Halpert is too grown-up for Dwight pranks. “Benihana Christmas” features another example of Jim and Pam fumbling in their attempts to recapture their previous friendship. Pam offers Jim a pre-made prank on Dwight, and he declines it… at first.
The Return (S3E14)
After Karen finds out that Jim once had a thing for Pam, he tries to do damage control in “The Return.” It's pretty much the beginning of the end of their relationship, though neither of them know it at the time.
Benjamin Franklin (S3E15)
Another awkward encounter ensues when Jim tries to tease Pam about the Benjamin Franklin impersonator who flirted with her. The “Benjamin Franklin” ep feels important to include, if only to reveal the uncomfortable tension between Jim and Pam at this point. The fact that they just can't joke about this kind of thing without it being strained and awkward is a major indication that there are still unresolved feelings.
Phyllis' Wedding (S3E16)
Jim and Karen seem to get back on track in “Phyllis’ Wedding,” and Pam decides to start over with Roy. Also, Brangelina is with Frangelina. Moving on...
Cocktails (S3E18)
Pam is not the same old Pammy she used to be, as we see in “Cocktails.” (And don't call her Pammy.) Pam tells Roy that Jim kissed her during Casino Night. He doesn't take it well.
The Negotiation (S3E19)
The tension between Jim and Pam is taken to the next awkward level in “The Negotiation” when Roy attempts to attack Jim at the office. There's just no pretending that everything is normal between them anymore.
Beach Games (S3E23)
Remember when Jim told Pam how he felt? Well, in “Beach Games,” it's Pam's turn. After months of awkwardness, Pam cuts through the tension with one great fireside speech about missing her friendship with Jim..
The Job (S3E24/25)
“The Job” is a make-or-break episode for Jim and Pam's relationship. Once again, Jim's looking at the possibility of leaving Scranton. The corporate job in New York would certainly be a step up for him, but there's a whole other future awaiting him back home.
Jim and Pam's dating years

Jim and Pam are finally together. These episodes break down the highs and lows of their relationship in its dating stage.
Fun Run (S4E1/2)
Not only does the “Fun Run” episode show us what Jim and Pam look like when they're finally, happily in a relationship, we also get a bit of the aftermath of Jim's breakup with Karen. It also includes a rare moment where the camera crew gets involved, in this case by showing Jim and Pam the footage of them secretly meeting up after work.
Dunder Mifflin Infinity (S4E3/4)
"Dunder Mifflin Infinity" is the one where everyone finds out.
Money (S4E7/8)
In “Money,” Jim and Pam take their first vacation together. Because what's more romantic than an escape to Schrute Farms?
Dinner Party (S4E13)
That one night when Michael and Jan exposed Jim and Pam to their complicated relationship (to put it mildly). Amidst that mess were some great moments between Jim and Pam in “Dinner Party,” like the time he tried to ditch her because his apartment was flooded or on fire or whatever lie they made up to try to leave. It's ok, Jim makes it up to Pam by stealing Hunter's CD.
Chair Model (S4E14)
Jim and Pam aren't the main focus of "Chair Model" at all, but they do share a couple of huge moments. This is the one where Jim warns Pam that he's planning on proposing to her. And later, he hilariously fakes her out by kneeling to tie his shoe.
Goodbye Toby (S4E18/19)
“Goodbye Toby” should've been the episode where Jim proposes to Pam, but alas, Andy stole that moment for Angela. Weirdly, it's kind of perfect in a ridiculous, totally-Office kind of way.
Jim and Pam: From The Engagement To The Wedding

We knew it was a matter of time before Jim and Pam were finally engaged and then married, but there were some unexpected twists along the way…
Weight Loss (S5E1/2)
Are we really going to have to wait for Pam to finish art school before they're engaged? As decided by Jim, no. The big proposal happens in the “Weight Loss” two-parter.
Crime Aid (S5E5)
"Crime Aid" features a small but significant moment for Jim and Pam. After a conversation with Roy, Jim almost drives to New York to check in on Pam. And then he doesn't. Because they're not that couple.
Employee Transfer (S5E6)
Pam teams up with Jim's brothers to try to prank Jim in “Employee Transfer,” when he comes to visit her in the city. It backfires hard, but we do get to see Pam and Jim together in a bit of the show that doesn't actually involve work.
Frame Toby (S5E9)
While Toby is at the center of this episode, Jim steals the show in “Frame Toby” when he reveals to Pam that he bought his parents' house for them. The sweetness of the moment mixed with the anxiety of waiting for Pam's reaction is a great bullet point in where they are in their relationship at this point.
Stress Relief (S5E14/15)
"Stress Relief" has Pam stressing over her parents' marital issues, which are seemingly made worse after Jim has a conversation with Pam's dad that leads him to leave Pam's mother. Just when it's looking like maybe Jim and Pam are in big trouble, we find out what Jim actually said.
Cafe Disco (S5E27)
While Michael is attempting to turn the old Michael Scott Paper Company office into a disco, Jim and Pam are planning to elope. They're so close to hitting the road in “Cafe Disco,” but a bit of dancing makes them realize what they'd be missing out on if they were to forgo an actual wedding.
Company Picnic (S5E28)
Jim and Pam's impending wedding seems like the next big thing to come for the couple, which is probably why we never saw the surprise pregnancy coming. That reveal happens at the end of “Company Picnic,” and it's probably one of the most quietly beautiful moments of their entire story.
Gossip (S6E1)
Of course Michael Scott would be the reason Jim and Pam have to reveal that they're expecting. Amidst a mess of mostly untrue rumors in “Gossip,” Jim and Pam volunteer the pregnancy news to cover up a true and potentially life-ruining rumor Michael started about Stanley.
Niagara (S6E4/5)
This is a big one. In fact, the two-parter "Niagara" is among the biggest episodes of the series. Jim, Pam and the Dunder Mifflin Scranton staff head off to Niagara Falls for the wedding.
Marriage, Kids and Difficulties…

Marriage is just the beginning for Jim and Pam. In this next block of episodes, we see Jim and Pam become parents, deal with family life and face some major challenges as Jim's career goals don't fall in line with Pam's vision for their family's future…
The Delivery (S6E17/18)
Another milestone episode for Jim and Pam, baby CeCe makes her grand arrival in “The Delivery Part 1.”
PDA (S7E16)
We're jumping forward quite a bit in the timeline here. Jim and Pam realize they've never been intimate at the office, get drunk and try to change that. It's not a major moment in their relationship, but “PDA” is sort of a marker for where they're at by this point in the series. They may be married, but they haven't lost that spark.
Pam's Replacement (S8E7)
In “Pam’s Replacement,” Pam's headed out on maternity leave for the birth of their second baby, and a temp, Cathy, arrives at the office to take her place. It's an intro to a character who proves to be a potential threat to the Halpert marriage.
Jury Duty (S8E13)
We get a glimpse into the chaos that is family life for the Halperts in “Jury Duty” after Jim lies about having jury duty so he can stay home and help Pam out.
After Hours (S8E16)
In the “After Hours” episode, while Jim is in Tallahassee, Cathy makes it pretty clear that she's trying to put the moves on him. He's not having it.
Roy's Wedding (S9E2)
It turns out, moving on from Pam worked out really well for Roy, as we see in “Roy’s Wedding.” While Pam processes just how much her old flame has changed since their relationship, Jim is sitting on a pretty major secret about his career.
Customer Loyalty (S9E12)
While Jim is in Philadelphia, Pam messes up the recording of CeCe's recital. He's so upset by this that Pam ends up not getting to tell him about the mural she's been selected to paint. “Customer Loyalty” is a heartbreaking episode, but a crucial one to show just how strained things are between Jim and Pam.
Stairmageddon (S9E19)
Jim and Pam face marriage counseling in “Stairmageddon.” Also, Pam is determined not to move to Philadelphia. Things are in a pretty bad place for these two at this point.
Paper Airplane (S9E20)
Just when it seems like things are really, REALLY bad between Jim and Pam, they hug in the parking lot during “Paper Airplane,” and we're given a clip from their wedding to remind us of the strength of their love and the vows they took.
Livin' the Dream (S921)
By “Livin’ The Dream,” Jim has given up his job at Athlead and moved back to Scranton to work on his marriage. He and Pam seem genuinely ok for the first time in a while.
Happily Ever After… (Jim And Pam's Relationship At The End Of The Office)

It's the epilogue to the Jim and Pam story.
Finale (S9E24/25)
In the final episode of the series, Jim and Pam seem like they're really in a good place. After the documentary aired, Dwight and Angela got their happily ever after, and things seem to be going well for everyone, we learn that Pam is secretly selling their house so that they can move to Austin and Jim can rejoin Athleap. This closes out the Scranton chapter of their lives and leaves their future open to our imaginations.