Soccer Offside Line Visual Aid

Understand offside decisions with a visual line tool

Enter the positions of the second-last defender, the attacker, and the ball to determine whether the attacker was in an offside position at the moment of the pass, with a visual line diagram and the reasoning behind the verdict.

What is an offside position under Law 11?

An attacker is in an offside position if, at the moment a teammate plays the ball, they are nearer to the opponents' goal line than both the ball and the second-last opponent. The second-last opponent is usually the last defender because the goalkeeper is normally the very last player.

The offside rule, made visual

Offside is the most argued-about rule in soccer, and most disputes come from misjudging a single instant: the moment the pass is played. This tool lets you place the attacker, the second-last defender, and the ball on a simplified pitch, then draws a line for each and tells you whether the attacker was in an offside position. Seeing the three lines side by side makes the rule click.

How it works

Under Law 11, an attacker is in an offside position when, at the moment a teammate plays the ball, they are nearer the opponents’ goal line than both:

1. the ball, and
2. the second-last opponent (usually the last defender)

Each position is entered as a distance in metres from the opponents’ goal line, so a smaller number means more advanced. The tool checks whether the attacker is strictly closer to that goal line than the defender and the ball, and whether the attacker is past the halfway line. If all conditions hold, the verdict is an offside position. Being exactly level with the defender or the ball keeps the player onside, which is why the visual uses strict comparisons.

Tips and a worked example

Suppose the attacker is 18 metres from the opponents’ goal, the second-last defender is 22 metres out, and the ball is 30 metres out. The attacker is closer to goal than both the defender and the ball and is in the attacking half, so the verdict is an offside position. Now nudge the defender to 18 metres so they are level with the attacker: the player is instantly onside, because level counts as onside. This is exactly the kind of fine margin VAR reviews. Remember the crucial limitation of any frozen image: offside is judged at the moment the pass is struck, not when the ball arrives. A striker can start level, sprint past the line after the ball is played, and be perfectly onside. The tool models the freeze-frame; the timing of the pass is what referees and VAR are really judging.