Check if you are offside
Drag yourself, the ball and the defenders, or type each distance from the goal line. You see the offside line, the call and the part of Law 11 behind it, for a pass, a free kick, a throw-in, a corner or a goal kick.
You attack up the page. Drag any dot, or tap one and use the arrow keys. A gold ring marks the second-last opponent.
Offside
You stand 1.1 yd past the offside line when your team-mate passes, then you play the ball. The defenders get an indirect free kick where you joined in.
Law 11.2 and 11.4. Offside line: 16.4 yd from the goal line, set by defender 1.
Load a scene:
Your scene stays in your browser. The share link keeps it after the # sign, the part of the address that never reaches a server.
Time your run with Coach Diego
In Soccermaxxing, ask Coach Diego how to hold your run on the last defender and when to go. You get an answer for the spot you play: center back, midfield or striker.
Read your call
The big word gives the call. Offside in red means you stood past the offside line when your team-mate played the ball and then joined in, so the defenders get an indirect free kick. Onside in green means your position was legal. Offside position, no offence or No offence in gold means you stood past the line but did nothing the law punishes, or the ball reached you from a restart that cannot be offside.
The dashed line on the pitch is the offside line: the nearer of the ball and the second-last opponent to the goal line, and never past the halfway line. The red band between that line and the goal line is where you cannot stand when the ball is played. A gold ring marks the second-last opponent. With the goalkeeper in goal, that is the deepest defender.
Here is the scene that loads first. The goalkeeper stands 3 m (3.3 yd) off the goal line and defender 1 stands at 15 m (16.4 yd), so defender 1 is the second-last opponent. Your team-mate passes from 32 m out and you stand at 14 m (15.3 yd), 1 m (1.1 yd) nearer the goal line than defender 1. You then play the ball, so the call is offside. Drag yourself back to 15 m and you stand level with defender 1, and level is onside.
Run the two tests in Law 11
The first test asks where you stand at the moment your team-mate plays or touches the ball. Law 11 puts you in an offside position when any part of your head, body or feet is in the opponents' half and nearer to their goal line than both the ball and the second-last opponent. The halfway line itself does not count as their half. Hands and arms never count for anyone, goalkeepers included, and the arm ends at the bottom of the armpit, so a shoulder ahead of the defender can still put you offside. The referee judges the first point of contact of the pass, the moment the boot meets the ball.
The second test asks what you do next, because standing in an offside position is no offence. You commit one only when you join active play: you play or touch the ball, you block an opponent's view of it, you challenge an opponent for it, or you play a ball that bounced back to you off the post, the crossbar, a match official or an opponent, or that an opponent saved. A ball a defender plays on purpose resets the call, even a sliced clearance, unless the defender was making a save.
The checker runs both tests in that order. It reads each player at the part nearest the goal line, so place a dot where the leading foot, knee or shoulder sits. Sideways position never changes the call, which is why the line runs straight across the field. The other seven opponents stand farther up the field and never move the line, so the tool shows only the goalkeeper and three defenders.
Know the three restarts with no offside
Law 11.3 gives you a free pass on three restarts: you cannot be offside when you receive the ball straight from a goal kick, a throw-in or a corner kick. A free kick gets no such pass, so a quick free kick played to you past the second-last defender is offside when you play it. Pick the restart above the pitch and the checker applies the exception.
Two more lines in Law 11.4 settle the odd cases. A defender who steps off the field without the referee's permission still counts as standing on the goal line or touchline until the next stoppage, or until his team plays the ball toward the halfway line and out of its penalty area, so he cannot put you offside by walking off. When the referee does give offside, the defending team takes an indirect free kick where you became involved, even when that spot sits in your own half.
Avoid the calls fans get wrong
Check these five before you shout at the assistant referee. Level is onside. The moment of the pass decides the call, so where you stand when you receive the ball does not matter. The goalkeeper does not set the line by default: count the second-last opponent, whoever it is, and when the keeper rushes out, a single defender between you and the goal line does not keep you onside. Behind the ball you are always onside, which is why a cut-back from the byline beats a whole back line. Arms never count, and shoulders do.
Referees miss calls too. In a study of all 64 matches at the 2002 World Cup, assistant referees got 26.2% of 337 offside decisions wrong, rising to 38.5% in the first 15 minutes, and 86.6% of the mistakes were flags raised against a player who was onside (Helsen, Gilis and Weston, 2006). The authors point to the flash-lag effect: your brain places a moving player ahead of where he really is when the ball is played. At the 2022 World Cup, FIFA's semi-automated offside technology tracked up to 29 points on each player 50 times a second with 12 roof cameras, while a sensor in the ball sent data 500 times a second (FIFA, 2022).
Time your run like a striker
Strikers beat the line with timing more than speed. Start level with the second-last defender, watch the passer's head and plant foot, and leave on the strike of the ball, never before it. Bend your run along the line instead of straight at goal, so you stay level for longer while you build speed. Then load the cut-back and keeper scenes above: the first looks offside from the stands and is onside, the second looks onside and is offside. For the jobs each position does around that line, read the soccer positions guide, and check where the halfway line and the penalty area sit on your own field with the soccer field dimensions tool.
Answers to common offside questions
Is it offside if you are level with the last defender?
No. Law 11 says you are not in an offside position when you stand level with the second-last opponent or the last two opponents. Level is onside.
Can you be offside from a throw-in?
No. Law 11.3 rules out an offside offence when you receive the ball directly from a throw-in, a goal kick or a corner kick. A free kick gets no such exception.
Can you be offside in your own half?
No. Part of your head, body or feet has to be in the opponents' half when the ball is played, and the halfway line itself does not count as their half. Stand in your own half at the pass and you are onside, however far the defenders have pushed up.
Do arms count for offside?
No. The hands and arms of every player, goalkeepers included, never count. The arm starts at the bottom of the armpit, so a shoulder ahead of the defender can still put you offside.
Is it offside if the ball comes off a defender?
It depends on how. A ball that deflects or rebounds off a defender, or that the goalkeeper saves, still puts you offside when you play it. A ball a defender deliberately plays, even a bad clearance, resets the call and you are free to play it.
Sources
IFAB, Laws of the Game 2026/27, Law 11: Offside for every call the checker makes. IFAB, Laws of the Game 2026/27, Law 1: The Field of Play for the halfway line and the 105 by 68 m field it draws. Helsen, Gilis and Weston, 2006, Errors in judging offside in association football, Journal of Sports Sciences for the 2002 World Cup error rates. FIFA, 2022, Semi-automated offside technology to be used at FIFA World Cup 2022 for the tracking numbers. NIST SP 811, appendix B.9 for 1 yd = 0.9144 m. Read on November 21, 2026.