Jenna Hunterson, played by Sara Bareilles, works as a waitress and is a master pie baker at Joe's Pie Diner located in the American South. For Jenna, the act of baking is more than just a job; it is a way to distract herself from the deep unhappiness she feels regarding her home life. She spends her days working alongside her boss, Cal, and her fellow waitresses, Becky and Dawn Pinkett.
The trajectory of Jenna's life shifts when she begins feeling unwell at the diner. After some encouragement from Becky and Dawn, Jenna takes a pregnancy test which reveals she is expecting. This news is devastating to her, as she realizes the pregnancy is the result of a drunken night with her abusive and controlling husband, Earl Hunterson. Earl is a man who seeks to diminish Jenna's spirit, often suggesting she should give up her passion for baking and even stealing the tips she earns during her shifts. In her moments of despair, Jenna remembers her late mother, Mother, who similarly found a sense of peace through baking while trapped in an unhappy marriage.
During a visit to her OB/GYN, Jenna finds herself surrounded by other pregnant women in a setting she finds taunting. It is here that she meets Dr. James "Jim" Pomatter, a physician who has recently relocated from Connecticut. Jenna is honest with him, explaining that while she does not wish to raise a child, she is also opposed to having an abortion. As a gesture, she leaves him with a Mermaid Marshmallow pie, which the doctor finds absolutely delicious.
Meanwhile, the elderly owner of the diner, Joe, learns of the pregnancy and suggests a way out for Jenna. He encourages her to enter a local pie-baking competition that offers a massive cash prize of $20,000. This amount would provide Jenna with the financial independence needed to finally leave Earl. While this plan forms, Dawn struggles with her own anxieties regarding romance, attempting to use an online dating platform while fearing every possible negative outcome.
A chance encounter at a bus stop brings Jenna and Dr. Pomatter together again. He praises her baking, suggesting that her skills could easily win contests and ribbons. However, things take a dark turn at home when Jenna discovers that Earl has been fired from his job. In a fit of rage that nearly turns physical, Jenna impulsively confesses her pregnancy. While Earl softens momentarily, he forces her to make a heartbreaking promise:
> "You will still be mine."
He demands that she never love the baby more than she loves him. Determined to secure a future for her child, Jenna tells Becky and Dawn about the contest. She begins a risky game of deception, giving Earl only half of her earnings and hiding the rest around the house to save for the competition entry.
As the story progresses, Dawn's romantic life improves when she begins seeing Ogie. Although Dawn initially believes their first date was a failure, Ogie is persistent and kind, helping her navigate her anxiety. The two discover a shared passion for American Revolution reenactments and eventually form a deep bond.
Simultaneously, the tension between Jenna and Dr. Pomatter reaches a breaking point. During an appointment where the doctor arrives two hours early just to see her, Jenna confronts him about his strange behavior, leading to an impulsive kiss. Despite the fact that both are married, they seek an escape from their frustrating realities and begin a secret sexual affair. This theme of clandestine passion extends to the diner, where Jenna discovers that the married Becky and Cal are also involved in a romantic entanglement. While Dawn and Ogie's relationship grows healthily, Jenna worries that her affair is a mistake, though Dr. Pomatter continues to reassure her. To cope with her emotions, Jenna begins writing letters to her unborn baby, affirming that the child matters to her.
Months pass, and the diner becomes the site of a celebration as Dawn and Ogie get married. Jenna contributes a tiered pie that looks like a wedding cake. During the reception, Jenna questions Cal about his happiness; he admits he is "happy enough." Joe also shares his sincere hopes for Jenna's future. However, the joy is short-lived. Upon returning home, Earl discovers the hidden money Jenna had been saving. Despite her pleas that the money was for the baby, Earl heartlessly steals everything and leaves. This loss leaves Jenna shattered, mourning the loss of control over her own destiny.
The climax arrives when Jenna goes into labor. At the hospital, she crosses paths with Joe, who is on his way to surgery. He hands her an envelope with strict instructions not to open it until she is discharged. The delivery room becomes crowded with a strange mix of people: Earl, Becky, Dawn, and even Dr. Pomatter's wife, who works at the hospital. After a grueling labor, Jenna gives birth to a daughter, whom she names Lulu.
When Earl tries to remind Jenna of her promise to love him more than the baby, Jenna finally finds her strength. She tells him she wants a divorce and warns him that she will seek a restraining order if he ever attempts to contact her or Lulu again. Later, Dr. Pomatter visits her in private and tries to kiss her, but Jenna refuses. She realizes she no longer wants to settle for being "happy enough" and ends the affair, though she gives him a moon pie as a thank-you for the positive influence he had on her life.
Finally, Jenna opens the envelope from Joe. Having known his time was limited, Joe left her the diner in his will, with one request: that she name a pie after him. Five years later, the establishment has been transformed into "Lulu's Pies." As the owner and head chef, Jenna is finally content, knowing that her life has truly turned around.