An example of en passant
A white pawn is on e5. Black pushes a pawn two squares from d7 to d5, so it lands right beside the white pawn. On the very next move White may capture it en passant: the pawn goes from e5 to d6 and the black pawn on d5 is removed from the board. In chess notation this is written exd6 e.p.
When is en passant possible?
- Your pawn is on the fifth rank if you are White, or on the fourth rank if you are Black.
- An opponent's pawn from the neighbouring file has just moved two squares and landed next to yours.
- You capture right away, on your next move.
- As with any move, the capture must not leave your own king in check.
Why does en passant exist?
The two-square pawn move was added to chess to speed up the game. Without en passant, though, a pawn could use it to slip past an enemy pawn that guarded the square it skipped over. En passant preserves the guarding pawn's right to capture: the pawn that moved two squares can still be taken as if it had made an ordinary one-square move.
Is en passant compulsory?
No. You can take en passant or leave it, as you like. The only exception is the one that applies to every move: if en passant is the only way out of check, or your only legal move, you have to play it.