From https://www.chess.com/terms/en-passant#what-is-en-passant
To perform this capture, you must take your opponent's pawn as if it had moved just one square. You move your pawn diagonally to an adjacent square, one rank farther from where it had been, on the same file where the enemy's pawn is, and remove the opponent's pawn from the board.
There are a few requirements for the move to be legal:
The capturing pawn must have advanced exactly three ranks to perform this move.
The captured pawn must have moved two squares in one move, landing right next to the capturing pawn.
The en passant capture must be performed on the turn immediately after the pawn being captured moves. If the player does not capture en passant on that turn, they no longer can do it later.
This type of capture cannot happen if the capturing pawn has already advanced four or more squares. Another instance where this capture is not allowed is when the enemy pawn lands right next to your pawn but only after making two moves.
From https://www.chess.com/terms/en-passant#what-is-en-passant
To perform this capture, you must take your opponent's pawn as if it had moved just one square. You move your pawn diagonally to an adjacent square, one rank farther from where it had been, on the same file where the enemy's pawn is, and remove the opponent's pawn from the board.
There are a few requirements for the move to be legal:
The capturing pawn must have advanced exactly three ranks to perform this move.
The captured pawn must have moved two squares in one move, landing right next to the capturing pawn.
The en passant capture must be performed on the turn immediately after the pawn being captured moves. If the player does not capture en passant on that turn, they no longer can do it later.
This type of capture cannot happen if the capturing pawn has already advanced four or more squares. Another instance where this capture is not allowed is when the enemy pawn lands right next to your pawn but only after making two moves.