A striker stands beyond the last defender, the flag goes up, and the crowd groans. Yet the law the referee applies says something less dramatic: it is not an offence to be in an offside position. That one sentence explains most of the arguments fans have about offside. Position is a fact about where a player stands. An offence is a judgement about what he does next, and at what moment. Below, the two ideas are pulled apart: the body-part test, the three forms of involvement that turn a position into a punishable act, and the situations where offside cannot be given at all.
Position is geometry, not guilt
The definition first. A player is in an offside position if any part of the head, body or feet is in the opponents' half, excluding the halfway line, and nearer to the opponents' goal line than both the ball and the second-last opponent. Three reference points do the work: the half, the ball and the second-last defender. The attacker has to be ahead of all three to qualify.
Now the contrast that clears up the common misconception. Two attackers stand in identical offside positions while a team-mate shoots from distance. One drifts clear and watches. The other sprints at the goalkeeper. Their positions match, yet only the second can be penalised. The law states that being in an offside position is not an offence, so a flag for position alone misreads it.
Which body parts count, and which do not
Any part of the head, body or feet can place a player offside. A boot toe a few centimetres past the second-last opponent is enough, which is why tight calls turn on tiny margins. It helps to picture a line across the pitch at the second-last opponent or the ball, whichever is nearer the goal line, and ask whether anything countable crosses it.

Hands and arms sit outside the test. The hands and arms of all players, including goalkeepers, are not considered, and the upper boundary of the arm is in line with the bottom of the armpit. Imagine a forward leaning in with an outstretched arm past the defender while his shoulder and feet stay level. The arm changes nothing. Only the parts the law counts decide the position.
The moment of the pass and active play
Timing comes next. The question is asked when the ball is played or touched by a team-mate. A player in an offside position at that instant is penalised only on becoming involved in active play. The law names three routes: interfering with play, interfering with an opponent, or gaining an advantage. Merely standing there is not among them.
Take a short scenario. A midfielder plays a through ball while a forward is beyond the second-last defender. If the forward lets it run to an onside team-mate, and neither touches the ball, blocks a defender nor benefits from a rebound, he has not become involved. If he plays the ball, interferes with an opponent or profits from a loose ball, the position turns into an offence. The position was the same in both versions. Only the involvement differed.
Exceptions and the restart that follows
Some restarts remove the offence entirely. There is no offside offence if a player receives the ball directly from a goal kick, a throw-in or a corner kick. A forward waiting beyond the last defender when a throw-in is taken may receive it freely. Set that beside the same forward collecting a pass in open play from a team-mate: the first is always allowed, the second is tested.
Deliberate play by an opponent is another exception. A player in an offside position who receives the ball from an opponent who deliberately played it is not considered to have gained an advantage, unless it was a deliberate save by any opponent. When an offence does occur, the referee awards an indirect free kick where it happened, including in the player's own half. The restart goes to the spot of the offence, not the spot of the pass.
A raised flag is a claim about position; the referee's decision is a claim about involvement. To judge a call, ask in order: at the moment of the pass, were the player's head, body or feet beyond both the ball and the second-last opponent? Did the ball come straight from a goal kick, throw-in or corner? Did he then interfere with play, interfere with an opponent or gain an advantage? Only a yes on involvement, with no exception in play, produces the indirect free kick. Check the current Laws of the Game edition before quoting any wording.
