C67Opening
Ruy Lopez:Berlin Defense, Rio Gambit Accepted
1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. O-O Nxe4
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
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.

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.
| Reply | Name | Score |
|---|---|---|
| 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. e4King's Pawn Game
- 1... e5King's Pawn Game
- 2. Nf3King's Knight Opening
- 2... Nc6King's Knight Opening: Normal Variation
- 3. Bb5Ruy Lopez
- 3... Nf6Ruy Lopez: Berlin Defense
- 4. O-ORuy Lopez: Berlin Defense
- 4... Nxe4Ruy Lopez: Berlin Defense, Rio Gambit Accepted
Named lines from here
- Rio de Janeiro VariationC675. d4 Be7
- l'Hermet VariationC675. d4 Nd6
- Rosenthal VariationC675. d4 a6
Related openings
- Ruy Lopez: Berlin DefenseC651. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6
Sources
Chess by the numbers
FEN
r1bqkb1r/pppp1ppp/2n5/1B2p3/4n3/5N2/PPPP1PPP/RNBQ1RK1 w kq - 0 5