## On Base Percentage Calculator

An On-Base Percentage (OBP) Calculator is a tool used to determine a baseball player’s ability to reach base safely. It calculates the percentage of plate appearances that result in the player reaching base.

### Formula

The formula for calculating OBP is: OBP = (Hits + Walks + Hit by Pitch) / (At-Bats + Walks + Hit by Pitch + Sacrifice Flies).

### Example

For example, if a player has 80 hits, 40 walks, and 10 hit by pitches in 300 at-bats, with 10 sacrifice flies, their OBP would be: OBP = (80 + 40 + 10) / (300 + 40 + 10 + 10) = 130 / 360 = 0.361.

Therefore, the player’s OBP would be 0.361, indicating they reach base safely in approximately 36.1% of their plate appearances. OBP is a key statistic in evaluating a player’s ability to get on base.