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.

Examples
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.

What each column in the list of moves tells you.
ColumnWhat it isHow to read it
Behind the bestHow much lower this move rates than the top one, in the calculator’s own pointsOne more empty square is worth 540. A gap of a few hundred is close; tens of thousands is a mistake
Points nowWhat the move adds to your score this turnTempting, and a poor guide, as the next section shows
Empty afterEmpty squares left once the tiles have slid, before the new tile landsMore is safer
Lock riskThe exact chance that the board has no move left within four moves0% 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.

Left and Right score the same 44 points and leave very different boardsA 2048 board with 512 in the top-left corner, 128 and 32 below it, 16, 16, 4, 4 along the bottom row, two 2s in the third row and a 2 in the top-right corner. Sliding left merges the bottom row into 32 and 8 and the two 2s into a 4, for 44 points, and the 512 stays in its corner. The calculator rates that 380 behind its best move. Sliding right scores the same 44 points but carries the 512 to the third square of the top row with the 2 outside it. The calculator rates that 148,806 behind, the worst of the four moves.
Left and Right both score 44 points. Left keeps the 512 in its corner and rates 380 behind the best move. Right drags the 512 into the middle of the row and rates 148,806 behind, last of the four.

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%.

After Down, the new tile has twelve ways to landThe board after sliding down: 512, 128, 32 and 16 down the left edge, 2, 2, 2 across the rest of the third row and 16, 4, 4 across the bottom. The six empty squares are the last three of the top row and of the second row. Each is labelled with how much better or worse than average the position is if a 2 lands there, and if a 4 does. A 2 lands best in the third column, at +949. A 4 anywhere in the second row is the worst outcome, at −2,859, and those three squares are outlined with dashes.
A 2 in the third column is the kindest drop, at +949 against the average. A 4 anywhere in the second row is the worst, at −2,859. Down’s rating is the weighted average of all twelve.

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.

How one line of four squares is scored. A board with no move left scores 0 in total.
What is in the linePointsWhy it matters
Every line starts with+200,000So that any live board, however ugly, beats a dead one
Each empty square+270Room to move. A square sits in a row and a column, so it counts twice: 540
Each tile in a run of equal neighbours+700A merge waiting to happen
Tiles out of order along the line−47 × the gapThe 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.5Many 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.

How far the calculator’s first choice gets, by look-ahead. Share of games that reached each tile; 2,580 games in all.
Look-aheadGames20484096819216384Median score
1 move1,000nonenonenonenone4,232
2 moves1,00070%21%<1%none32,312
3 moves40096%72%14%none73,180
4 moves15097%92%51%4%107,364
5 moves (the page’s setting)30all90%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.

Sliding down here loses nine times in tenA crowded 2048 board with a 4096 in the top-left corner and one empty square, in the bottom row. Sliding down moves that gap to the third square of the top row. If the new tile is a 2, which happens nine times in ten, no two neighbours on the board match and the game is over. If it is a 4, it sits beside two other 4s, to its right and below it, and the game goes on.
Sliding down moves the only gap to the top row. A 2 there matches nothing around it and the game is over; only a 4 saves it. So Down carries a lock risk of exactly 90%, and rates 1,248,094 behind Left.

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.

Points scored and moves made on the way to a board holding just that tile. The low end is every drop a 4, the high end every drop a 2; the likely figures assume the usual one 4 in ten.
TilePoints, lowest to highestLikely pointsLikely moves
64256 to 32030827
128640 to 76874556
2561,536 to 1,7921,745114
5123,584 to 4,0964,003231
1,0248,192 to 9,2169,030463
2,04818,432 to 20,48020,108929
4,09640,960 to 45,05644,3111,860
8,19290,112 to 98,30496,8153,722
16,384196,608 to 212,992210,0137,445
32,768425,984 to 458,752452,79414,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.