An inning in baseball or softball consists of two halves, where a single half is sometimes called a frame. In each half, one team bats until three outs are made, with the other team playing defense. Each half-inning formally starts when the umpire calls "Play". A full inning consists of six outs, three for each team; and a regulation game consists of nine innings. The visiting team always bats first in each inning, and the visitors' turn at bat is called the top of the inning, derived from the position of the visiting team at the top line of a baseball line score. The home team's half of an inning is also called the bottom of the inning, and the break between halves of an inning is called the middle of the inning. If the home team is leading in the middle of the ninth inning, or scores to take the lead in the bottom of the ninth inning, the game immediately ends in a home victory.
If the score is tied after nine innings, the game goes into extra innings until an inning ends with one team ahead of the other. In Japanese baseball, however, games end if tied after 12 innings (or, in postseason play in Nippon Professional Baseball, 15 innings). As in the case of the ninth inning, a home team which scores to take a lead in any extra inning automatically wins, and the inning (and the game) is considered complete at that moment regardless of the number of outs. This is commonly referred to as a "walk-off" situation, since the last play results in the teams walking off the field because the game is over. However, road teams can't earn a "walk-off" victory by scoring the go-ahead run in extra innings, unlike in American football and ice hockey where the team (either home or away) scoring first in overtime automatically wins.
Ending a half-inning is referred to as "retiring the side". A half-inning in which all batters are put out without taking a base is referred to as a "one-two-three inning". The number of innings a pitcher is in a game is measured by the innings pitched statistic.
In US English, baseball terminology is sometimes found in non-sports usage in a tense situation: "it's the bottom of the ninth [inning]" (sometimes adding, "with two outs"), meaning "there isn't much time to turn things around here".
Professional baseball games (both major and minor leagues) as well as college baseball games last nine innings. High school games and College softball last seven innings and Little League uses six inning games.