TradingCalculated
Calculations run privately in your browser
80 values
Paste a column from a spreadsheet or export.
%B0.89990% of the way from lower to upper band
Bandwidth7.4%(upper − lower) ÷ middle
Upper band110.68
Middle (SMA)106.73
Lower band102.78
The bands sit 2 standard deviations either side of a 20-period SMA, so they widen in volatile markets and contract in quiet ones. A tight squeeze often precedes a large move — the bands don't say which direction.
Bollinger Bands (20, 2)
Bandwidth %
Last 10 bars
BarCloseUpperMiddleLower
#80109.88110.68106.73102.78
#79109.74110.32106.41102.49
#78108.82109.9106.09102.29
#77107.55109.66105.78101.91
#76108.58109.7105.48101.25
#75106.89109.4105.13100.86
#74107.98109.33104.86100.39
#73108.58109.19104.4699.72
#72107.57108.88103.9899.08
#71108.12108.72103.5198.3

Not financial advice. Results are estimates based on the values you enter and simplified assumptions; real trades are affected by fees, slippage, gaps and other factors. Trading involves substantial risk of loss. Read the full disclaimer.

How to calculate Bollinger Bands

Middle band = SMA(n) Upper band = SMA + k × σ Lower band = SMA − k × σ σ = population standard deviation of the last n closes %B = (Close − Lower) ÷ (Upper − Lower) Bandwidth = (Upper − Lower) ÷ Middle × 100

Paste prices oldest-first, one value or row per bar — straight from a spreadsheet or CSV export. Use “Sample data” to try it instantly.

Worked example

  1. 20-bar SMA = 100, standard deviation = 2.
  2. Upper = 100 + 2 × 2 = 104, lower = 96.
  3. Close at 103 → %B = (103 − 96) ÷ 8 = 0.875.

How to interpret Bollinger Bands

Bands widen when volatility rises and contract when it falls. A “squeeze” — bandwidth at its lowest in months — often precedes a big move. Closes outside the bands (%B above 1 or below 0) show strong momentum, not automatically a reversal. For a pure volatility measure see the ATR.

Limitations and common mistakes

  • Statistically, prices are outside 2σ bands more often than the normal distribution suggests.
  • In strong trends price can “walk the band” for a long time.
Technical Indicators

Simple Moving Average Calculator

Calculate a simple moving average bar by bar, with an optional second average for crossovers.

80 closes · SMA 20 & 50 → crossover check
Technical Indicators

ATR Calculator

Calculate Average True Range and turn it into volatility-based stop-loss levels.

ATR(14) 2.0 · 2× from 100 → stop 96
Risk Metrics

Volatility Calculator

Calculate the standard deviation of returns from prices or returns and annualise it for any data frequency.

Monthly returns → σ per month & annualised

Bollinger Bands calculator FAQ

What are the standard settings?

20 periods and 2 standard deviations.

Population or sample standard deviation?

Bollinger Bands conventionally use the population standard deviation (divide by n), as here.