In Mumbai and Goa, Kaira (Alia Bhatt) is a promising cinematographer who wishes to direct her own films. Blunt and cynical, she is most comfortable when with her three best friends, Fatima (Ira Dubey), Jackie (Yashaswini Dayama) and Ganju (Gautmik). Kaira's life takes a downturn when Raghuvendra (Kunal Kapoor), a film producer for whom she breaks up with her childhood sweetheart, gets engaged to someone else. Her landlord turns her out of her apartment because the building association wants to rent apartments only to married couples. All this plus dissatisfaction with her prospects at work serves as a catalyst for her shift to Goa, where she now has to grudgingly live with her parents (Aban Deohans and Atul Kale) with whom she has some issues. She ends up spending many sleepless nights in unhappiness and uncertainty.
While in Goa, she seeks out Dr Jehangir "Jug" Khan (Shah Rukh Khan), a psychologist, for her insomnia, after inadvertently having heard him talk at a Mental Health Awareness Conference. She warms to Jug's unconventional methods, trying to use them to understand herself. Meanwhile, she meets a musician, Rumi (Ali Zafar), and she falls in love with him, but they break up before anything serious can happen when she realizes they may not be the right fit for each other. She also reunites with her younger brother, Kiddo (Rohit Saraf), who is the only other person besides her best friends that she is closest to. Matters with her family come to a head when Kaira has an outburst at a family get-together where she confronts her parents about them abandoning her for years at her grandparents' (Martha Xavier Fernandes and Madhav Vaze) house.
She finally narrates the story of her abandonment to Jug, who tells her that she fears abandonment so much that she does not allow herself to commit in relationships, leaving before they can leave her. He convinces her that she does not need to forgive her parents for abandoning her, but she can, as an adult, see them as two regular people who made a mistake. After this, Kaira makes an effort to reconcile with her parents and also works to finish her short film.
At their last session, Kaira admits to Jug that she has grown to like him. Jug responds that it is normal for a patient to feel this way about his/her therapist and while he likes her too, she is still his patient and he is her psychologist, and a relationship would not be possible. The two share a hug before Kaira leaves.
Kaira finally completes her short film, which she had been working on it for years. At the premiere, she meets a furniture dealer (Aditya Roy Kapur).