House Edge Explained: The Maths Behind Games of Chance

Slice & Dice
Slice & Dice — image: Steam store / publisher

Every game of chance has hidden maths. In casinos that maths is called the house edge: the average share of each bet the operator expects to keep over time. Understanding it explains a lot about probability — and about how video games use luck.

Expected value in one example

Imagine a coin flip where you bet 1 coin. Heads, you win 1 coin; tails, you lose your coin. Over many flips you break even: the expected value is zero. Now imagine heads only pays 0.9 coins. On average you lose 0.05 coins per flip. That 5% is the house edge.

House edge and RTP

Return to player (RTP) is the flip side of house edge. A game with a 4% house edge has an RTP of 96%: over a very large number of plays, it pays back 96% of what is wagered. Over a short session, results swing wildly in both directions — which is exactly why short-term luck feels so convincing.

ConceptMeaning
ProbabilityHow likely an outcome is
Expected valueThe average result per play over the long run
House edgeThe operator’s average share of each bet
RTP100% minus the house edge
VarianceHow much results swing around the average

What game designers take from this

Video games use the same ideas in reverse. Instead of a hidden edge against the player, good chance-based games give players ways to tilt the odds in their favour:

  • In Balatro, thinning your deck raises the probability of strong hands.
  • In Luck be a Landlord, removing weak symbols raises your machine’s "RTP".
  • Pity systems in gacha games cap the worst-case variance.

The takeaway

In any game where you pay per attempt, the long-run maths is set by the designer. Knowing about expected value and variance helps you enjoy games of chance for what they are — entertainment — and spot when a system is built to take more than it gives.