Work an offside call through IFAB Law 11 or NHL Rule 83
offsideWork an offside call through the published decision procedure — association football under IFAB Law 11, or ice hockey under NHL Rule 83 — and return every step, not just the verdict.
Use this for any "was that offside" question in either sport. The two rules are structurally OPPOSITE and are routinely conflated, and there are four specific things that get answered wrong:
SOCCER:
HANDS AND ARMS DO NOT COUNT, for anyone including goalkeepers. Only parts that could legally score are measured, and the boundary is the bottom of the armpit. This tool REFUSES to compute from an arm position rather than guessing where the shoulder was.
AN OFFSIDE POSITION IS NOT AN OFFENCE. It becomes one only with involvement in active play. Do not report "he was offside" when the answer is that he was in an offside position and uninvolved.
involvementis REQUIRED once the geometry makes it decisive — the tool errors rather than assuming, so ask the user what the player actually did, and pass "none" if the answer is nothing.No offside offence direct from a throw-in, goal kick, or corner. Absolute.
A DELIBERATE play by an opponent resets it; a deflection or a save does NOT. This is the distinction most arguments turn on.
HOCKEY: 5. SKATES decide it. Not the stick, not the body. 6. Since 2021 a skate in the AIR above the blue line is still onside — the line is a plane, and ice contact is irrelevant. BUT this does not apply to tagging up on a delayed offside, where the skate must contact the line. Do not generalise the 2021 change to tag-ups.
Input for soccer: positions along the attacking axis in metres, larger being nearer the opponents’ goal line — attacker, ball, secondLastDefender. Any consistent scale works; only the order matters. Optionally restart, foremostPart, inOwnHalf, involvement, lastTouch.
Input for hockey: rearSkate in centimetres relative to the LEADING EDGE of the blue line, negative being the neutral-zone side. Optionally skateOnIce, situation (zone-entry or tag-up), and stick.
Returns: a verdict of offside, onside, or no-offside-offence — three outcomes, not two, because "in an offside position but no offence" is a real and common answer — plus every step with the decisive one flagged, warnings, and a disclaimer.
THIS IS NOT AN OFFICIAL RULING. Relay the steps, not just the verdict: in a real call the procedure is the easy half and the inputs are the argument. Do not quote IFAB or NHL rule text; it is copyrighted and this tool does not reproduce it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ball | No | SOCCER. Position of the ball, same scale. | |
| sport | Yes | Which rule book. The two are structurally opposite — do not mix them up. | |
| stick | No | HOCKEY. Ignored, and reported as ignored. Skates decide it. | |
| restart | No | SOCCER. There is NO offside offence direct from a throw-in, goal kick, or corner. Always ask which restart it was before answering. | |
| attacker | No | SOCCER. Position of the attacker along the attacking axis, larger being nearer the opponents’ goal line. Any consistent scale; only the order matters. | |
| inOwnHalf | No | SOCCER. A player in their own half cannot be in an offside position. | |
| lastTouch | No | SOCCER. A DELIBERATE play by an opponent resets offside. A deflection, a save, or a rebound off the frame does NOT. | |
| rearSkate | No | HOCKEY. The trailing skate in centimetres relative to the LEADING EDGE of the blue line — the edge nearer the attacking zone. Negative is the neutral-zone side; positive means it has broken the plane. | |
| situation | No | HOCKEY. zone-entry (default), or tag-up for clearing a delayed offside. The same skate position can give opposite answers. | |
| skateOnIce | No | HOCKEY. Since 2021 this does NOT affect a zone entry — a skate above the plane is onside. It is decisive when tagging up, where the skate must contact the line. | |
| involvement | No | SOCCER. REQUIRED once the player is in an offside position — the call errors without it rather than assuming. An offside POSITION is not an offence; this is what turns it into one, and "none" is a common and correct answer meaning play continues. | |
| foremostPart | No | SOCCER. Which part the attacker position describes. Passing an arm or hand is REFUSED with an explanation: only parts that could legally score count, and the boundary is the bottom of the armpit. | |
| secondLastDefender | No | SOCCER. Position of the SECOND-last opponent, same scale. Usually the last outfield defender, since the goalkeeper is normally the last. | |
| deliberatePlayCriteriaMet | No | SOCCER. Which of IFAB’s five deliberate-play criteria are met. Reported, not scored — there is no pass mark. |