i What this calculator does

Quick answer: Calculate Bollinger Bands from a series of closing prices: the middle band, the upper and lower bands and where the last close sits between them. With the default inputs (20 hypothetical USD/ZAR closes, period 20, multiplier 2), it returns middle band (SMA) of 18.1555.

This calculator works out the Bollinger Bands from the closing prices you paste in: it takes the simple average of the last closes as the middle band and adds and subtracts a multiple of their standard deviation, giving you the price levels marking statistically extended moves.

Paste your closing prices, choose the period (20 is standard) and the multiplier (usually 2), and the calculator returns the middle, upper and lower bands and where the last close sits between them (%B).

🧮
Bollinger Bands Calculator
Enter your MA and standard deviation below

This calculator is for educational purposes only. Not financial advice.

↗ Calculation Result
Calculation Breakdown
Full transparency on how this result was calculated.
Lower band, moving average, and upper band

How to use the Bollinger Bands Calculator

Paste closing prices from your platform, oldest first, separated by commas. The calculator uses the most recent closes up to the period you set, so a longer list is fine. The defaults are 20 hypothetical USD/ZAR closes, a period of 20 and a multiplier of 2, the standard settings.

  1. Closing prices, oldest first
  2. Period (number of closes)
  3. Multiplier

The result panel reports the middle band, the upper and lower bands, and %B, which shows where the last close sits: 0% at the lower band, 100% at the upper band.

How to read the result

%B is the figure to read first. Near 100% the last close is at the top of its recent range relative to volatility; above 100% it has moved further than usual. That describes the past, not the next move: in a strong trend price can ride the upper band for weeks.

Band width shows volatility on its own: narrow bands mean quiet trading, which often comes before a larger move in either direction. An indicator is a transformation of price, so a second indicator agreeing with this one is weaker evidence than it looks.

A worked example in rand

Hypothetical example. Twenty USD/ZAR closes between 18.02 and 18.30, ending at 18.22, average 18.1555 with a standard deviation of 0.0765. With a multiplier of 2 the upper band is 18.1555 + 2 × 0.0765 = 18.3084 and the lower band 18.0026, a width of about 1.7% of the average. The last close of 18.22 gives %B of 71.1%: inside the bands, in their upper half.

With a multiplier of 3 the bands widen to 17.9261 and 18.3849, and the same close sits at %B 64.1%. With a period of 10, the average of the last ten closes is 18.2040 and the bands narrow to 18.0774 and 18.3306, because the most recent closes are less spread out.

Common results

What the calculator returns as the multiplier changes, with every other input at its default (20 hypothetical USD/ZAR closes, period 20).

MultiplierUpper BandLower Band%B of the last close
118.232018.079092.2%
1.518.270218.040878.1%
218.308418.002671.1%
2.518.346617.964466.9%
318.384917.926164.1%
Upper band by multiplier
Upper band by multiplier

⬇ Download this chart (PNG) · Free to reuse with the credit “Source: TradeAnswers, Bollinger Bands Calculator” (CC BY 4.0).

How the calculation works

The calculator takes three inputs: Closing prices, Period and Multiplier. The middle band is the simple average of the last closes up to the period; the standard deviation is the population standard deviation of those closes.

The upper band is SMA + (Multiplier × SD) = 18.1555 + (2.0 × 0.0765) = 18.3084, and the lower band is SMA − (Multiplier × SD) = 18.1555 − (2.0 × 0.0765) = 18.0026. %B is (Last close − Lower) ÷ (Upper − Lower) = (18.2200 − 18.0026) ÷ 0.3058 = 71.1%. These are John Bollinger’s own defaults: a 20-period simple average with bands two population standard deviations away (John Bollinger, Bollinger Bands).

The South African angle

Fibonacci and moving-average levels are widely watched on USD/ZAR precisely because so many participants watch them, which gives them a self-fulfilling quality that has nothing to do with the mathematics. The JSE's 17:00 close and the overnight gap to the next open mean daily indicators on South African shares include a jump every day that continuous forex charts do not.

Default indicator settings such as a 14-period RSI or 20-period Bollinger Bands were tuned on daily US equity data decades ago. On USD/ZAR intraday charts the same settings behave differently, and the calculators let you see the effect of changing them.

Figures used in this calculator

The South African constants this calculator relies on, with the page that holds the current value and the date it was last verified.

Assumptions and limitations

It uses a simple moving average and population standard deviation over the closes you enter. The bands describe past volatility only; touching a band is not a signal on its own, and results change with the period and multiple chosen.

Key Takeaways

  1. Paste closing prices from your platform, oldest first, separated by commas.
  2. %B is the figure to read first.
  3. It uses a simple moving average and population standard deviation over the closes you enter.
  4. The calculator takes three inputs: Closing prices, Period and Multiplier.

Spotted an outdated figure? If a rate, limit or formula in this calculator no longer matches its source, email us the page and the source. A material correction is dated on the Updates Log.

Share this calculator:

Frequently asked questions

What do the upper and lower bands actually represent?

The bands are set a fixed number of standard deviations above and below a moving average, typically 2 standard deviations, price touching or exceeding a band suggests it's statistically extended relative to its recent volatility, not necessarily a reversal signal on its own.

Why might I want to widen or narrow the standard deviation multiplier?

A wider multiplier (like 2.5 or 3) captures more extreme moves before flagging them, reducing false signals but reacting later, a narrower multiplier (like 1.5) flags moves sooner but produces more frequent, potentially noisier signals.

What does it mean when the bands squeeze together tightly?

A tight squeeze indicates unusually low volatility, often interpreted as a period of consolidation that may precede a significant breakout in either direction, though the direction of that eventual breakout isn't predicted by the squeeze itself.

Does price touching the upper band mean I should sell?

Not automatically, in strong uptrends, price can ride along or repeatedly touch the upper band for extended periods without reversing, many traders combine Bollinger Bands with other indicators rather than trading a band touch in isolation.

How is this different from just using standard deviation alone?

Bollinger Bands specifically translate standard deviation into visual price levels around a moving average, the Volatility Calculator gives you the raw statistical figure, this calculator applies it directly to price bands for trading context.

Want to embed this calculator on your site?

Embed this calculator

Free to use on your own site. Copy the code below and paste it where you want the calculator to appear.

<iframe src="https://www.tradeanswers.co.za/embed/bollinger-bands-calculator.html"
        width="100%" height="570" style="border:0;max-width:520px"
        title="Bollinger Bands Calculator - TradeAnswers" loading="lazy"></iframe>
<p><a href="https://www.tradeanswers.co.za/bollinger-bands-calculator.html">Bollinger Bands Calculator</a> by <a href="https://www.tradeanswers.co.za/">TradeAnswers</a></p>