Football Tools

Offside rule explained: a simple guide with a diagram

In short

A player is in an offside position when any part of the head, body or feet is in the opponents' half and nearer to the goal line than both the ball and the second-last opponent. Being there is not enough: the player must also get involved in play to be penalised, with an indirect free kick.

What is offside in football?

Offside is covered by Law 11 of the Laws of the Game, published by IFAB (the body that sets the rules of football worldwide). Two things must be kept apart: the offside position and the offside offence. Being in an offside position is never an offence in itself.

A player is in an offside position if, at the moment a teammate plays the ball, any part of the head, body or feet is in the opponents' half (the halfway line does not count) and nearer to the opponents' goal line than both the ball and the second-last opponent. Hands and arms are ignored, goalkeeper's included: the limit of the arm is the bottom of the armpit.

Halfway line Goal line Second-last opponent Goalkeeper Defender A B Ball B: offside position (nearer the goal)
Diagram: the blue team attacks to the right. When A passes, player B is nearer to the goal line than both the ball and the second-last opponent (the defender). B is in an offside position.

When is offside given?

A player in an offside position when a teammate plays or touches the ball is only penalised if they get involved in active play. Three cases are covered: they play or touch the ball, they interfere with an opponent (for example by blocking the view or challenging for the ball), or they gain an advantage from a ball that rebounded or was deflected (post, crossbar, opponent) or was deliberately saved by an opponent.

The referee restarts play with an indirect free kick, taken where the offence happened. An attacker who stands still, blocks nobody and does not touch the ball is not penalised.

The offside rule and the goalkeeper

For offside, the goalkeeper is an opponent like any other. The "second-last opponent" is therefore the second opposing player nearest to the goal line: usually the goalkeeper is the last opponent and a defender is the second-last. If the goalkeeper comes far out of the goal, the deepest defender may become the last opponent and another player the second-last. A player level with the second-last opponent, or level with the last two opponents, is not in an offside position.

When a goalkeeper throws or kicks the ball out, the position is judged at the moment of the last contact, that is, when the ball leaves the goalkeeper's hands or foot.

When offside never applies

Offside is judged at the moment of the pass, never at the moment of reception: a player can start from a legal position, run past the defence and receive the ball without any offence.

Why does the offside rule exist?

Without it, an attacker could wait next to the goalkeeper for the whole match, and play would no longer be contested over the whole pitch. Offside forces teams to move up together, time their runs and defend as a line. That is also why a defence sometimes steps up as one when a pass is played.

Common mistakes

What is new in 2026-27

According to IFAB's list of changes, the wording of Law 11 is not modified for the 2026-27 season. Competitions may use assistive technology (semi-automated offside): it helps to establish the position, but the rule is the same. For the video decision, see VAR in football. For other restarts, read the rules of football and the corner kick rule.

Sources and updates

Page checked on 24 November 2026. The official rules of your competition always prevail. Spotted a mistake? Tell us on the contact page.

Frequently asked questions

What is offside in football in one sentence?

A player is in an offside position when nearer to the opponents' goal line than both the ball and the second-last opponent as the ball is played to them; they are only penalised if they get involved in play.

Can you be offside from a throw-in?

No. A player who receives the ball directly from a throw-in, a corner kick or a goal kick cannot be penalised for offside.

Does the goalkeeper count for offside?

Yes, the goalkeeper is an opponent like any other. They are often the last opponent, which makes a defender the second-last.

What is the punishment for offside?

An indirect free kick to the opposing team, taken where the player in an offside position got involved in play.

Read next

More in “Football rules explained”

All guides: Football rules explained ›