Opening guide

Modern Defense: h4 – How to Play as Black

ECO B06 132,762 games Stockfish +0.53

White has pushed the h-pawn on move two, trying to embarrass your fianchetto before you've even finished building it. In the Modern Defense: h4 (1.e4 g6 2.h4 Bg7), White's aggressive h4 asks how you'll handle the threat of h5, h6, and a possible pawn storm. Over 130,000 games have reached this exact position, and the numbers reveal a clear story: Black holds up well if you know what to do. Below you'll find the engine's top choice, the most popular replies from White, and the critical mistakes you can punish. The interactive drill will sharpen your response — let's get to it.

On this page
  1. Practice against the engine
  2. The Position After 2...Bg7
  3. White's Best Move: Nc3
  4. The Most Popular Replies – What to Expect
  5. Mistakes to Punish: d3 and g4
  6. Real-game results
  7. FAQ
  8. More Modern lines

Play the Modern Defense: h4 against the engine

Free, no signup — you play black, the engine adapts to your level.

Ready to practice? The interactive drill below will let you face the Modern Defense: h4 from Black's side. Put these lines to the test and build your feel for a

Find your own #1 mistake — free →

The Position After 2...Bg7

You've played the Modern Defense's trademark fianchetto, and White has already committed to h4. That pawn push weakens the g4-square and creates a hook on the kingside — White is signalling trouble for your king, but the move also costs time. Stockfish evaluates the position at +0.53, a small edge for White. That means you are slightly worse, but the margin is tiny and full of counterplay. The key is knowing which of White's next moves are dangerous and which ones let you breathe.

White's Best Move: Nc3

The engine recommends 3.Nc3, which continues with the plan h5 d4 d5. This is the most principled continuation: White develops, keeps the h4 tension alive, and prepares to open the centre. Across the database, Nc3 has been played about 2,566 times, and White scores 49.5% — barely half. That tells you something important: even against the engine's top choice, Black is doing fine. Your antidote is straightforward: meet h5 with d5, challenging the centre immediately, and don't panic about the kingside.

Mistakes to Punish: d3 and g4

The FACTS identify two clear inaccuracies by White in this position. 3.d3 is classified as an inaccuracy, losing roughly 0.6 pawns compared to the better move Nc3. White's score drops to 49.2%, so you can be happy if your opponent chooses this. Worse is 3.g4 — a real mistake that costs about 1.8 pawns. White scores only 45.2% from here. If you see g4, you know your opponent has weakened their kingside prematurely. Develop quickly, open the centre, and White's loose pawn structure will become a target.

Results across 132,762 Lichess games

52.1%
3.5%
44.4%
White 52.1% Draw 3.5% Black 44.4%
Most-played continuationGamesWhite wins
1 h5Main line 105,784
53.2%
2 d4 6,817
53.7%
3 d3 3,837
49.2%
4 g4 3,220
45.2%
5 Nf3 2,661
48.1%
6 Nc3 2,566
49.5%

Frequently asked questions

Is the Modern Defense: h4 losing for Black?

No. Stockfish gives White a small edge of +0.53, but across 132,762 games Black wins 44.4% of the time with only 3.5% draws. Black's practical chances are excellent.

What is White's best move after 2...Bg7?

The engine recommends 3.Nc3. From there the plan is h5 d4 d5. This is the most testing line, but Black scores well against it when they respond with d5 and solid development.

Is 3.h5 good for White?

3.h5 is the most popular move (105,784 games) and White scores 53.2%. It is an aggressive try, but Black's counterplay in the centre keeps the position balanced.

Should White play 3.d3 or 3.g4?

No. Both are punished by the engine. 3.d3 is an inaccuracy losing ~0.6 pawns, and 3.g4 is a mistake losing ~1.8 pawns. Black should welcome these moves.

How many games feature the Modern Defense: h4?

Over 132K Lichess games have reached the Modern Defense: h4 position. White wins 52.1%, Black wins 44.4%, with 3.5% draws — based on real rated games.