# Bollinger Bands

> Bollinger Bands place bands two standard deviations around a moving average. Learn the formula, the squeeze, walking the bands, %B and common trading strategies.

Source: https://learn.tradelabsai.com/indicators/bollinger-bands/  
Track: Indicators · Level: Intermediate · Updated: 2026-10-03  
Publisher: TradeLabs AI (https://tradelabsai.com). Education, not financial advice.  
Cite as: TradeLabs Learn, "Bollinger Bands", https://learn.tradelabsai.com/indicators/bollinger-bands/

Bollinger Bands are a volatility indicator created by John Bollinger in the 1980s. They consist of a moving average in the middle with an upper and lower band set a number of standard deviations away. Because standard deviation rises and falls with volatility, the bands widen when markets are volatile and tighten when they are calm. They show at a glance whether price is high or low relative to its recent behaviour.

## The formula

```
Middle band = 20 period SMA of the close
Upper band = Middle band + 2 × standard deviation (20 periods)
Lower band = Middle band − 2 × standard deviation (20 periods)
```

The default settings are 20 periods and 2 standard deviations. Under a normal distribution, about 95% of values would fall within two standard deviations, but market prices are not normally distributed, so price closes outside the bands more often than that suggests. See [Fat Tails](https://learn.tradelabsai.com/math/fat-tails/).

## Reading Bollinger Bands

| Observation | Common interpretation |
|---|---|
| Bands narrowing | Volatility falling; a squeeze that often precedes a big move |
| Bands widening | Volatility expanding; a strong move underway |
| Price touching the upper band | Price high relative to recent range, not automatically a sell |
| Price walking along the upper band | Strong uptrend |
| Price returning to the middle band | Mean reversion towards the average |

## The squeeze

When the bands contract to their narrowest width in months, volatility is unusually low. Bollinger called this the squeeze. Low volatility rarely lasts, so a squeeze often comes before a strong breakout, though it does not tell you the direction. Traders mark the squeeze and wait for price to close outside the bands with rising volume. See [Compression and Expansion](https://learn.tradelabsai.com/price-action/compression-and-expansion/).

**Example: Trading a squeeze**
A stock's band width falls to its lowest level in six months as price trades in a $2 range. Then a candle closes above the upper band on twice average volume, and the bands begin to widen. A trader buys with a stop below the middle band, aiming to ride the expansion and trail the stop along the middle band as the trend develops.

## Walking the bands

In strong trends, price can repeatedly touch or close outside the upper band (in uptrends) or lower band (in downtrends). This is called walking the bands and shows strength, not exhaustion. Selling every upper band touch in an uptrend is one of the most common Bollinger Band mistakes.

## Mean reversion in ranges

In sideways markets, the bands act like dynamic boundaries. Traders buy when price touches the lower band and shows a reversal sign, targeting the middle or upper band, and sell near the upper band. This works best when the bands are flat rather than expanding. See [Mean Reversion](https://learn.tradelabsai.com/strategies/mean-reversion/).

## %B and bandwidth

Two related indicators make the bands easier to quantify:

```
%B = (Close − Lower band) ÷ (Upper band − Lower band)
Bandwidth = (Upper band − Lower band) ÷ Middle band
```

A %B of 1 means price is at the upper band, 0 at the lower band, above 1 outside the upper band. Bandwidth measures how wide the bands are, making squeezes easy to spot.

## Settings

- **20 and 2:** the standard for most timeframes.
- **Shorter periods (10) with 1.5 standard deviations:** for short term trading.
- **Longer periods (50) with 2.5 standard deviations:** for longer term analysis.

## Combining with other tools

- **Keltner Channels:** when Bollinger Bands contract inside Keltner Channels, many traders call it a squeeze. See [Keltner Channels](https://learn.tradelabsai.com/indicators/keltner-channels/).
- **RSI:** a lower band touch with bullish RSI divergence strengthens a reversal setup. See [RSI (Relative Strength Index)](https://learn.tradelabsai.com/indicators/rsi/).
- **Volume:** a band breakout on high volume is more convincing.

## Common mistakes

- **Treating band touches as automatic reversal signals.**
- **Fading strong trends** that walk the bands.
- **Assuming the squeeze predicts direction.**

## Frequently asked questions

### What do Bollinger Bands tell you?

How high or low price is relative to its recent average and volatility, and whether volatility is expanding or contracting.

### Is touching the upper Bollinger Band a sell signal?

Not by itself. In strong uptrends, price often walks along the upper band. It is more meaningful in ranges.

### What is a Bollinger Band squeeze?

A period when the bands become very narrow, signalling low volatility that often precedes a large move.

## Sources

- Wikipedia, [Bollinger Bands](https://en.wikipedia.org/wiki/Bollinger_Bands)

## Continue learning

- Next lesson: [Keltner Channels](https://learn.tradelabsai.com/indicators/keltner-channels/)
- Previous lesson: [ATR (Average True Range)](https://learn.tradelabsai.com/indicators/atr/)
- Related: [ATR (Average True Range)](https://learn.tradelabsai.com/indicators/atr/): The Average True Range measures how much an asset typically moves per period. Learn the true range formula, how to use ATR for stops, position sizing and filters.
- Related: [Keltner Channels](https://learn.tradelabsai.com/indicators/keltner-channels/): Keltner Channels set bands a multiple of ATR around an EMA. Learn the formula, how they differ from Bollinger Bands, the squeeze and trend trading strategies.
- Related: [Compression and Expansion](https://learn.tradelabsai.com/price-action/compression-and-expansion/): Markets alternate between quiet compression and explosive expansion. Learn how to spot compression with ranges, ATR and Bollinger Bands, and trade the breakout.
- Related: [Volatility](https://learn.tradelabsai.com/markets/volatility/): Volatility measures how much and how fast prices move. Learn historical and implied volatility, ATR, the VIX, why volatility clusters and how it affects risk.
- Related: [Simple Moving Average (SMA)](https://learn.tradelabsai.com/indicators/simple-moving-average/): The simple moving average is the plain average of recent closes. Learn the SMA formula, how lag works, popular SMA settings and practical trading uses.
- Related: [Mean Reversion](https://learn.tradelabsai.com/strategies/mean-reversion/): Mean reversion trades bet that prices stretched far from their average will come back. Learn the signals, z scores, examples and the risk of fading strong trends.
- Related: [Donchian Channels](https://learn.tradelabsai.com/indicators/donchian-channels/): Donchian Channels plot the highest high and lowest low over a period. Learn how they define breakouts, the famous Turtle Trading rules and how to use them today.
