Sports Rules

Was that offside?

The decision procedure, worked step by step, for soccer under IFAB Law 11 and hockey under NHL Rule 83. Same word, structurally opposite rules — and the parts that decide real calls are the parts most explanations skip.

IFAB · Law 11 — Offside

Offside

Offside: in an offside position and played or touched the ball.

How it got there

  1. 1.Restart

    Open play, so offside can apply.

  2. 2.Nearer the goal line than the ball?

    Yes, by 10.00m (measured at the foot).

  3. 3.Nearer the goal line than the second-last opponent?

    Yes, by 5.00m (measured at the foot).

  4. 4.Offside position

    In an offside position. This is NOT an offence on its own — it is a position, and about half of what gets shouted at referees stops being an argument here.

  5. 5.Involvement in active play

    decided it

    Involved: played or touched the ball. That converts the position into an offence.

Read before relaying this

  • Note

    Hands and arms never count for offside

    For every player including goalkeepers, only parts that could legally score are considered — head, body and feet — and the upper boundary of the arm is the bottom of the armpit. A shoulder in front can decide a call; an outstretched arm cannot.

  • Note

    Level is onside

    The test is NEARER to the goal line than the ball and than the second-last opponent. A player exactly level with either is onside, which is why the tightest calls come down to which side of a line a toe was on.

  • Read this

    The picture freezes when the ball is played, not when it is received

    Position is judged at the moment a team-mate plays or touches the ball. Where the attacker was when the ball ARRIVED is irrelevant, and running onto a ball from an onside position is exactly what the law permits.

  • Read this

    An offside position is not an offence

    A player can stand in an offside position all afternoon without committing anything. The offence requires involvement in active play — interfering with play, interfering with an opponent, or gaining an advantage — at the moment the ball is played.

  • Read this

    Applying the law is the easy half

    This computed a verdict from positions and judgements you supplied. In a real match the argument is almost never about the procedure — it is about where a shoulder was in the frame the ball was struck, and whether a touch was deliberate. Change those inputs and the answer changes with them.

Same word, opposite rules

What part of the player is measured

Soccer — IFAB Law 11
The foremost part that could legally score — head, body or feet. Hands and arms are excluded for everyone including goalkeepers, with the boundary at the bottom of the armpit.
Hockey — NHL Rule 83
Skates, and only skates. The stick is irrelevant, and so is the body — a player can lean well over the line and stay onside.

When the picture freezes

Soccer — IFAB Law 11
The moment a TEAM-MATE plays or touches the ball. Not when the ball is received.
Hockey — NHL Rule 83
The moment the PUCK crosses the leading edge of the blue line.

Is being in an offside position an offence?

Soccer — IFAB Law 11
No. It is only an offence with involvement in active play: interfering with play, interfering with an opponent, or gaining an advantage.
Hockey — NHL Rule 83
Effectively yes. Preceding the puck into the zone is itself the infraction.

What happens at exactly level, or on the line

Soccer — IFAB Law 11
Level with the ball or the second-last opponent is ONSIDE.
Hockey — NHL Rule 83
A skate on, or above, the leading edge has not broken the plane, so ONSIDE.

Does anything reset it

Soccer — IFAB Law 11
Yes. An opponent who DELIBERATELY plays the ball resets the situation; a deflection, a save, or a rebound off the post does not.
Hockey — NHL Rule 83
Yes, but differently: a delayed offside can be negated by tagging up — every attacker clearing the zone — and there the skate must contact the line.

Restarts it cannot happen from

Soccer — IFAB Law 11
Throw-in, goal kick, and corner kick. Absolute, whatever the positions.
Hockey — NHL Rule 83
Not applicable — offside is about zone entry, not about the restart type.

Worked examples

Built for agents too

Worth calling rather than reasoning about: the arm exclusion, the involvement test, and the hockey tag-up exception are all things that flip an answer and are all routinely missed. It returns three verdicts rather than two, because “in an offside position but no offence” is a real and common outcome.

curl 'https://sports-rules.gumballtools.com/api/v1/offside?sport=hockey&rearSkate=-4&skateOnIce=false&situation=tag-up'

API and MCP setup · llms.txt

Questions people actually ask

What actually counts as offside in soccer?

Two separate things, and conflating them causes most of the arguments. First, an offside POSITION: being in the opponents’ half and nearer to their goal line than both the ball and the second-last opponent, at the moment a team-mate plays the ball. Level with either is onside. Second, an offside OFFENCE, which only happens if the player in that position becomes involved in active play — by interfering with play, interfering with an opponent, or gaining an advantage. Being in an offside position is not, by itself, an offence at all.

Does an arm count for offside?

No, and this is the detail that decides a surprising number of tight calls. Only parts that could legally score are considered — head, body and feet — because a hand or arm in front cannot confer any advantage you are allowed to use. This applies to every player including goalkeepers. IFAB puts the upper boundary of the arm at the bottom of the armpit, so a shoulder ahead of the defender can put you offside while an outstretched arm cannot.

Can you be offside from a throw-in?

No. There is no offside offence direct from a throw-in, a goal kick, or a corner kick, regardless of where anyone was standing. This is absolute rather than a judgement call, and it is probably the most commonly forgotten line in the whole law.

Does a deflection off a defender reset offside?

No — and this is the distinction the argument usually turns on. A rebound or deflection off an opponent, the goalpost or the crossbar does not reset anything; a player who was in an offside position and then plays that ball has committed an offence. What DOES reset it is an opponent DELIBERATELY playing the ball, which counts as handing it over rather than as an accident the attacker profited from.

How do you tell a deliberate play from a deflection?

IFAB publishes five criteria: the ball travelled from distance and the player had a clear view of it; the ball was not moving quickly; its direction was not unexpected; the player had time to coordinate their body rather than stretching or jumping instinctively; and a ball on the ground is easier to play than one in the air. There is deliberately no pass mark — three out of five does not settle it. A save is never a deliberate play for this purpose.

What is offside in hockey?

The attacking team must not precede the puck into the attacking zone. Position is judged at the moment the puck crosses the leading edge of the blue line, and it is judged by the SKATES. The stick does not matter and neither does the body — a player can lean well over the line, or reach into the zone with their stick, and remain onside as long as their skates have not gone first.

Does a hockey player’s skate have to be on the ice to be onside?

Not since 2021, and this is the change most explanations still have wrong. The blue line is treated as a plane extending upward from its leading edge. If the skate has not broken that plane when the puck crosses, the player is onside — whether or not the blade is touching the ice. The change was made because offside reviews had turned into pixel-level arguments about whether a blade was a millimetre off the surface.

Does the in-air rule apply when tagging up?

No, and this exception catches almost everybody. When attacking players clear the zone to negate a DELAYED offside, the skate must contact the blue line. Being above the plane is not enough. So the identical skate position — four centimetres back, in the air — is onside on a zone entry and has not tagged up on a delayed offside. Two rules that sound like one.

Why are the soccer and hockey rules so different?

Because they are solving different problems with the same word. Soccer’s rule exists to stop goal-hanging, so it measures the part of you that could score and asks whether you actually did anything. Hockey’s exists to stop the puck being flipped ahead to a waiting attacker, so it measures where your feet were relative to a line at a single instant, and involvement is irrelevant. They differ on what is measured, when the picture freezes, and whether position alone is an offence.

Is this an official ruling?

No. This works through a published decision procedure from inputs you supply, and it cannot see the play. In a real call the procedure is the easy half — the argument is about where a shoulder was in the frame the ball was struck, or whether a touch was deliberate. Change those inputs and the answer changes with them. Match officials decide, and video review protocols and competition-specific variations are not modelled here. The rule texts belong to IFAB and the NHL and are not reproduced.

Not an official ruling and not a substitute for a match official. This works through published decision procedures from the inputs you supply; it cannot see the play, and the hard part of a real offside call is almost always judging the inputs rather than applying the rule. Refereeing judgement, video review protocols, and competition-specific variations are outside what this models. Rule texts belong to IFAB and the NHL and are not reproduced.