# Lottery odds calculator > How likely is it to win the lottery? The number of possible rows in a lottery draw and the chance that one row hits the jackpot. Work out lottery odds: how many rows a draw of 7 numbers out of 40 has, and the chance one row hits the jackpot. Change the numbers for any game. A preset of [Combinations and permutations calculator](https://how.box/combinations/). - Page: https://how.box/lottery-odds/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/lottery-odds/?n={n}&k={k}&o={o}&r={r}&v={v} - `n` (whole number 0 to 1e6): How many items to pick from. Example: `49`. - `k` (whole number 0 to 1000): How many to pick. Example: `6`. - `o` (boolean): Order matters: 1 or 0. Example: `false`. - `r` (boolean): Repeats allowed: 1 or 0. Example: `false`. - `v` (count or lottery): View: count (the count) or lottery (the chance of one row of a draw). Example: `lottery`. Example answer: https://how.box/lottery-odds/?n=49&k=6&o=0&r=0&v=lottery A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `combinations_count`: Exact number of ways to pick k of n items. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"combinations_count","arguments":{"n":49,"k":6,"order_matters":false,"repetition":false,"view":"lottery"}}}` - GET: https://how.box/mcp/run/combinations_count?n=49&k=6&order_matters=false&repetition=false&view=lottery ## How it works A lottery row wins the jackpot only if it matches every drawn number. The order of the draw does not matter and a ball never comes back, so the number of possible rows is the number of combinations: C(n, k) = n! ÷ (k! × (n − k)!), with n the numbers in the draw and k the numbers on a row. Drawing 7 numbers out of 40 gives 40! ÷ (7! × 33!) = 18,643,560 rows, so one row has a 1 in 18,643,560 chance. Ten rows have ten times the chance, still 1 in 1,864,356. The odds hold for a fair draw, where every row is equally likely. Smaller prizes for fewer correct numbers have their own, better odds, and a shared jackpot is split between the winners. Buying more rows raises the chance in proportion, not by more. In the 7-out-of-40 game, 100 different rows make it about 1 in 186,436. Prize tiers for fewer matches are worth checking in the game rules. ## FAQ **What are the odds of a lottery that draws 7 numbers out of 40?** There are C(40, 7) = 18,643,560 possible rows, so one row has a 1 in 18,643,560 chance of hitting all seven. **How do I work out the odds of a game with two drums?** Count each drum on its own and multiply. Picking 5 of 50 and then 2 of 12 gives 2,118,760 × 66 = 139,838,160 possible rows. **Do some numbers win more often?** No. In a fair draw every row is equally likely, so no pattern or past result changes the odds. **What are the odds of a 6 out of 49 lottery?** C(49, 6) = 13,983,816 possible rows, so one row wins the jackpot with a 1 in 13,983,816 chance. **Does buying ten rows make a big difference?** It makes the chance ten times larger, but from a tiny number to a tiny number: 10 rows of the 7-out-of-40 game give about 1 in 1.86 million instead of 1 in 18.6 million. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)