Calculation and visualization
Visualize the empty squares
Track what empties as carefully as what fills. After every capture, erase the mover's old square and put the new occupant on the target.
Worked example
Position in text
White to move. White: pawn c4, pawn d4, pawn f2, rook c1, king g1. Black: rook c8, king g8, pawn g7, pawn c6, pawn e6.
FEN: 2r3k1/6p1/2p1p3/8/2PP4/8/5P2/2R3K1 w - - 0 1
Replay 1.d5 cxd5 2.cxd5. First d4 empties, then c6 empties when its pawn captures, then c4 empties when White recaptures. d5 changes occupant three times. In the final position the c-file contains the two rooks but no pawns between them.
A plausible mistake
Do not let the c6 pawn survive as an imagined shield after it moved to d5 and was taken. That ghost pawn hides a rook capture.
Try it yourself
Position in text
White to move. White: pawn c4, pawn d4, pawn e4, pawn f2, rook d1, king g1. Black: rook d8, king g8, pawn g7, pawn c6, pawn e6.
FEN: 3r2k1/6p1/2p1p3/8/2PPP3/8/5P2/3R2K1 w - - 0 1
Which original pawn squares are empty after d5 …exd5 exd5, and does the c6 pawn still exist?
Check your answer
d4, e6 and e4 are empty. c6 is still occupied by a black pawn; this branch moved the e-pawn rather than the c-pawn. d5 is occupied by White’s former e-pawn.