Lottery is a gambling game in which players purchase tickets to win a prize. Typically, the larger prizes are cash, while lesser prizes may be goods or services. In the US, lottery games raise more than $100 billion each year. This makes them by far the most popular form of gambling in the country.

Historically, the casting of lots to make decisions or determine fates has a long history (see for example dozens of instances in the Bible). More recently, however, lotteries have become common in many Western countries, primarily as ways to raise funds for civic projects. The first recorded public lotteries to distribute prize money were held in the Low Countries in the 15th century, raising funds for town walls and fortifications. The term “lottery” may be a calque on Middle Dutch louter, which meant “fate.”

For most people, buying lottery tickets is an innocent and harmless pastime, a way to fantasize about winning big at a relatively low cost. But for others, it can be a serious budget drain. In fact, studies have found that those with the lowest incomes buy the most lottery tickets, which critics argue are a disguised tax on those least able to afford them.

Some states use the money from their lottery games to boost school budgets, while other states set it aside for various other purposes. The amounts vary by state, but on average, about 50%-60% of ticket sales go into the prize pool, with the rest going to vendor and administrative costs and toward any projects that each state chooses to fund.