Lottery is a form of gambling where you purchase a ticket for the chance to win a prize. It is the most popular form of gambling in America, and state governments promote it as a way to raise revenue for education and other public goods. In 2021, Americans spent more than $100 billion on lottery tickets. But how much of that goes toward the actual prizes, and how much is used for administrative costs and vendor payments? Here’s a look at how it breaks down.

Lotteries were first recorded in the Low Countries in the 15th century, where towns held public lotteries to raise money for town fortifications and help the poor. Town records from Ghent, Utrecht, and Bruges indicate that they were even more widespread than today.

The purchase of lottery tickets cannot be accounted for by decision models based on expected value maximization. That’s because the ticket costs more than the potential prize, and people who are maximizing their expected utility would not buy them. But many people buy tickets anyway, either because they don’t understand the math or because they enjoy the fantasy of becoming wealthy.

Lotteries are a big part of the modern world, but there’s more to them than the simple desire for pleasure and entertainment. They also dangle the promise of instant wealth in an era of inequality and limited social mobility. And they depend on a twisted logic to keep their operations running.