Traxler Counterattack: How to Play (NM Dan Heisman) | Chessreps
This page is in italiano View in English

Traxler Counterattack: How to Play, Lines & Traps

Dan Heisman

The Traxler Counterattack is Black’s sharpest answer to 4.Ng5 in the Two Knights Defense: 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5. Instead of blocking with 4...d5, you ignore the attack on f7 and aim your bishop at f2. If White grabs with 5.Nxf7, you hit back with 5...Bxf2+ and launch an immediate king hunt.

Moves
1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5
Played by
Black
Style & theory
Sharp · Heavy theory
5…Bxf2+

Defining position: 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+

Play the first line free

No signup needed.

Why play the Traxler Counterattack?

In the Two Knights Defense (1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6), the standard reply to 4.Ng5 is 4...d5, where Black has to avoid the natural recapture 5...Nxd5 that allows the Fried Liver Attack. With 4...Bc5, the Traxler Counterattack, you sidestep all of that and aim directly at White’s f2-pawn.

Most White players cannot resist the obvious fork with 5.Nxf7. That walks into 5...Bxf2+, where natural moves like 7.Ke1 or 8.Nxh8 lose to quick checkmates, and even accurate replies like 6.Kf1, 7.Ke3, and 7.Kg1 drop White into complex tactical lines. You should also know how to play on after White’s best move, 5.Bxf7+ Ke7.

— NM Dan Heisman, from the Chessreps Traxler Counterattack course

Why players love it

  • Forcing, memorizable attacking lines: one careless White move and Black is winning or mating
  • Sidesteps the Fried Liver Attack completely: Black never has to defend the 4... d5 5. exd5 positions
  • Most club players who play 4. Ng5 expect easy material, not a king hunt; the surprise value is enormous
  • Outstanding in blitz and rapid, where defending with a wandering king under attack is brutally hard
  • Trains concrete calculation: every line is tactics from move five onward

Watch out for

  • Objectively dubious against best play: engines prefer White after the cool-headed 5. Bxf7+
  • If White knows the critical defenses, Black is fighting for compensation, not an advantage
  • Demands precise memorization: in lines this sharp, a wrong move order loses on the spot
  • Only available when White plays 4. Ng5; you still need a plan against the main-line Italian

The move order and White’s three branches after 4...Bc5

The Traxler only arises through the Two Knights move order: 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5. By leaving f7 undefended, you dare White to fork your queen and rook with 5.Nxf7. Once White takes, 5...Bxf2+ forces the king to move, clearing the way for ...Nxe4+ and ...Qh4 if White takes the bishop, or ...Qe7, ...d5, and ...Nd4 if White declines it.

After 5.Nxf7 Bxf2+, White has two serious tries: 6.Kxf2 Nxe4+, where only 7.Ke3 and 7.Kg1 survive (other king moves lose), and 6.Kf1 Qe7 7.Nxh8 d5, where Black opens lines while White’s knight sits stranded in the corner. White’s theoretically strongest move is 5.Bxf7+ Ke7, winning a pawn cleanly without allowing the king hunt.

Main lines — explained move by move by NM Dan Heisman

Click any move below to jump the board straight to that position and read the explanation from NM Dan Heisman’s course. When you want to lock a line into memory, open it directly in the interactive trainer.

After 6.Kxf2 Nxe4+ 7.Ke3: the 8.g3 main line

Meet White’s best defense with 8...Nxg3, legal castling 10...O-O pinning the f7-knight, and 11...e4+.

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+ 6.Kxf2 Nxe4+ 7.Ke3 Qh4 8.g3 Nxg3 9.hxg3 Qd4+ 10.Kf3 O-O 11.Rh4 e4+ 12.Kg2 Qxc4 13.Ng5 Qd4

13…Qd4

After 6.Kxf2 Nxe4+ 7.Kg1: ripping open the kingside

Sacrifice on g3, bring the rook to f8 to pin the f7-knight, and punish 12.Kg2 with ...Qxc4 and ...Nd4.

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+ 6.Kxf2 Nxe4+ 7.Kg1 Qh4 8.g3 Nxg3 9.hxg3 Qxg3+ 10.Kf1 Rf8 11.Nc3 Qf4+ 12.Kg2 Qxc4 13.Ng5 Nd4

13…Nd4

When White declines the bishop with 6.Kf1

Save the queen with 6...Qe7, open lines with the thematic 7...d5 sacrifice, and force a perpetual against White’s best play.

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+ 6.Kf1 Qe7 7.Nxh8 d5 8.exd5 Nd4 9.d6 Qxd6 10.Nf7 Qe7 11.c3 Bg4 12.Qa4+ Nd7 13.Kxf2 Qh4+ 14.Kf1 Bh5 15.cxd4 Qf4+

15…Qf4+

White’s strongest test: 5.Bxf7+ Ke7

Keep f8 clear for your rook, push the knight back with ...h6, and fight for practical play a pawn down.

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Bxf7+ Ke7 6.Bc4 Rf8 7.Nc3 h6 8.Nf3 d6

8…d6

Common Traxler Counterattack traps and mistakes

Real club games in the Traxler Counterattack are often decided before move twelve by a single tactical detail. Know the traps you can spring — and the pitfalls to sidestep.

10…Qf2#

Trap for Black

Forced mate in four after 8.Nxh8? against 7.Ke3

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+ 6.Kxf2 Nxe4+ 7.Ke3 Qh4 8.Nxh8 Qf4+ 9.Kd3 Nb4+ 10.Ke2 Qf2#

Taking the h8-rook walks into mate in four. 8...Qf4+ pulls the king forward, 9...Nb4+ seals the escape squares, and 10...Qf2# delivers checkmate.

12…Qf3#

Trap for Black

Punishing the 7.Ke1? retreat on the h1-rook and queen

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+ 6.Kxf2 Nxe4+ 7.Ke1 Qh4+ 8.g3 Nxg3 9.hxg3 Qxh1+ 10.Ke2 Nd4+ 11.Kd3 Qxd1 12.Nxh8 Qf3#

7.Ke1 allows 7...Qh4+ with check. After 8.g3 Nxg3 9.hxg3 Qxh1+, 10...Nd4+ deflects the king from defending the d1-queen, and grabbing h8 allows 12...Qf3#.

9…Qe7

Trap to avoid as Black

Avoiding autopilot ...Nxg3 against 8.Qf1 Rf8 9.g3

1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5 5.Nxf7 Bxf2+ 6.Kxf2 Nxe4+ 7.Kg1 Qh4 8.Qf1 Rf8 9.g3 Qe7

In most 7.Kg1 Qh4 lines you meet g3 with ...Nxg3, yet after 8.Qf1 Rf8 9.g3 that capture is wrong. Play 9...Qe7 instead to target the pinned knight on f7.

Named variations of the Traxler Counterattack

10…Rf8

Bishop Sacrifice Accepted: 6. Kxf2 with 7. Kg1

1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Ng5 Bc5 5. Nxf7 Bxf2+ 6. Kxf2 Nxe4+ 7. Kg1 Qh4 8. g3 Nxg3 9. hxg3 Qxg3+ 10. Kf1 Rf8

White takes both offered pieces and tucks the king on g1, the most natural-looking defense. Black sacrifices again with 8... Nxg3, ripping open the king, and 10... Rf8 hauls the last piece into the attack against the stranded knight on f7. White’s extra material sits at home on the queenside while every Black piece points at the king, exactly the trade the Traxler is built on.

10…Qf2#

King Hunt: 7. Ke3

1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Ng5 Bc5 5. Nxf7 Bxf2+ 6. Kxf2 Nxe4+ 7. Ke3 Qh4 8. Nxh8 Qf4+ 9. Kd3 Nb4+ 10. Ke2 Qf2#

Walking the king up the board with 7. Ke3 looks active but steps into the full force of Black’s attack. After 7... Qh4, greed with 8. Nxh8 lets Black drive the king across the center with checks and deliver mate on move ten. The pattern of queen and knights herding the king while White’s army watches from its starting squares repeats across many Traxler lines and is worth knowing cold.

8…Nd4

Declined with 6. Kf1

1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Ng5 Bc5 5. Nxf7 Bxf2+ 6. Kf1 Qe7 7. Nxh8 d5 8. exd5 Nd4

Declining the bishop with 6. Kf1 is White’s most testing try after 5. Nxf7, dodging the forced king walks. Black calmly plays 6... Qe7 and 7... d5, opening the center while White’s knight goes pawn-grabbing on h8. With 8... Nd4 and ...Bg4 coming, every Black piece joins the attack on the uncastled king; the knight in the corner may never escape. These are the lines where exact preparation pays off most.

11…Qxd1

Back Rank Retreat: 7. Ke1

1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Ng5 Bc5 5. Nxf7 Bxf2+ 6. Kxf2 Nxe4+ 7. Ke1 Qh4+ 8. g3 Nxg3 9. hxg3 Qxh1+ 10. Ke2 Nd4+ 11. Kd3 Qxd1

Retreating to e1 runs into 7... Qh4+ at once. The forced 8. g3 is demolished by 8... Nxg3, and after recapturing Black wins the h1-rook with check. The follow-up 10... Nd4+ drives the king forward again and 11... Qxd1 removes White’s queen, a material and attacking rout born entirely from the f2 sacrifice.

5…Ke7

Bishop Check: 5. Bxf7+

1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Ng5 Bc5 5. Bxf7+ Ke7

The bishop check is widely considered White’s safest route: White wins a pawn and avoids the mating nets of 5. Nxf7. Black answers 5... Ke7: the king is surprisingly secure there, since the center stays closed for now. Black’s plan is to harass the loose bishop and knight, gain time with moves like ...h6 and ...d6, and use the half-open f-file and lead in activity as long-term compensation for the pawn.

How to beat the Traxler Counterattack as White

The Traxler punishes players who grab material with 5.Nxf7 without knowing exact defensive moves. White has a much simpler, theoretically stronger answer.

  • Take with the bishop, not the knight: 5.Bxf7+. After 5.Bxf7+ Ke7, retreat the bishop along the a2-g8 diagonal (such as 6.Bb3, 6.Bc4, or 6.Bd5), avoid the 6.O-O? blunder that drops a piece to 6...h6, and keep a healthy extra pawn.
  • Develop cleanly and trade queens when you can. After 5.Bxf7+ Ke7, keep the center closed enough to limit Black’s pieces, castle safely, and simplify toward an endgame where the extra pawn and exposed king on e7 tell.
  • If you do play 5.Nxf7, know your exact king move. Against 5...Bxf2+, 6.Kf1 is the most testing way to avoid forced king walks, while after 6.Kxf2 Nxe4+ only 7.Ke3 and 7.Kg1 survive. Never retreat to e1 or grab h8 blindly.
  • Sidestep 4.Ng5 altogether against a prepared opponent. Quiet Italian setups with d3 and c3, or 4.d4, leave Black’s Traxler preparation completely unused.

History of the Traxler Counterattack

The opening is named after Karel Traxler, a Czech player who employed it in the late nineteenth century. In American chess literature the same line is known as the Wilkes-Barre Variation, after the city in Pennsylvania, one of the rare openings carrying two established names on different sides of the Atlantic. Analysts have attacked and defended it for well over a century, and the computer era delivered a measured verdict: engines give White an edge with the calm 5. Bxf7+, while the greedy 5. Nxf7 leads to positions where White must defend with near-perfect accuracy to prove anything. That gap between objective evaluation and practical difficulty is exactly why the Traxler endures: online and in club play it remains one of the most feared answers to 4. Ng5.

Frequently asked questions

Is the Traxler Counterattack sound?

No, it is not fully sound against best play. Engines favor White after 5.Bxf7+ Ke7, where Black does not have full compensation for the pawn, which is why grandmasters rarely play it against prepared opponents. In club play, however, most players take with 5.Nxf7 and walk into dangerous tactics.

What is the best response to the Traxler Counterattack?

White’s best response is 5.Bxf7+ Ke7, followed by retreating the bishop to c4, b3, or d5 and developing calmly. It keeps an extra pawn while avoiding all of Black’s mating nets after 5.Nxf7 Bxf2+.

What happens if White takes the rook with Nxh8?

In the 6.Kxf2 Nxe4+ lines, taking the rook often loses on the spot. After 7.Kg1 Qh4 8.Nxh8, 8...Qf2# is mate in one, and after 7.Ke3 Qh4 8.Nxh8, 8...Qf4+ forces checkmate in four moves.

Is the Traxler Counterattack the same as the Wilkes-Barre Variation?

Yes, they are two names for the exact same opening: 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 Bc5. European sources name it after Czech player Karel Traxler, while American literature calls it the Wilkes-Barre Variation after the city in Pennsylvania.

Does the Traxler Counterattack stop the Fried Liver Attack?

Yes, it sidesteps the Fried Liver completely. Because Black plays 4...Bc5 instead of 4...d5 5.exd5 Nxd5, White never gets the 6.Nxf7 sacrifice on Black’s king and has to defend f2 instead.

Is the Traxler Counterattack good for beginners?

It can win quick games in blitz and rapid, though it demands exact move-order memorization. Because one wrong move in the 5.Nxf7 lines loses immediately, beginners should drill the main branches thoroughly rather than improvising.

About the authors

Dan Heisman

NM Dan Heisman

FIDE 2285 (peak 2285 in 2003)

Dan Heisman is an American National Master who has worked as a full-time chess instructor and author since 1996. He is known for his 'Novice Nook' column and instructional books such as 'The Improving Chess Thinker' and 'Elements of Positional Evaluation'.

Co-authored with Chessreps, which built the interactive move trainer for this opening.