runs batted in or rbi is a statistic used in baseball and softball to credit a batter when the outcome of his at bat results in a run being scored, except in certain situations such as when an error is made on the play.