The full rules

Capture en passant

Recognize a pawn that can be captured as it passes.

When an enemy pawn advances two squares and lands next to your pawn, your pawn can capture it as though it had advanced only one.

Make this capture immediately on your next turn. If you choose a different move first, the opportunity ends.

The landing square is empty before the capture. Remove the passed pawn from its actual square. As with every move, the capture must leave your king safe.

Worked example

After Black plays d7–d5 beside a white pawn on e5, White may play exd6 en passant, removing the pawn on d5.

Try it on the board

Choose a square by tapping it, or tab to the board and use the arrow keys and Enter.

Capture the pawn that just arrived from d7.

Choose a piece and its destination.

Read this solution

exd6. The black pawn is removed from d5.

As Black, capture the pawn from d2 en passant.

Choose a piece and its destination.

Read this solution

exd3. Black lands on d3 and the white pawn on d4 is removed.