Bollinger %B Calculator

Technical indicators

Bollinger %B0.63
Band width13.80
Distance to upper band (%)2.70
Band positionInside the bands
How this was calculated
  1. The bands: upper at 192.40, lower at 178.60, a width of 13.80.
  2. Position: (187.35 - 178.60) / 13.80 = 0.63 - %B locates the close inside the band width.
  3. Distance check: the close stands 2.70% away from the upper band; a negative figure means price has crossed above the band.
  4. %B result: 0.63 - inside the bands.

Bollinger Bands draw an envelope around price; %B answers the question the envelope raises - where, exactly, inside that envelope did the close land? The formula is a pure rescaling: subtract the lower band from the price, divide by the band width. A close on the upper band reads 1.0, on the middle band 0.5, on the lower band 0.0, and the scale keeps counting past both edges when price escapes the envelope.

In the first worked example the close of 187.35 sits between a lower band of 178.60 and an upper band of 192.40 - a width of 13.80 - and %B reads 0.63. The close is in the upper half of its envelope but 2.70 percent of price still separates it from the upper band. That combination, strong but not extreme, is the reading %B exists to make precise.

This calculator takes the close and the two band values, returns %B, the band width and the percentage distance to the upper band, and flags closes that have left the envelope. Feed it the band values from any platform and the rescaling - the part that is actually %B - can be verified independently of how the bands themselves were built.

Worked examples

%B in the upper half of the bands

(187.35 · 192.4 · 178.6)

Bollinger %B0.63
Band width13.80
Distance to upper band (%)2.70
Band positionInside the bands

%B above the upper band

(52.1 · 51.4 · 47.9)

Bollinger %B1.20
Band width3.50
Distance to upper band (%)-1.34
Band positionAbove the upper band

%B in the lower quarter of the bands

(98.25 · 104.75 · 96.1)

Bollinger %B0.25
Band width8.65
Distance to upper band (%)6.62
Band positionInside the bands

Where the close sits in the bands

The bands themselves are conventionally a 20-period moving average plus and minus 2 standard deviations, but %B is deliberately agnostic about that construction: whatever envelope you feed it, it reports position within it. That separation matters because practitioners run many band variants - different periods, different multipliers, bands on median prices or on other indicators - and %B gives all of them a common positional language.

Position is not momentum and not value; it is location relative to the instrument's own recent dispersion. A %B of 0.63 in a quiet stock and the same 0.63 in a wild one describe the same geometric fact - the close sits at 0.63 of the distance from the lower to the upper edge - which is precisely why the measure travels across instruments better than raw price distances do.

%B readingPositionReading
Above 1.0Close above the upper bandEnvelope escaped upward
0.5 to 1.0Upper half of the envelopeStrong side, inside
0.0 to 0.5Lower half of the envelopeWeak side, inside
Below 0.0Close below the lower bandEnvelope escaped downward

Readings outside 0 and 1

Beginners often expect %B to be clamped like an oscillator; it is not, and the unclamped excursions are among its most informative states. The second worked example closes at 52.10 against an upper band of 51.40: %B reads 1.20, and the distance figure turns negative at -1.34 percent, reporting that the close stands above the band rather than below it. In Bollinger's own framework a close outside the band is a continuation signal by default - strength, not an automatic reversal - because bands built from standard deviations are expected to contain most, not all, closes.

The third example shows the quiet interior: a close of 98.25 in a band from 96.10 to 104.75 reads 0.25, low in the envelope but unremarkable, with 6.62 percent of headroom to the upper band. Most closes in most markets live in that unremarkable interior, and %B's contribution there is bookkeeping - it converts 'somewhere in the lower half' into a number that can be compared across days, instruments and band settings.

  • Enter the band values as your platform computes them; %B rescales position and does not rebuild the bands from prices.
  • A %B of exactly 0.5 means the close sits on the middle band - the moving average itself.
  • The distance-to-upper-band figure is signed: negative means the close is above the band, as in the 1.20 example.
  • Band width is printed because the same %B means different things in a narrow, coiled envelope and a wide, exhausted one.
  • Escapes cluster in trends; a first close outside the band after a squeeze is a recognised Bollinger continuation pattern, not an error state.

Worked examples

Example 1: Closing price 187.35; Upper band 192.4; Lower band 178.6. Bollinger %B = 0.63. Supporting values: Band width 13.80; Distance to upper band (%) 2.70; Band position Inside the bands. The bands: upper at 192.40, lower at 178.60, a width of 13.80. Position: (187.35 - 178.60) / 13.80 = 0.63 - %B locates the close inside the band width. Distance check: the close stands 2.70% away from the upper band; a negative figure means price has crossed above the band. %B result: 0.63 - inside the bands.

Example 2: Closing price 52.1; Upper band 51.4; Lower band 47.9. Bollinger %B = 1.20. Supporting values: Band width 3.50; Distance to upper band (%) -1.34; Band position Above the upper band. The bands: upper at 51.40, lower at 47.90, a width of 3.50. Position: (52.10 - 47.90) / 3.50 = 1.20 - %B locates the close inside the band width. Distance check: the close stands -1.34% away from the upper band; a negative figure means price has crossed above the band. %B result: 1.20 - above the upper band.

Example 3: Closing price 98.25; Upper band 104.75; Lower band 96.1. Bollinger %B = 0.25. Supporting values: Band width 8.65; Distance to upper band (%) 6.62; Band position Inside the bands. The bands: upper at 104.75, lower at 96.10, a width of 8.65. Position: (98.25 - 96.10) / 8.65 = 0.25 - %B locates the close inside the band width. Distance check: the close stands 6.62% away from the upper band; a negative figure means price has crossed above the band. %B result: 0.25 - inside the bands.

%B in W bottoms and M tops

Bollinger's pattern work is where %B earns its place. A W bottom, in his formulation, requires the second low to hold above the first in price while %B at the second low prints higher than at the first - the positional indicator refusing to confirm the price low. The M top mirrors it. Price alone cannot express that test, because two lows at similar prices can sit at very different positions within their envelopes as volatility changes between them.

That is the deep reason %B exists as a separate indicator rather than a chartist's eyeball: envelopes breathe. Volatility expands and contracts, bands migrate, and a close that touched the lower band last month may sit mid-envelope at the same price today. %B strips the breathing out and leaves the position, which is the quantity the pattern logic actually reasons about.

Construction note: %B inherits every choice made in the bands - period, multiplier, deviation type. Two platforms showing different %B for the same close are usually running different bands, not different %B arithmetic; reconcile the band values first.

Using %B in a workflow

A practical workflow treats %B as the state variable of a band system. Entries, exits and position sizes keyed to position - add only while %B is recovering through the lower half, refuse fresh longs above 1.0 until the envelope has been re-entered or re-based - become systematic rather than impressionistic. The indicator's bounded-ish scale makes such rules portable in a way price-distance rules never are.

For verification, the check on this page is the whole formula: price minus lower band, over width. If a platform's %B disagrees while its band values agree with yours, the disagreement is arithmetic and worth chasing; if the band values differ, the chase belongs upstream in the band construction.

Reading the three examples

The three examples map the scale. The first, 0.63, is strength with room: upper half, no escape, 2.70 percent still to travel before the envelope's edge. The second, 1.20, is the escape state - the close has left the envelope upward, and the question it poses is whether the trend is powerful enough to walk the band, as Bollinger's continuation reading suggests, or has overreached.

The third, 0.25, is weakness without drama: lower-quarter position, no escape downward, ample headroom above. Read together they make the scale's symmetry plain - %B treats the envelope as a ruler laid over price, and every close, dramatic or dull, gets its coordinate on the same ruler.

Volatility regime is the context that keeps %B honest over long spans. In a contracting market the bands narrow until the width figure shrinks toward the size of ordinary daily noise, and %B then swings wildly between its extremes on unremarkable closes - the positional equivalent of shouting in a quiet room. Bollinger's own remedy is to read %B together with the bandwidth: position tells you where the close sits, width tells you how much the sitting matters. A 0.63 inside a wide, mature envelope and a 0.63 inside a coiled one are different trading facts, and the width printed beside every result on this page is there so the two are never confused.

One last discipline: record the band settings beside any %B you publish or act on. A %B detached from its period and multiplier is a coordinate without a map - reproducible by no one, comparable to nothing - while the same figure with its construction noted can be verified on this page in seconds.

FAQs

What %B does the first example give?

0.63: the close of 187.35 sits at 0.63 of the 13.80-wide band measured from its lower edge at 178.60.

What does the breakout example read?

1.20 - the close of 52.10 sits above the upper band of 51.40, which is why its distance figure is negative at -1.34 percent.

What does the third example give?

0.25: a close of 98.25 in the lower quarter of a band running from 96.10 to 104.75.

How wide is the band in the first example?

13.80 points, from 178.60 to 192.40 - the denominator of the %B rescaling.

How far below the upper band is the first close, in percent?

2.70 percent of the closing price separates 187.35 from the upper band at 192.40.

How far above the upper band is the breakout close, in percent?

The distance figure reads -1.34 percent: the negative sign is the report that the close stands above the band, not below it.

Sources

Related calculators

Williams %R Calculator
Williams percent range from the highest high, lowest low and close of the lookback window: the momentum oscillator that reads the close against the range on a -100 to 0 scale.
Choppiness Index Calculator
The choppiness index from the summed true range, the period's highest high and lowest low: near 61.8 the market is chopping sideways, near 38.2 it is trending.
Aroon Indicator Calculator
Aroon-Up and Aroon-Down from the periods since the highest high and lowest low of the 25-period window, with the Aroon oscillator - Tushar Chande's trend-age gauge.