When Is a Soccer Ball Out? The Whole Ball Must Cross
For a ball to leave the field across a boundary, all of it must pass beyond the touchline or goal line, on the ground or in the air. A ball partly over the line has not completely crossed it.

Watch the whole sphere
Do not judge only the patch touching the grass. Part of a round ball can remain above the line even when its ground contact is outside. The IFAB rule concerns the whole ball, not its center or the player’s feet.
The air does not create an exception
A ball that wholly crosses the boundary in flight is out even if it curves back onto the field without landing. Waiting for a bounce is not the test. This differs from sports where a player can retrieve a ball beyond a court line.
A rebound can remain live
A rebound from a goalpost, crossbar or corner flagpost does not automatically stop play if the ball stays on the field. Contact with a match official has specific exceptions, so do not treat every referee contact as a simple rebound.
Listen for a stoppage
The ball is also out of play when the referee stops play. The boundary test does not overrule the whistle. At an organized match, follow the officials’ decision and restart; a sideline viewing angle alone can be misleading.