2048 Best Move Calculator
Copy your board in and the calculator tells you which way to slide. It looks several moves ahead, weighs every square the next tile could land on, ranks all four directions and warns you when the board is about to lock. Want a fresh board instead? Play our free 2048 game.
Built by Brian Hamilton
Tap an empty square for a 2. Tap a tile twice to double it, or pick its number below.
Paste or copy the board as text
Example row: 512 . . 2
How to use the calculator, and the rules it plays by
In 2048 every move slides all the tiles one way. Two equal tiles that meet become one tile worth double, and a tile made that way cannot merge again on the same move. After each move that changes the board a new tile lands on a random empty square: a 2 nine times in ten, a 4 otherwise. The game ends when the board is full and no two neighbours match.
- Copy your board in. Tap an empty square to put a 2 on it. Tap a tile, then tap it again to double it, or pick its number from the pad. Empty clears the selected square.
- On a keyboard, the arrow keys move between squares. Type a tile’s number (1 then 6 for 16), press + or − to double or halve it, and Backspace to empty the square.
- The answer appears as soon as the board changes: the best direction, then all four ranked, with the points each scores now, the empty squares it leaves, and its lock risk.
- Play makes that move on the board. Then tap the square where your new tile appeared, once for a 2 and twice for a 4, and the next answer follows. Random tile drops one for you.
- Watch it play lets the calculator play on with random tiles until you stop it. Copy link saves the board in a link.
Copy your board in, then play it through
Tap an empty square and it takes a 2. Tap a tile, then tap it again, and it doubles: 2, 4, 8 and on up. For a big tile it is quicker to select the square and pick the number from the pad underneath. There is no Solve button. The answer redraws every time the board changes.
The headline is the direction to slide. Under it, all four moves are listed from best to worst, and each one is a button. Press it and the calculator makes that move on the board, then waits for you to tap the square where your new tile appeared: once for a 2, twice for a 4. The next answer follows straight away, so you can keep a real game and the calculator in step, move for move.
| Column | What it is | How to read it |
|---|---|---|
| Behind the best | How much lower this move rates than the top one, in the calculator’s own points | One more empty square is worth 540. A gap of a few hundred is close; tens of thousands is a mistake |
| Points now | What the move adds to your score this turn | Tempting, and a poor guide, as the next section shows |
| Empty after | Empty squares left once the tiles have slid, before the new tile lands | More is safer |
| Lock risk | The exact chance that the board has no move left within four moves | 0% nearly always. Anything else is a warning |
The move with the most points is often the worst one
The calculator opens on a board from one of its own games, chosen because two of its moves score exactly the same and could hardly be further apart.
The best move here is Down, which scores nothing. It tucks the stray 2 in the corner down beside the others and leaves the big tiles exactly where they are. Left collects 44 points and is close behind. Right collects the same +44 and wrecks the board: the 512 ends up with a smaller tile on each side of it, where nothing can merge with it and everything has to go round it. The calculator charges a row for tiles that are out of order, and for that top row the charge goes from 47 to 308,320.
This is not a rare position. Over 232,705 moves in the games we measured at five moves ahead, some move scored points on 216,697 of them, and the calculator turned down the highest-scoring move on 47% of those. That fits what our 2048 game page found from the other side: a player who always takes the most points usually finishes on 256.
It weighs every square the next tile could land on
You choose the move, but the game chooses the tile. After Down on the board above there are six empty squares, and the new tile is a 2 nine times in ten and a 4 otherwise. That makes twelve boards you might be looking at next. The calculator works out its best reply to each one and averages the results, counting each 2 at 15% and each 4 at 1.7%.
Then it does the same again from each of those boards, and again, until it has looked as many moves ahead as you asked for. For this board at five moves that came to 510,545 boards. A line of play that needs a run of tiles rarer than 1 in 10,000 is scored as it stands and not followed further.
The boards at the end of the look-ahead have to be scored somehow, and this is the table that does it. It is applied to each of the four rows and four columns, and the eight results are added up. A tile’s rank is how many doublings it is from 1: a 2 is rank 1, a 4 is rank 2, a 2048 is rank 11.
| What is in the line | Points | Why it matters |
|---|---|---|
| Every line starts with | +200,000 | So that any live board, however ugly, beats a dead one |
| Each empty square | +270 | Room to move. A square sits in a row and a column, so it counts twice: 540 |
| Each tile in a run of equal neighbours | +700 | A merge waiting to happen |
| Tiles out of order along the line | −47 × the gap | The gap is measured in fourth powers of rank, so one big tile out of place costs far more than several small ones |
| Each tile, by size | −11 × rank3.5 | Many middling tiles score worse than the one big tile they would merge into |
The method is called expectimax, and both it and these weights come from the open-source 2048-ai project published on GitHub by nneonneo. What we added is the measuring: every number on this page about how well it plays came from games played with this page’s own engine.
Five moves ahead reached 2048 in 30 games out of 30
We played whole games at each look-ahead, always taking the calculator’s first choice, with tiles dropped by the same rule as our game. Every extra move of look-ahead pushed the usual finishing tile higher.
| Look-ahead | Games | 2048 | 4096 | 8192 | 16384 | Median score |
|---|---|---|---|---|---|---|
| 1 move | 1,000 | none | none | none | none | 4,232 |
| 2 moves | 1,000 | 70% | 21% | <1% | none | 32,312 |
| 3 moves | 400 | 96% | 72% | 14% | none | 73,180 |
| 4 moves | 150 | 97% | 92% | 51% | 4% | 107,364 |
| 5 moves (the page’s setting) | 30 | all | 90% | 73% | 37% | 169,792 |
One move ahead means “pick the move whose board scores best right now”, with no thought for the tile to come. It never reached 2048 in 1,000 games, which matches the five rule-of-thumb players on our game page: 1,720 games and not one 2048. Two moves ahead, where the calculator first averages over the new tile, gets there 70% of the time. The scoring table is the same in every row. Only the depth changes.
The page looks five moves ahead unless you change it. Six is offered, and it does change answers: on 300 boards taken from those games, five moves chose the same move as six on 236 (79%). We have not played whole games at six, so the table stops at five. On the same boards five moves took a median of 12 milliseconds on a laptop and six took 94, with the slowest single board at 499 milliseconds.
Even at five moves ahead it uses all four directions. “Never press up” is the best-known piece of 2048 advice. In every one of the 30 games the calculator pressed each direction, and its least-used direction still made up 15% of its moves. Our game page measured the strict version of that rule and found it scored worse than simply taking points; the calculator does not play that way either.
Lock risk is a count, not an opinion
Everything above depends on a scoring table that somebody tuned. The lock risk does not. It asks one narrow question: if you make this move and from then on play only to stay alive, what is the chance that some run of tiles leaves you with no move inside the next four? The calculator answers by going through every way the tiles can fall.
That board is the third example under the calculator. Left and Right both score 20 and carry no risk at all, while the list of moves shows 90% against Down. Nothing else on the board warns you: Down is a legal move like any other.
Most of the time the column reads 0% for every move: in the games at five moves ahead the move played had a risk above zero on only 0.6% of turns. When a game was about to end, the reading had been above zero for a median of the last 7 moves. Treat the first non-zero reading as the moment to stop playing on instinct. It cannot see further than four moves, so 0% means safe for now and nothing more.
What a tile has cost you, in points and moves
A 2048 board keeps its own history. Every tile is the sum of the 2s and 4s that were dropped to build it, and every merge scores the tile it makes, so the tiles alone pin the score and the number of moves down to a narrow range. The line under the board reads both off for you.
| Tile | Points, lowest to highest | Likely points | Likely moves |
|---|---|---|---|
| 64 | 256 to 320 | 308 | 27 |
| 128 | 640 to 768 | 745 | 56 |
| 256 | 1,536 to 1,792 | 1,745 | 114 |
| 512 | 3,584 to 4,096 | 4,003 | 231 |
| 1,024 | 8,192 to 9,216 | 9,030 | 463 |
| 2,048 | 18,432 to 20,480 | 20,108 | 929 |
| 4,096 | 40,960 to 45,056 | 44,311 | 1,860 |
| 8,192 | 90,112 to 98,304 | 96,815 | 3,722 |
| 16,384 | 196,608 to 212,992 | 210,013 | 7,445 |
| 32,768 | 425,984 to 458,752 | 452,794 | 14,893 |
The rule behind the table: a tile built only from 2s has scored its own value times one less than its rank, so a 2048 is 2,048 × 10 = 20,480. Each 4 that arrived ready-made saves the 4 points of making it. We checked that sum against the real score at 8,177 points in 400 games and it was exact every time. In the games above, the 2048 tile first appeared after a median of 962 moves with 20,280 on the scoreboard; the extra points over the table are the smaller tiles sitting beside it.
Where it will let you down
It can be right and still lose. The best move is the best on average. If the 4 lands in the one square that hurts, the average does not help you, and 3 of the 30 games at five moves ahead still ended before 4096.
Small gaps mean nothing. When two moves are a few hundred points apart, treat them as equal. To save time the calculator reuses boards it has already averaged, and switching that off changed the chosen move on 13 of 1,200 boards we tried, never between moves more than 549 points apart.
It does not plan. Five moves is a long way for a tile drop and no distance at all for a plan such as walking a 1024 along the bottom row. Late in a game the right idea can be more than five moves deep, and then the calculator only sees it once it is close.
It stops at 32768. The engine holds tiles up to 32768. A move that would make a 65536 is still shown, marked as beyond what it can rate.
2048 solver, 2048 AI, best move calculator
These are three names for the same kind of tool. “Solver” is the loosest fit: a game with random tiles has no single answer to find, only a best bet for each board, which is why this page says best move and gives a rating, not a proof. “2048 AI” usually means a program that plays whole games by itself; Watch it play does that from whatever board you set up.
The calculator is for the standard game: a 4×4 board and a new 2 or 4 after every move. Versions with bigger boards, different odds for the new tile, or tiles that are not powers of two play differently, and its ratings will not carry over.
A fresh board, and calculators for other games
Our free 2048 game plays by exactly these rules, with undo, and its guide measures the popular rules of thumb the way this page measures the calculator. Shift Three takes sliding rows into a game for two.
The other calculators work the same way, on games with an opponent: set up the position and get the best move for Checkers, Gomoku, Reversi or 4 in a Row. The full list is on the calculators page.