Rules & Basics
What Happens When You Make an Illegal Move in a Chess Game
What counts as an illegal move in chess, why moving into check is never allowed, and how casual games, tournaments, and online chess handle the mistake.

Every beginner does it eventually. You reach for a piece, slide it across the board with total confidence, and someone across the table says "you can't do that." Making an illegal move in chess is not a sign you're bad at the game. It's a sign you're still learning the rules, and it happens to almost everyone in their first few months of play. What matters is knowing what actually counts as illegal, and what happens next depends on where you're playing.
What Counts as an Illegal Move in Chess
A move is illegal when it breaks one of the game's core rules, not when it's just a poor choice. There are four situations that come up again and again.
Moving Into Check
This is the single most common illegal move among new players. You cannot make a move that leaves your own king under attack, even if the move looked perfectly normal otherwise. If your king is on e1 and moving your knight from d2 would expose it to a rook on the d-file, that knight move is illegal no matter how good it looks tactically. The same rule blocks you from moving your king itself into a square another piece attacks.
Moving a Pinned Piece Off the Pin
A pinned piece sits between your king and an enemy bishop, rook, or queen. If moving it would expose your king to check, the piece is frozen for anything except moves that stay on the same line of attack. Beginners often forget a pin exists a few moves after it was set up, then try to move the pinned piece somewhere unrelated. That's illegal for the same underlying reason as moving into check.
An Impossible Piece Path
Every piece has a fixed way it's allowed to travel. A bishop only moves diagonally, a rook only in straight lines, and neither can jump over an occupied square (only the knight can do that). Sliding a bishop in an L-shape, or a rook diagonally, is illegal because the piece doesn't move that way. Pawn moves cause the most confusion here, especially the special capture explained in our guide to en passant, which looks like an illegal move to almost every player the first time they see it.
Castling Through Check
Castling has its own list of conditions, and skipping one is an illegal move even if the king and rook look free to move. You cannot castle if the king is currently in check, if it would pass through an attacked square, or if it would land in check. The rook and king also can't have moved earlier in the game, and no pieces can sit between them. We cover every condition in our full castling rules guide, since castling produces more illegal-move disputes than almost any other rule.
Illegal Move vs. a Legal but Bad Move
New players mix these two up constantly, so it's worth separating them clearly. A legal but bad move is one the rules allow, even though it loses material, weakens your king, or hands your opponent a winning attack. Blundering your queen with a move that's otherwise completely legal is just a bad move. Nobody stops the clock, nobody corrects you, and the move stands. An illegal move is different in kind, not degree. It's a move the rules simply do not permit, regardless of whether it would have been good or bad strategically. You could make the best-looking move on the board and still have it be illegal if it leaves your king in check.
The fix is completely different too. A bad move is a lesson for your next game. An illegal move has to be taken back and replaced with a legal one before play continues, and how that correction happens depends on the setting.
How Casual Over the Board Games Handle It
In a friendly game with no clock and no arbiter, an illegal move is almost always handled the easy way. Whoever notices it (often the player who made it, a move or two later) simply takes the piece back and plays a legal move instead. There's no penalty and no argument, just a quick correction, and the game continues from where it left off. That's one of the nice things about casual chess: the shared assumption is a fair, accurate game, not a chance to win on a technicality.
Good etiquette still applies to a simple correction, though. Announce the mistake calmly rather than making a show of catching your opponent, and give them the same grace if the situation is reversed. Our guide to chess etiquette for beginners covers this kind of moment well.
How Sanctioned Tournaments Apply Penalties
Rated, arbiter-supervised events treat illegal moves more formally, because the clock and the result are on the line. Under the standard competition rules used by FIDE-sanctioned tournaments, the first illegal move a player makes in a game typically gets taken back and replaced with a legal one, often with a small addition of time to the opponent's clock to compensate for the disruption. A second illegal move by the same player in the same game usually ends the game outright as a loss, unless the position was already headed toward some other automatic result.
The arbiter enforces all of this. If a dispute comes up, either player can call the arbiter over, who rules based on the exact rulebook the event is using rather than either player's opinion. It's one reason serious tournament players drill basic rules until they're automatic: an illegal move under time pressure can cost real rating points, not just a moment of embarrassment.
How Online Chess Sites Prevent Illegal Moves
Play on chess.com, lichess, or any other modern platform, and the entire question mostly disappears. The interface will not let you complete an illegal move online. Try to drag your king into an attacked square and the piece snaps back to where it started, or the destination square never highlights as a legal option. The software checks every rule (check, pins, piece paths, castling conditions) before a move registers.
That's a genuine convenience, but it has a side effect worth knowing about. Because the software catches every mistake instantly, players who learn chess primarily online sometimes reach a fairly advanced level without ever fully internalizing why a move is illegal. They know the site won't allow it, but couldn't explain the rule to someone else. If you play mostly online, sitting down for the occasional over-the-board game (with a friend, at a club, or in a scholastic tournament) keeps that gap from catching you off guard. Reviewing the fundamentals in our guide on how to play chess and the complete rules for absolute beginners is a good way to shore that up.
A Quick Pre-Move Checklist to Avoid Illegal Moves
A short mental checklist before you let go of a piece will eliminate almost every illegal move a beginner tends to make.
- Is my king currently in check? If so, does this move actually get it out of check?
- Does this move leave my king exposed to a piece I hadn't noticed, especially a bishop, rook, or queen on an open line?
- Is the piece I'm moving pinned to my king, and if so, does this move stay on that same line?
- Does the piece's path match how it's actually allowed to move, with nothing occupying a square it needs to pass through?
- If I'm castling, has either the king or that rook moved before, is the king currently in check, and does the king pass through or land on an attacked square?
These five questions take a few seconds once they become habit. For a total beginner, illegal moves are common simply because none of this is automatic yet. Give it a month or two of regular play and the checklist starts running in the background, and illegal moves become rare.
Frequently Asked Questions
Is making an illegal move considered cheating?
No. An illegal move is almost always an honest mistake, not an attempt to gain an unfair advantage. Cheating involves things like outside help or manipulating the clock. Even tournament rules treat an illegal move as a correctable error the first time it happens, which reflects how ordinary a mistake it is.
Can I take back my own illegal move if my opponent doesn't notice?
In a casual game, yes, and most players want you to correct it as soon as you notice. In a rated tournament, the same principle applies: you're expected to point out your own illegal move rather than hope it slides by, since the rules exist to keep the result fair for both players.
What happens if both players miss an illegal move for several moves?
Standard competition rules generally require restoring the position to the point right before the illegal move happened and replaying from there, once the error is discovered, even if several moves have passed. In casual play, most people simply agree to continue from the current position instead, since there's no result or rating on the line.
Does moving into check ever have an exception?
No. Moving into check is illegal in every standard form of chess, with no exceptions for casual play, tournaments, or online platforms. It's one of the few rules that stays completely uniform across every serious variant of the game.
Why does chess.com or lichess sometimes seem to block a move that looks legal to me?
Almost always this means there's an attack on your king you haven't spotted yet, often from a piece further down the board than you were looking, or a pin you'd forgotten about. Check whether your king would end up in check and whether the piece you're moving is pinned before assuming the software has a bug. Those two situations account for most moves that look legal to a beginner but aren't.