New: Yardage + Rules Cards. Your carry for every club and four rulings, on your bag. See the cards
Rule 18.2

Out of bounds — the penalty that hurts — and the local rule that saves you

A ball is out of bounds only when all of it is at rest outside the boundary edge of the course. It costs stroke and distance, or a two-stroke drop under Local Rule E-5 when the course uses it.

What counts as out of bounds?

A ball is out of bounds when all of it comes to rest beyond the boundary — white stakes, a fence, or a line painted on the ground. One millimeter inside counts as in bounds.

Out-of-bounds is marked by white stakes or lines (penalty areas use red or yellow, so the color tells you immediately what you're dealing with). The boundary line itself is out of bounds, and a ball resting against a stake on the course side is still in bounds.

The penalty: stroke and distance

Under Rule 18.2, an out-of-bounds ball costs you stroke and distance: go back to where you played the shot, add one penalty stroke, and play again. That's why a sliced drive OB means you're hitting your third shot from the tee.

Local Rule E-5 (casual play)

Some courses adopt Model Local Rule E-5 for pace of play. Instead of going back, for two penalty strokes you drop in the area between two lines from the hole. One line runs through where the ball is estimated to have come to rest or gone out of bounds, plus two club-lengths outside it. The other runs through the nearest point of fairway that is not nearer the hole, plus two club-lengths on the fairway side. The drop must be in the general area and not nearer the hole than where the ball came to rest or went out. E-5 can't be used if the original ball is known or virtually certain to be in a penalty area, or once you've played a provisional. Check the scorecard or local rules before your round.

Play a provisional ball first

A smart move: if your ball might be OB or lost outside a penalty area, play a provisional ball before you go looking (Rule 18.3). It's free to hit. If the original is found within the three-minute search, abandon the provisional and keep playing, unless you've already played the provisional from nearer the hole than where the original was thought to be. If not, the provisional becomes your ball in play.

Out of bounds vs penalty area vs lost

SituationPenaltyRelief
Ball out of boundsStroke and distance (+1)Replay from previous spot, or Local Rule E-5 fairway drop (+2 total)
Ball in penalty area+1Stroke and distance, back-on-the-line, or lateral (red only), each +1
Ball lost (not OB)Stroke and distance (+1)Replay from previous spot, or E-5 if in effect

Related rules

Out of bounds pairs with the 3-minute search rule and provisional balls. For drops and penalties at a glance, grab the free cheat sheet or Save Strokes.

Get Save Strokes → Free cheat sheet

Quick answers

What is the penalty for hitting a golf ball out of bounds?
Stroke and distance: replay from where you last played, adding one penalty stroke (Rule 18.2). If the course uses Local Rule E-5, you may instead drop in a relief area toward the fairway for two penalty strokes total.
Are white stakes out of bounds in golf?
Yes. White stakes (or white lines) mark out of bounds. Red stakes mark red penalty areas (stroke and distance, back-on-the-line or lateral relief). Yellow stakes mark yellow penalty areas (stroke and distance or back-on-the-line only).
What is Local Rule E-5 in golf?
It's an optional pace-of-play Local Rule for casual play. Instead of stroke and distance for a lost or OB ball, you drop for two penalty strokes in a relief area that runs from where the ball was lost or went out to the nearest point of fairway not nearer the hole, plus two club-lengths on each side. The drop must be in the general area and no nearer the hole than where the ball was lost or went out. It can't be used if the ball is known or virtually certain to be in a penalty area, or once you've played a provisional.
Is a ball on the line out of bounds?
The boundary line itself is out of bounds. A ball is in bounds if any part of it lies on or touches the ground inside the boundary edge, or is above the boundary edge or any other part of the course.
What's the difference between Rule 18.2a and Rule 18.2b?
Rule 18.2a defines when a ball is lost (18.2a(1): not found within three minutes of starting your search) and when it is out of bounds (18.2a(2)). Rule 18.2b says what to do in either case: stroke and distance.