Skip to content

How-to guide

How to Calculate On-Base Percentage (OBP): Formula, Steps & Examples

Learn how to calculate On-Base Percentage (OBP) — the formula explained step by step, with worked examples and a free calculator to check your answer.

By Vikram Iyer, M.Sc Mathematics · Updated Jun 2026 · 2 min read

Calculating your on-base percentage is straightforward once you know the On-Base Percentage (OBP) formula and what each input means. This guide explains the method in plain language, walks through a manual calculation, and gives worked examples you can follow — then you can do it instantly with the On-Base Percentage (OBP) Calculator.

What is On-Base Percentage (OBP)?

The On-Base Percentage (OBP) calculation tells you your on-base percentage from a few simple inputs. The figure you are solving for here is the on-base percentage.

The On-Base Percentage (OBP) formula

The core formula is:

On-base percentage = (Hits + Walks (BB) + Hit by pitch) ÷ (At bats + Walks (BB) + Hit by pitch + Sacrifice flies)

Here is what each input means:

  • Hits — a number. Example: 50.
  • Walks (BB) — a number. Example: 20.
  • Hit by pitch — a number. Example: 5.
  • At bats — a number. Example: 180.
  • Sacrifice flies — a number. Example: 5.

How to calculate it step by step

  • Write down the hits (for example, 50).
  • Write down the walks (bb) (for example, 20).
  • Write down the hit by pitch (for example, 5).
  • Write down the at bats (for example, 180).
  • Write down the sacrifice flies (for example, 5).
  • Apply the formula above to get your on-base percentage.
  • Double-check the result with the On-Base Percentage (OBP) Calculator.

Worked examples

Example 1

Input / OutputValue
Hits50
Walks (BB)20
Hit by pitch5
At bats180
Sacrifice flies5
On-base percentage0.357

With hits of 50, walks (bb) of 20, hit by pitch of 5 and at bats of 180, the on-base percentage works out to 0.357.

Example 2

With hits of 100, walks (bb) of 20, hit by pitch of 5 and at bats of 180, the on-base percentage works out to 0.595.

ResultValue
On-base percentage0.595

Example 3

With hits of 25, walks (bb) of 20, hit by pitch of 5 and at bats of 180, the on-base percentage works out to 0.238.

ResultValue
On-base percentage0.238

Tips for an accurate result

  • Keep your units consistent — mixing, say, months with years or grams with kilograms is the most common source of error.
  • Round only at the very end. Rounding inputs early can shift the final answer noticeably.
  • Re-run the numbers whenever an input changes, rather than estimating from an old result.

Prefer not to do the maths by hand? — the On-Base Percentage (OBP) Calculator does it instantly, for free, with the formula and a worked example built in.

Continue exploring sports calculators with these tools: Running Cadence Calculator, Swimming Laps Distance Calculator, Cricket Batting Average Calculator, Bowling Economy Rate Calculator, Cricket Strike Rate Calculator.

Calculators in this guide

Frequently asked questions

The formula is: On-base percentage = (Hits + Walks (BB) + Hit by pitch) ÷ (At bats + Walks (BB) + Hit by pitch + Sacrifice flies). With hits of 50, walks (bb) of 20, hit by pitch of 5 and at bats of 180, the on-base percentage works out to 0.357.

Gather each input, apply the formula step by step keeping your units consistent, and round only at the end. You can verify your answer instantly with the On-Base Percentage (OBP) Calculator.

It uses the standard formula with exact arithmetic, so the result is correct for the inputs you enter. Bear in mind that real-world outcomes can still differ when underlying assumptions change.

Vikram Iyer · M.Sc Mathematics

Vikram Iyer is a mathematics educator with over fifteen years of teaching experience, specialising in making quantitative concepts clear and practical for everyday use.