Answer: The expected value is infinite, but no sensible person would pay more than a few dollars to play. The St Petersburg paradox answer is that the game is worth an infinite amount on paper, yet nobody would pay more than a few dollars to play it. Heads on the first flip pays $2, on the second flip $4, on the third $8, and the prize keeps doubling. The maths says pay anything. The risk says pay almost nothing.
The question is a standard quant interview question. It appears in probability brainteaser lists for quant interviews, and sales and trading guides ask the same game. The TechInterview probability brainteaser guide lists a St Petersburg variant among the questions quant firms ask. The interviewer wants to watch you compute the expected value, notice that the answer cannot be the price, and explain what to do instead.
The Question
A casino offers you this game. A fair coin is flipped until it lands heads for the first time. Heads on flip one wins $2, on flip two $4, on flip three $8. The prize doubles with every extra flip: $16, $32, $64, and so on, with no limit. You pay to play once. How much would you pay? Say two things first: the coin is fair, and you play once, not a thousand times.
The St Petersburg Paradox Answer in Four Steps
Step 1: Write Down the Odds
Heads on flip one has a chance of 1 in 2, on flip two 1 in 4, on flip three 1 in 8. The pattern is plain: heads on flip n has a chance of 1 in 2 to the power n, and it pays $2 to the power n.
| First heads on flip | Chance | Prize | Contribution to expected value |
|---|---|---|---|
| 1 | 1 in 2 | $2 | $1 |
| 2 | 1 in 4 | $4 | $1 |
| 3 | 1 in 8 | $8 | $1 |
| 4 | 1 in 16 | $16 | $1 |
| 5 | 1 in 32 | $32 | $1 |
| 6 | 1 in 64 | $64 | $1 |
Every row contributes exactly $1. The chance halves each time, and the prize doubles each time, so the two changes cancel out perfectly. That is the engine of the paradox.
Step 2: Add the Rows
The expected value is the sum of every row: $1 plus $1 plus $1, forever. The sum never stops growing, so it has no limit. The expected value is infinite. That is the correct mathematical answer, and a useless price: no casino and no candidate has infinite money.
Step 3: Check What Usually Happens
Half the time, heads comes on the first flip and you win $2. Three quarters of the time you win $4 or less. Seven eighths of the time you win $8 or less. The chance of winning at least $1,024 is 1 in 512, and the chance of winning at least $1,048,576 is 1 in 524,288. The average game lasts two flips. The average over infinitely many plays is infinite, yet one play pays $2 half the time. Both are true, and the paradox is that they disagree about what the game is worth.
Step 4: Name the Gap
An expected value is a long-run average: what you would win per game if you played an infinite number of times. You are playing once, with your own money, against a casino that cannot pay an infinite prize. The infinite value lives in outcomes you will never see, and the price must reflect the game you actually play.
Why the St Petersburg Paradox Answer Feels Wrong
The paradox is nearly 300 years old. Daniel Bernoulli published it in 1738, in a paper read to the Imperial Academy of Sciences in St Petersburg, which gave the paradox its name. Gabriel Cramer had posed the game in a letter ten years earlier. Bernoulli also gave the first resolution: money is not worth the same to everyone. Each extra dollar is worth less than the last, so a prize that doubles forever does not double in value forever.
The clean fix is log utility: value a payoff by its logarithm, not its face value. Under log utility, the value of the game is the sum over every flip of the chance times the log of the prize. That sum is 2 times the log of 2, so the certainty equivalent, the sure amount worth the same as the gamble, is $4. A player who values money logarithmically would pay $4 to play.
Your own wealth changes the number, but only slowly. With $100 to your name, the most a log-utility player would pay is about $7.80. With $1,000,000, it is about $20.87. The price grows like a logarithm while the prizes double, which matches how real people behave: nobody pays $100 for this game, however rich they are.
The St Petersburg Paradox Answer With a Capped Bank
The second resolution is even simpler, and it is the one trading firms care about. No casino can pay an infinite prize, so cap the bank. Suppose the house can pay at most $2 to the power 20, about $1,048,576. Flips one to twenty each contribute $1, as before, which gives $20. Beyond flip twenty, the house pays its whole pile, with a chance of 1 in 2 to the power 20, adding $1 more. The total is $21. The famous infinite value collapses to $21 as soon as the payer has a finite bank.
A capped version of the game is listed as a Hudson River Trading interview question from 2020, with the bank at 2 to the power 20 rupees and the fair price Rs 21. The same arithmetic works at any cap: $1,000,000 gives about $20.91, and $1,024 gives $11. Almost all of the infinite expectation sits in outcomes the house could never pay. A price driven by vanishingly rare, enormous payoffs is fragile: cut off the tail and the price collapses, so it was never real.
The Traps Most Candidates Fall Into
Trap one: say infinity and stop. Infinity is the expected value, not the price, and it is not an answer a human can act on. State it, then say why it is not the price.
Trap two: say $2. Two dollars is the median outcome, the prize you win half the time. The median is the typical result, not the fair price: under log utility the game is worth $4, and with a bank capped at about $1 million it is worth $21.
Trap three: forget the counterparty. Every version of this game assumes the house pays whatever the coin says. Real houses have finite banks and real players have finite wealth. If you never mention the cap, you have solved a maths exercise and missed the interview question.
What the Interviewer Is Testing
First, clean expected value maths: the table, the 1 in 2 to the power n chance, the $2 to the power n prize, and the $1 contribution in every row. Write the first few rows and spot the pattern.
Second, judgement about a useless answer. Infinity is correct and unusable at the same time. The strong candidate says so, then reaches for the median, the utility argument, or the capped bank.
Third, what expected value is for: a guide to repeated decisions, not a price tag for a single gamble. A trader who prices every one-off bet at its expected value will blow up on the first rare event.
Fourth, the follow-up: the interviewer caps the bank, asks what you would pay with $100 in your pocket, or asks what changes if the prize triples instead of doubling. Each has a clean answer from the same table. Answer from the working, not from memory.
Try These Next
More interview puzzles in this series: Two Envelopes Paradox Answer: Why Switching Gains Nothing, Monty Hall Problem Answer: Switch Doors, and Birthday Paradox Answer: 23 People.
Frequently Asked Questions
What is the St Petersburg paradox answer?
The St Petersburg paradox answer is that the expected value is infinite, yet the game is worth only a few dollars. Under log utility it is worth $4, and with a bank capped at about $1 million it is worth $21.
Is the expected value really infinite?
Yes, in the uncapped game. Every flip contributes exactly $1, and there are infinitely many flips, so the sum has no limit. The infinity is real mathematics; the price is not, because no house can pay it and no player can stake it.
What would a quant actually pay to play?
A few dollars. Under log utility the game is worth $4. With $100 of wealth the most a log-utility player pays is about $7.80, and with $1,000,000 it is about $20.87. If the house caps payouts at about $1 million, the fair price is $21.
How is this different from the two envelopes paradox?
The two envelopes paradox comes from a wrong conditional expectation: the same unknown amount is counted twice under two different labels. The St Petersburg paradox comes from a correct expectation that sums to infinity. One is a reasoning error to find, the other is a correct sum that cannot be used as a price.
Enjoying this? Add StudyFromNotes as a preferred source on Google to see our latest notes and updates more often:

Lauren Brooks is a finance professional who writes about the CPA and CFA exams, study strategy, and global finance careers. Lauren has sat professional finance exams and builds notes from the official syllabus and exam blueprints, with worked examples and one-page revision boxes. The beat covers US and UK exam routes, interview preparation, and the study habits that carry candidates through long exam seasons.
Leave a Reply