Rules and notation
No check and no move
Stalemate is a draw when the side to move has no legal move and is not in check. Count moves by every piece, not just the king.
Worked example
Position in text
Black to move. White: queen b6, king c6. Black: king a8.
FEN: k7/8/1QK5/8/8/8/8/8 b - - 0 1
Black’s king on a8 is not attacked. The queen on b6 covers a7, b7 and b8, so the king cannot move. Black has no other piece, which makes this stalemate even though White has an extra queen.
A plausible mistake
Do not award the better side a win for trapping the king. Without check there is no checkmate, and even one legal pawn push removes stalemate.
Try it yourself
Position in text
Black to move. White: queen b6, king c6. Black: king a8, pawn h6.
FEN: k7/8/1QK4p/8/8/8/8/8 b - - 0 1
The second diagram keeps both kings and the queen fixed but adds a black pawn on h6. Is it still a draw by stalemate?
Check your answer
No. The king still cannot move, but Black can play h5. Stalemate depends on the absence of legal moves by the whole side.