Sometimes the ball is found and still cannot be hit: under a bush, against a root, hard up to a wall. The rules let you get it out for a price.
It is your decision
You are the only person who can decide your ball is unplayable, and you can do it anywhere on the course except in a penalty area. Nobody has to agree, and you do not have to prove it.
It costs one stroke
Each of the three options costs one penalty stroke. Choose the one that leaves you the best next shot, which is often not the nearest.
Option one: stroke and distance
Go back and play from where you made your last stroke. It is always available, even when the ball has not been found.
Option two: back on the line
Keep the spot where the ball lies between you and the hole, and go straight back as far as you like. Drop on that line; the ball must stay within one club-length of where it first hit the ground.
Option three: two club-lengths to the side
Measure two club-lengths from where the ball lies and drop inside that area, no nearer the hole. Look before you lift: two club-lengths from the middle of a bush can still be bush.
In a bunker
If the ball is unplayable in a bunker, options two and three must be dropped in the bunker. There is one extra choice: go back on the line and drop outside the bunker, for two penalty strokes in all.
Look at all three first
The stroke is the same whichever you choose. The next shot is not. Walk to where each option would put you before you pick the ball up.
In the rule book: Rule 19.