The Mathematics of Love cover

The Mathematics of Love

by Hannah Fry

In The Mathematics of Love, Hannah Fry explores the fascinating intersection of romance and mathematics. Discover how patterns, algorithms, and mathematical theories can illuminate the mysteries of love, from finding a partner to planning a wedding and predicting relationship success. This insightful book offers a unique perspective on how numbers can guide our personal lives.

The Mathematics of Love: A Rational Roadmap Through Romance

Why does falling in love often feel unpredictable, yet strangely patterned? In The Mathematics of Love, Dr. Hannah Fry argues that love, far from being purely emotional chaos, follows identifiable patterns that mathematics can illuminate. Fry contends that by applying principles from probability, game theory, and optimization, we can better understand—and even improve—our chances at finding, keeping, and enjoying love. Through humor, research, and relatable examples, she invites readers to see romance as a series of solvable puzzles rather than inscrutable mysteries.

Across nine lively chapters, Fry explores everything from why your odds of finding a partner aren’t as terrible as you think to how algorithms might help (or hinder) your quest for connection. She walks you through mathematical models that describe attraction, dating dynamics, marriage stability, and even sexual networks, demonstrating that numbers can reveal hidden truths about human relationships. Throughout, her tone remains conversational and practically oriented—she doesn’t promise perfect predictions but offers mathematical tools for making more informed, confident decisions about love.

Understanding Love as a Pattern

Fry opens by aligning maths with romance through one audacious claim: both are about patterns. Just as scientists use equations to predict weather or map galaxies, you can use estimation methods to gauge romantic probability. She begins with Peter Backus’s humorous self-study, where he borrowed the Drake Equation—originally designed to estimate alien civilizations—to calculate how many women he might date. His conclusion: fewer potential girlfriends than extraterrestrial species in the galaxy. Although tongue-in-cheek, the method revealed how filtering preferences too narrowly can dramatically reduce your odds of success. Fry suggests loosening rigid criteria to expand one’s dating pool—a mathematical form of emotional openness.

Beauty, Choice, and Probability

From there, she examines how beauty affects attraction, debunking myths like the “golden ratio.” While symmetry and average features matter, Fry reveals that our perceptions are averages of what we deem healthy and genetically sound. She uses examples such as Angelina Jolie’s facial proportions and evolutionary cues like plump lips and strong jaws to explain why humans intuitively prize signs of fertility and health. Yet she notes that preference diversity—those quirks that draw us to asymmetrical smiles or distinctive personalities—is equally mathematical: it emerges from distribution variation. You might love someone because their traits fall slightly outside the average curve, making them statistically singular.

From Party Games to Stable Marriages

In her exploration of courtship, Fry turns dating dramas into equations. She revisits John Nash’s reasoning from A Beautiful Mind to discuss game theory’s role in romantic strategy. Through the “stable marriage problem”—illustrated with humorous characters like Ross, Rachel, Monica, and Joey—she demonstrates that those who do the asking (rather than waiting) mathematically fare better. Whether in love or job placement, initiative statistically yields superior outcomes. Her conclusion is delightfully empowering: taking the risk of rejection produces the best results.

Algorithmic Attraction and Online Matching

When Fry turns to online dating, she dissects platforms like OkCupid that quantify compatibility. Using a playful “Harry and Hermione” example, she teaches geometric mean as a smarter way to calculate match percentages—balancing mutual interest. However, she emphasizes that data fails to predict chemistry; questionnaires can’t capture body language, eye dilation, or emotional synchrony. Future technologies might integrate these subtle cues, but for now, meaningful connection remains beyond mathematical certainty. Her insight: algorithms can’t measure “clicks,” but they reveal the fascinating predictability of human perception.

The Logic of Sex and Settling Down

From physical encounters to lifelong commitments, Fry dives deeper. She describes how sexual networks follow “scale-free” structures, like social media graphs, with hubs (highly connected individuals) that accelerate disease transmission. Mathematically identifying hubs, she explains, helps epidemiologists target treatment efficiently. Later, she discusses the “secretary problem” and optimal stopping theory—the logic behind when to quit searching and commit. Reject the first 37% of your options, then choose the next best one, she suggests, humorously connecting rational optimization to romantic timing.

Mathematics of Marriage and Happiness

Finally, Fry takes us into long-term love with Gottman and Murray’s mathematical marriage model, showing how emotional exchanges can be charted like equations predicting nuclear peace or war. Successful relationships, she explains, correlate with low “negativity thresholds”—couples who address small issues early avoid explosive fights later. This insight translates into an elegant formula for compassion: communicate complaints, repair rapidly, and respect individuality. The message resonates far beyond equations: understanding the math behind emotions teaches empathy through structure.

Together, these chapters form not a cold calculation of romance but an invitation: to see love as a beautifully complex system that mathematics can illuminate but never replace. Fry’s engaging narrative—part science, part storytelling—suggests that pattern recognition isn’t the opposite of passion. It’s how passion persists. Love, she concludes, can be measured not by formulas alone but by the intelligent curiosity that mathematics inspires.


Counting Love: The Odds of Finding Your Person

Dr. Hannah Fry opens her journey with an amusing example: Peter Backus, a lonely economist who once calculated his chances of finding love using the Drake Equation. Originally designed to estimate the number of alien civilizations in the galaxy, the equation becomes a cheeky metaphor for romance—showing how selective criteria can shrink your possibilities to near zero. Backus concluded there were more intelligent extraterrestrial species than compatible women for him in London. Fry takes this as both a warning and encouragement: you have much better odds than you think if you broaden your filters.

Breaking the Problem into Parts

Fry teaches the art of estimation, called “Fermi reasoning”—breaking massive uncertainties into smaller, manageable guesses. Backus’s whimsical criteria included age, education, attractiveness, and mutual compatibility. When Fry adjusts those numbers with more generous assumptions—say, 20% attractive rather than 5%—his dating pool expands from 26 potential partners to over 800. The underlying lesson is mathematical optimism: small shifts in assumptions create exponential increases in opportunity.

The Danger of Over-Specifying Love

To prove her point, Fry cites a man on OkCupid whose list of romantic deal-breakers included absurd extremes: “No tattoos you can’t see without a mirror,” “Don’t message me if you’re happy,” or “You think world peace is a goal.” Each preference further reduced his odds until virtually no one qualified. Fry uses this example to highlight a human fallacy—we confuse personal boundaries with probabilities. Math tells us that overly restrictive filters reduce possibility density. Life tells us the same through experience.

Why Flexibility Wins

When single, you might add mental checklists that seem logical but sabotage exploration. Fry argues that by loosening one or two strict parameters—such as education level or city location—you statistically multiply your dating pool. In Backus’s case, removing his geographic limit would quadruple his odds of finding a partner. The takeaway: mathematical flexibility parallels emotional openness. The more you allow for variance, the more likely you’ll intersect with meaningful possibilities.

Love as a Numbers Game

Numbers don’t replace attraction or chemistry; they reveal tendencies. By quantifying uncertainty, you regain agency. Fry encourages you to reframe despair into data-driven curiosity: treat dating as a probabilistic experiment where every encounter increases exposure to opportunity. By playing the numbers smartly—not rigidly—you improve your chances of connection. Her playful conclusion reminds readers that love may not obey exact formulas, but it still rewards good estimation.

(In contrast, sociologist Barry Schwartz’s The Paradox of Choice warns that overly expanded options can cause paralysis. Fry’s balance—between selectivity and flexibility—bridges this. You must be open enough to experiment, but focused enough to recognize the right equation when it appears.)


The Geometry of Attraction

Why do certain faces mesmerize across cultures? Fry investigates mathematical beauty, debunking myths like the “golden ratio” while explaining why symmetry and numerical averages matter. Her argument blends evolutionary psychology with geometry: humans seek facial configurations that signal health, fertility, and normal genetic development. Yet, she insists, beauty is only part pattern, part perception, and always partly personal.

From the Golden Ratio to Face Mapping

The golden ratio (1.618...) has long been touted as the mathematical secret of beauty—used by researchers like Dr. Stephen Marquardt to create surgical masks overlaying faces of Angelina Jolie or Elizabeth Taylor. Fry exposes this as elegant pseudoscience. She explains that while geometry produces satisfying proportions, real beauty defies five-decimal precision because human faces are irregular, dynamic, and expressive. True attraction comes from perceivable averages within variation, not rigid constants.

Evolution’s Hidden Calculations

Fry outlines the evolutionary roots: symmetrical faces reflect robust immune systems; average features minimize mutation risks. Research by David Perrett supports that we unconsciously prefer health cues over aesthetic novelty. High estrogen correlates with fuller lips and large eyes, testosterone with jawlines and brows—biological hints of fertility. Lipstick and grooming, Fry jokes, are our evolutionary calculus for signaling reproductive fitness.

Breaking the Rules: Personal Preference

Yet not everyone fits the formula. Fry explores how asymmetry in real-life expression can be seen as sincere, even charming. She shows data proving people rate asymmetrical smiles and naturally uneven gestures as more authentic. This translates into preference diversity—some desire assertiveness (linked to testosterone), others gentleness (linked to low androgen). Personality projection syncs with facial recognition: extroverts attract extroverted-looking faces. In short, beauty statistically predicts nothing universal, only intrigue within distributions.

Mathematics and the Mirror

Rather than obsessing over ratios, Fry suggests focusing on optimizing perception through context—the “decoy effect.” By standing near someone slightly less attractive but similar, you appear statistically more appealing. The reasoning? Comparison shifts visual baselines. Mathematics proves that attractiveness is profoundly relative; change one variable (your setting or company), and perceptions transform. Beauty, she concludes, is less about measurement than about clever framing.


Playing the Numbers: Game Theory and Dating

Love is strategic, says Fry—you’re constantly making choices in competition with others. Using game theory, she translates dating decisions into logical interactions. You might think attraction is instinctual, but every romantic pursuit subtly resembles a mathematical game between players optimizing payoffs. Fry uses films, sitcom setups, and real research to prove it.

Nash’s Blonde Problem

In A Beautiful Mind, John Nash advises men to ignore the blonde to avoid mutual interference. Fry revisits this fictitious example to explain strategic equilibrium. If all men chase one desirable person, everyone loses; coordination yields better outcomes. Her analysis clarifies what Nash equilibrium means: optimal strategy where no one benefits from unilateral change. In dating, this reveals subtle social cooperation—sometimes the best move is restraint.

The Stable Marriage Problem

Fry’s own version of the stable marriage problem introduces friends modeled after familiar sitcom personalities—Ross, Rachel, Monica, Joey. Through the Gale-Shapley algorithm, she shows how structured proposals resolve conflicting preferences. Whoever does the proposing ends up with the statistically best partner; those waiting receive the least optimal offers. When the genders switch, outcomes reverse. Translating this beyond fiction, she connects it to real U.S. medical residency matching systems and sorority selections. Initiative, not waiting, wins.

Mathematical Morals of Courtship

In Fry’s humor, dating becomes less about luck and more about iterative logic. She urges you to handle rejection mathematically—one data point closer to an optimal match. Like Nash’s abstract players, real daters navigate utility curves shaped by desire and availability. Her final recommendation: “Aim high and aim frequently—the maths says so.” Emotionally, that means courage is calculable. By transforming anxiety into probability, you reclaim power through rational optimism.


Algorithms and Chemistry: The Digital Dating Equation

Fry brings the abstract math of romance into modern reality: online dating. Platforms like OkCupid, she explains, are data-laden laboratories where millions unwittingly participate in behavioral experiments. She translates their algorithms into clear mathematical logic—yet shows how even perfect computation falters against human chemistry.

How Match Scores Are Made

Using “Harry and Hermione” as comic examples, Fry builds the OkCupid matching formula step by step. Each user answers questions, assigns importance levels, and defines preferred responses. Compatibility is then computed via geometric mean, not simple averages—ensuring fairness between uneven preferences. The result: an elegantly symmetric algorithm that ranks matches numerically. Yet Fry’s humor shines when Harry loves Quidditch while Hermione doesn’t—their calculated match becomes only 30.1%, proving that balance matters more than shared fandoms.

Where the Math Breaks Down

Despite the neatness of computation, Fry underscores its limits: questionnaires don’t reveal chemistry. OkCupid itself proves this by lying to users—telling mismatched pairs they’re 90% compatible. Amazingly, those fake high matches talk more often and just as long as true matches. The experiment showed that perceived compatibility—not genuine alignment—drives behavior. Belief, not data, can override math.

Toward the Future of Dating Technology

Fry speculates about upcoming advancements integrating “non-conscious synchrony”—tracking micro-expressions, pupil dilation, and linguistic mimicry during speed dates via AI. These measurable signals could revolutionize matchmaking. But she warns that even perfect algorithms can’t replace emotional choice. Human spontaneity keeps romance unpredictable—and beautiful.

Popularity, Beauty, and Being Distinct

Fry closes the chapter with Christian Rudder’s findings: people who divide opinion online—those rated both “hot” and “ugly”—receive more messages than universally “cute” users. Variation creates intrigue. Statistically, uniqueness beats mediocrity. Her cheeky advice? Flaunt your quirks; even your bald patch or odd tattoo strengthens mathematical visibility. Authenticity isn’t just romantic—it’s optimally efficient.


The Dating Game: Strategy and Emotion in Love

Fry’s most playful chapter frames romance as a tactical contest, where game theory meets human vulnerability. She explores scenarios where logical strategies—popularized through dating manuals like The Game—collide with emotional complexity. In doing so, she reclaims mathematics from manipulation and illustrates how cooperative logic, not exploitation, leads to lasting success.

Love as an Auction

She opens with Peter Sozou and Robert Seymour’s study “Costly but Worthless Gifts,” showing that men signal commitment through extravagant but irrelevant displays—like fireworks or Ferraris. These gestures act as costly signals rather than useful gifts, deterring opportunists. Fry agrees the math works but humorously insists real affection can’t be priced. True generosity defies utility equations.

The Eligible Bachelor Paradox

The next paradox—why successful women struggle to find partners—arises from asymmetric bidding. In competition, strong bidders (confident women) invest less because they believe better options will come later, leaving weaker bidders (those less choosy) to win men’s affection. The result is scarcity of ‘good men.’ Fry’s translation: don’t underestimate the value of showing interest; effort entices equilibrium.

Faithfulness and the Prisoner’s Dilemma

Moving toward morality, she recasts fidelity as a repeated game. If both partners stay faithful, both win; if one cheats, the other suffers. Yet, played over time, cooperation proves the stable equilibrium. This mirrors Robert Axelrod’s classic The Evolution of Cooperation: trust builds through reciprocal strategy. In dating terms, it’s simple tit for tat—be nice, be clear, retaliate fairly, forgive quickly.

Mathematics of Kindness

Fry frames tit-for-tat as relationship wisdom: transparent communication, fair boundaries, and timely forgiveness. Mathematics gives empathy structure. Rather than manipulative “rules,” she offers logical kindness—a formula for stability rather than seduction. Love, she proves, is not unpredictable warfare but an evolving cooperative system governed by emotional logic.


When to Settle Down: The Logic of Timing

At some point, every romantic seeker asks: when should I stop searching and commit? Fry answers through optimal stopping theory, a concept borrowed from probability economics. Framed as the “secretary problem,” this theory provides a rational guideline for deciding when to settle—with surprising poetic resonance.

The 37% Rule

If you expect to date several people over your lifetime, math suggests rejecting the first 37% of your prospective partners, then choosing the next person who’s better than all before. The strategy gives you roughly a one-in-three chance of finding “The One.” Fry marvels at this elegant simplicity—numbers transforming chaos into coherence. She demonstrates with age ranges: start dating at fifteen, plan to settle by forty, then date freely until twenty-four before evaluating seriously.

Accepting Suboptimal Happiness

But the rule, she admits, is imperfect. Life lacks fixed sample sizes. People vary. Chance intervenes. Through Monte Carlo simulations—virtual lifetimes—Fry shows that relaxing criteria (aiming for a top 5% partner rather than the absolute best) improves success probability to over 57%. Flexibility thus enhances satisfaction, both emotionally and statistically.

From Equations to Emotional Insight

Beneath the formulas lies wisdom: don’t rush, but don’t hesitate forever. Experiment early, then seize the right moment confidently. Waiting too long risks loneliness; too little exploration risks regret. Mathematics reframes patience as optimization—balancing discovery against decision.

(This echoes psychologist Cheryl Sandberg’s argument in Lean In—small window decisions define life trajectories. Fry’s version transforms romantic fate into calculated courage: love isn’t destiny, it’s timing with probability on your side.)


The Mathematics of Marriage: Staying Happy Forever

Fry ends her romantic tour in the territory of long-term affection—mathematical models of marriage. Collaborating psychologists John Gottman and mathematician James Murray develop equations predicting whether couples will thrive or divorce, with predictive accuracy up to 90%. The revelation? Emotional interaction can be mapped like systems stability—yet its solution relies on compassion, not computation.

Quantifying Emotion

Through studies using facial and physiological measures, Gottman assigned scores to behaviors: joy (+4), humor (+4), affection (+4), contempt (-4), defensiveness (-2), and so on. Couples who generated steady positive totals tended to remain together; those spiraling into negativity faced dissolution. Fry encourages readers to self-score discussions—an exercise in awareness rather than judgment.

The Negativity Threshold

Murray’s equations describe each partner’s reactions based on mutual influence—essentially how each person’s current mood shifts the other’s next response. Graphs reveal crucial insight: strong relationships have low negativity thresholds. Couples who address small irritations early prevent large collapses later. Bottling emotions raises thresholds, increasing instability. Contrary to intuition, minor complaints preserve equilibrium.

Repairing with Math-like Precision

Fry analogizes marriage to an arms race—each conflict mirrors escalation models. But healthy partnerships use rapid “repair mechanisms”—swift apologies, positive reinforcement, affectionate humor—to maintain control loops. Emotional stability follows mathematical symmetry: balanced negativity dampens oscillation; forgiveness restores momentum.

Love Beyond the Numbers

Ultimately, Fry’s message transcends graphs. Mathematics gives language to love’s patterns but not its heart. The real outcome depends on empathy and communication—variables you control. She echoes George Box’s wisdom: “All models are wrong, but some are useful.” Equations help you understand emotional feedback, but happiness, she reminds, is about knowing when to stop calculating and start listening.

Dig Deeper

Get personalized prompts to apply these lessons to your life and deepen your understanding.

Go Deeper

Get the Full Experience

Download Insight Books for AI-powered reflections, quizzes, and more.