Rule explained
Overthrows out of play
In one line
A throw that goes out of play gives every runner two bases. On the first play by an infielder, they're counted from the time of the pitch; otherwise from the time of the throw.
Exception on the first infield play: if every runner, including the batter, had already advanced at least one base when the throw was made, the two bases count from the time of the throw.
A pitch that goes out of play from the rubber is only one base.
Many junior and local rules award one base instead of two. Check your league.
Quick answers
How many bases on an overthrow into the dugout?
Two bases under standard rules. Some junior leagues award one.
Situations this rule decides
Plain-English summary. Check the Official Baseball Rules and your league's rules for the exact wording.