All Chess Positions
EN
Open the map

C67Opening

Ruy Lopez:Berlin Defense, Rio Gambit Accepted

1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. O-O Nxe4

a8b7c6d5e4f3g2h1

White to move

Legal moves
29
Games in the next 4 moves
1,114,019
Different positions among them
378,393
Named lines from here
15

See it on the mapOn the opening map

The Open Berlin: Black takes the e-pawn, and the play turns tactical. White’s most common reply is 5. d4, and Black usually retreats with 5...Nd6, attacking the bishop; after 6. Bxc6 dxc6 7. dxe5 Nf5 8. Qxd8+ Kxd8 comes the Berlin endgame, the “Berlin Wall”: Black has lost the right to castle, and the modern consensus is that Black can hold with accurate play. Black’s main alternative to 5...Nd6, 5...Be7, has been called the Rio de Janeiro Variation; Emanuel Lasker played it several times, including three games of the 1908 World Championship. The most common sideline, 5. Re1, is low-risk for White but very drawish.

It is reached after 8 moves: 1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. O-O Nxe4. It is a line of the Ruy Lopez.

White is to move and has 29 legal moves. Over the next four moves — two for each side — the game can branch into 1,114,019 different games. Those games reach 378,393 different positions: most positions can be reached in more than one way, 2.9 on average.

The Lichess opening list names 15 further lines after this position, such as Rio de Janeiro Variation (5. d4 Be7) and l'Hermet Variation (5. d4 Nd6).

The same moves can be played in 36 different legal orders that all reach this position. For example 1. Nf3 e5 2. e4 Nc6 3. Bb5 Nf6 4. O-O Nxe4, which starts as the Zukertort Opening.

Map of every game of the next four moves after the Ruy Lopez: Berlin Defense, Rio Gambit Accepted
Every game of the next four moves from this position, as the map draws it. Each ring is one more move; the outer ring holds all 1,114,019 games.

What Stockfish says

Stockfish 19 scores this position at +0.15 for White: the game is level. The search looked at 5 million positions (nodes) and reached depth 33. Its best line: 5. Re1 Nd6 6. Nxe5 Be7 7. Bf1 Nxe5 8. Rxe5 O-O.

ReplyNameScore
5. Re1
engine’s choice
—+0.15
5. d4—+0.17

Scores are from White’s point of view, in pawns: + means White is better. The other replies are scored with 2 million nodes each, the engine’s choice with the 5 million of the position above, so differences under about 0.3 are within the engine’s noise.

Move by move

  1. 1. e4King's Pawn Game
  2. 1... e5King's Pawn Game
  3. 2. Nf3King's Knight Opening
  4. 2... Nc6King's Knight Opening: Normal Variation
  5. 3. Bb5Ruy Lopez
  6. 3... Nf6Ruy Lopez: Berlin Defense
  7. 4. O-ORuy Lopez: Berlin Defense
  8. 4... Nxe4Ruy Lopez: Berlin Defense, Rio Gambit Accepted

Named lines from here

Related openings

Sources

Chess by the numbers

How many chess positions are there?About 4.8 × 10⁴⁴ in all — and why far fewer positions than games appear early on. How many possible chess games are there?From 20 after one move to two sextillion after fifteen, and why whole games are beyond counting. Is chess solved?No. What computers have solved, what they have not, and why.

FEN

r1bqkb1r/pppp1ppp/2n5/1B2p3/4n3/5N2/PPPP1PPP/RNBQ1RK1 w kq - 0 5