In baseball, an at bat (AB) or time at bat is a batter's turn batting against a pitcher. An at bat is different from a plate appearance. A batter is credited with a plate appearance regardless of what happens upon completion of their turn at bat, but a batter is charged with an at bat only if that plate appearance does not have one of the results enumerated below. While at bats are used to calculate certain statistics, including batting average and slugging percentage, a player can qualify for the season-ending rankings in these categories only if they accumulate 502 plate appearances during the season.
Batters will not be charged an at bat if their plate appearances end under the following circumstances:
In addition, if the inning ends during at bat (due to the third out being made by a runner caught stealing, for example), no at bat or plate appearance will result because neither were completed.
An at bat is a specific type of plate appearance in which the batter stands at the plate intending to put the ball in play and get on base. This is why at bats, and not plate appearances, are used to calculate batting average, as plate appearances in general can result in many outcomes that do not necessarily involve putting the ball in play, and batting average specifically measures a batter's contact hitting.
Rule 9.02(a)(1) of the official rules of Major League Baseball defines an at bat as: "Number of times batted, except that no time at bat shall be charged when a player: (A) hits a sacrifice bunt or sacrifice fly; (B) is awarded first base on four called balls; (C) is hit by a pitched ball; or (D) is awarded first base because of interference or obstruction[.]"