Master all 17 Laws of the Game with visual examples, real match scenarios, and an interactive quiz. Free for beginners and football enthusiasts.
17 Laws CoveredInteractive QuizVisual ExamplesFree PDF GuideOpen Source
17Laws of the Game
90+Minutes per Match
11Players per Team
5Max Substitutions
250M+Players Worldwide
About This Interactive Guide
Everything you need to understand football rules — explained clearly, visually, and interactively.
Football (soccer) is governed by 17 Laws of the Game, set and maintained by the International Football Association Board (IFAB). These rules cover everything from the dimensions of the pitch to how the ball must be kicked at a penalty. While the rules themselves are written in formal legal language, this guide breaks them down into plain English with real match examples, visual diagrams, and scenario-based quizzes — making it the most beginner-friendly way to learn football rules interactively.
Whether you're a complete beginner trying to understand your first match, a player preparing for a referee exam, or a parent explaining the offside rule to a child, this resource has you covered. The open-source project on GitHub also lets you run code simulations to test edge-case rule scenarios.
Key Football Rules Explained with Examples
The most important rules visually broken down — click any card to explore the full scenario.
🚩
The Offside Rule
A player is offside if any part of their body (that can legally score) is beyond the second-last defender when the ball is played to them. Being offside is not itself a foul — it only becomes one if the player actively engages with play.
📋 Real exampleStriker A receives a pass with only the goalkeeper ahead — this is offside. But if a defender was level, it is not offside.
🟥
Red Card & Dismissal
A red card results in immediate dismissal and the player's team continues with ten players. Red cards are given for serious fouls, violent conduct, denying an obvious goal-scoring opportunity, and second yellow card offenses.
📋 Real exampleA goalkeeper brings down a striker through on goal outside the penalty area — this denies a goal-scoring opportunity and warrants a red card.
🟨
Yellow Card (Caution)
A yellow card is a formal caution. Two yellow cards in one match equals a red card and dismissal. Cautionable offenses include diving, time-wasting, persistent fouling, dissent, and unauthorized entry to the field.
📋 Real exampleA player goes down in the box without contact. The referee books them for simulation (diving), awarding a yellow card.
🥅
Penalty Kick
Awarded when a player commits a direct free kick offense inside their own penalty area. Taken from 11 meters, only the goalkeeper defends. All other players must be outside the area until the ball is kicked.
📋 Real exampleA defender handles the ball in their own penalty box, preventing the ball from going into the net — penalty and possible red card.
🤲
Throw-In
Awarded when the ball crosses a touchline. Both feet must stay on or behind the line. A goal cannot be scored directly from a throw-in.
📋 Real exampleA player lifts one foot during a throw-in. The referee awards a throw to the other team for an incorrect technique.
🔄
VAR (Video Review)
The Video Assistant Referee reviews four types of incidents: goals and offenses before them, penalty decisions, direct red card offenses, and mistaken identity.
📋 Real exampleA goal is scored but VAR detects an offside in the build-up. The goal is disallowed and play resumes with a free kick.
✋
Handball Rule
A handball offense occurs when a player deliberately handles the ball, or when the arm/hand makes the body unnaturally larger. Accidental handball that leads to a goal is also penalized since 2019.
📋 Real exampleA player scores after the ball deflects off their outstretched arm — under current IFAB rules, this is disallowed even if accidental.
⏱️
Added Time
The referee adds time at the end of each half to compensate for stoppages: injuries, substitutions, goal celebrations, VAR checks, and deliberate time-wasting.
📋 Real exampleThree substitutions, one VAR check, and two injuries add up to 8+ minutes of added time in the second half.
All 17 Laws of the Game
Football is governed by exactly 17 Laws, written and maintained by IFAB. Here is every law explained in plain language.
IFAB Laws of the Game — Plain Language Summary
#
Law Name
What It Covers
1
The Field of Play
Pitch dimensions, markings, goals, and surface requirements
2
The Ball
Size, weight, material, and pressure specifications for the match ball
3
The Players
Number of players (11 per team), goalkeeper rules, and player roles
4
The Players' Equipment
Compulsory kit, prohibited items, and equipment safety rules
5
The Referee
Authority, powers, and duties of the match referee
6
The Other Match Officials
Assistant referees, fourth official, and VAR roles and responsibilities
7
The Duration of the Match
Two 45-minute halves, added time, extra time, and abandonment rules
8
The Start and Restart of Play
Kick-off procedure, dropped ball, and restarting after stoppages
9
The Ball In and Out of Play
When the ball is in play vs. out of play — key for offsides and fouls
10
Determining the Outcome of a Match
Scoring a goal, own goals, away goals rule (abolished), penalty shoot-outs
11
Offside
Offside position, active involvement, and VAR offside checks
12
Fouls and Misconduct
Direct/indirect free kicks, yellow cards, red cards, and VAR reviews
13
Free Kicks
Direct and indirect free kick procedures, wall distance (9.15m), and quick restarts
Throw-in technique, position rules, and what happens on an improper throw
16
The Goal Kick
When and how a goal kick is taken; ball in play from inside penalty area
17
The Corner Kick
Procedure, positioning, and whether a goal can be scored directly
Test Your Knowledge — Interactive Quiz
Apply what you've learned with these scenario-based questions. 8 questions covering the key rules.
Frequently Asked Questions
The most common questions about football rules — answered clearly.
Can a goal be scored directly from a throw-in?
No. If the ball enters the opponent's goal directly from a throw-in, a goal kick is awarded. If it enters the thrower's own goal directly, a corner kick is awarded. A goal can only be scored after another player touches the ball first.
What happens when a player receives a red card?
The player must leave the field immediately and cannot return or be replaced — their team continues with ten players. A second yellow card in the same match also results in a red card.
Why is added time different in every match?
Added time compensates for stoppages including injuries, substitutions, goal celebrations, VAR reviews, and deliberate time-wasting. The fourth official calculates the minimum, but the referee may add more time for stoppages during added time itself.
What is the offside rule in football?
A player is in an offside position if any part of their body that can score (head, torso, legs — not hands/arms) is in the opponent's half AND closer to the goal line than both the ball and the second-last opponent when the ball is played. Being offside is not an offense unless the player then actively plays the ball, interferes with an opponent, or gains an advantage from that position.
What are the 17 Laws of the Game?
1) The Field of Play, 2) The Ball, 3) The Players, 4) The Players' Equipment, 5) The Referee, 6) The Other Match Officials, 7) The Duration of the Match, 8) The Start and Restart of Play, 9) The Ball In and Out of Play, 10) Determining the Outcome of a Match, 11) Offside, 12) Fouls and Misconduct, 13) Free Kicks, 14) The Penalty Kick, 15) The Throw-In, 16) The Goal Kick, and 17) The Corner Kick.
When is a penalty kick awarded?
A penalty kick is awarded when a direct free kick offense (kicking, tripping, pushing, holding, or handball) is committed inside a player's own penalty area. The kick is taken from the penalty spot 11 meters from goal.
How does VAR work in football?
VAR monitors footage from multiple camera angles and can advise the referee in four situations: goals (and offenses in the build-up), penalties, direct red cards, and mistaken identity. The final decision always rests with the on-field referee.
What constitutes a handball in modern football?
It is an offense to deliberately handle the ball; to have the ball touch a hand/arm that has made the body unnaturally bigger; or to score after the ball touches a player's own or teammate's hand/arm (even accidentally). It is not an offense if the ball touches a hand/arm close to the body in a natural position.
How many substitutions are allowed?
Up to 5 substitutions per team in most professional competitions, using a maximum of 3 substitution windows plus half-time. A 6th substitution is permitted if the match goes to extra time.
Learning Resources
Explore the full range of materials — from a downloadable PDF to open-source code simulations.