Bollinger BandsBB

Bollinger Bands are lines drawn a set number of standard deviations above and below a moving average, widening and narrowing with volatility.

Bollinger Bands wrap a moving average in an envelope that breathes with the market: wide when prices swing hard, narrow when they go quiet.1 That makes them two tools in one — a gauge of whether price is high or low relative to its recent range, and a volatility meter that often narrows before big moves. This entry shows how the bands are calculated, how to read touches, squeezes and band walks, and why touching a band is not a signal by itself.

Category
Indicators and Tools
Reading time
6 min
Also called
Bollinger Band, Bollinger squeeze, Band squeeze
Updated

Bollinger Bands in plain words

Draw a 20-day moving average. Then draw one line above it and one below, each two standard deviations away. Standard deviation measures how spread out recent prices have been, so the bands sit far apart when the market is volatile and close together when it is calm.2

Most of the time, price stays inside the bands. A move to the upper band means price is high relative to its recent range; a move to the lower band means it is low.2 Relative is the key word — in a strong trend, price can hug one band for a long time.

How to calculate and read Bollinger Bands, step by step

  1. Calculate the middle band

    A simple moving average, by default over 20 periods.2 See Moving Average.

  2. Calculate the standard deviation

    Over the same 20 periods, measure how far prices typically sit from that average.2

  3. Draw the outer bands

    Upper band = average + 2 standard deviations; lower band = average − 2 standard deviations. 20 and 2 are the defaults and can be changed.2

  4. Watch the width

    Bands tightening during low volatility raise the chance of a sharp move in either direction; unusually wide bands suggest an existing trend may be ending.2

  5. Read touches in context

    In ranges, price tends to swing from one band to the other; in strong trends it can hug one band for long periods.2

  6. Confirm with something else

    The bands are not meant to be used alone; use them to confirm signals from other tools.2

Worked examples

Example 1 — Calculating the bands

Calculation

A stock’s 20-day average close is $50.00 and the standard deviation of those 20 closes is $1.25.

Example 1 — Calculating the bands — calculation
Middle band$50.00
Upper band = $50 + 2 × $1.25$52.50
Lower band = $50 − 2 × $1.25$47.50
Bandwidth = (upper − lower) ÷ middle10%

If the stock now trades at $52.20, it is near the top of its recent range — but that alone says nothing about whether it will fall.

Example 2 — A squeeze and breakout

Squeeze

After three quiet weeks the same stock’s standard deviation shrinks to $0.40, so the bands narrow to $49.20–$50.80 (bandwidth 3.2%). Then it closes at $51.60, above the upper band, on heavy volume.

Example 2 — A squeeze and breakout — calculation
Bandwidth before10% → 3.2% (squeeze)
Close vs. upper band$51.60 vs. $50.80
ReadingVolatility expanding upward

Narrow bands do not tell you the direction, only that a larger move is more likely. Here the breakout direction came from the close above the band, ideally with volume. Watch for a false move that reverses quickly.2

Example 3 — Selling every upper-band touch

Band walk

In a strong uptrend a trader shorts each time price touches the upper band: at $60, $63 and $66. The stock keeps riding the band to $70.

Example 3 — Selling every upper-band touch — calculation
Three shorts$60, $63, $66
Price later$70
Combined loss per share−$10 − $7 − $4 = −$21

Price can hug a band for prolonged periods during strong trends.2 Upper-band touches in an uptrend are a sign of strength, not exhaustion.

Figure 1

A squeeze, then expansion

Bollinger Bands squeezing and then expandingA 20-period moving average with bands two standard deviations above and below. During a quiet sideways period the bands narrow sharply — a squeeze. When the price then breaks upward, the bands widen quickly and the price rides along the upper band.squeezebands expand— price · - - 20-period SMA · shaded: ±2 standard deviationstime →
During a quiet sideways period the bands narrow sharply; when the price breaks out, they widen and the price rides along the upper band.

Common Bollinger Band situations

AspectWhat it usually meansWatch out for
Bands narrowing (squeeze)Volatility unusually low; a big move is more likely2Direction unknown; first move can be a fake
Price touches upper band in a rangeHigh end of the recent rangeBreakouts start here too
Price hugs upper bandStrong uptrendShorting it fights the trend
Bands unusually wideVolatility high; trend may be ending2Can stay wide in crashes
Close outside, then straight back inBreakout strength negated2A possible false breakout

How traders use Bollinger Bands

  • Spotting squeezes

    Low bandwidth highlights quiet markets that may be about to move. See Volatility and Breakout.

  • Range targets

    In sideways markets, a bounce off the lower band that crosses the middle band can make the upper band a target.2 See Range Trading.

  • Trend strength

    Repeated closes near one band show a strong trend; a failure to reach the band again can warn of weakening.

  • Volatility-aware stops

    Because the bands widen with volatility, some traders use the middle or opposite band as a trailing reference.

Advantages and disadvantages

Advantages

  • Adapts automatically to changing volatility.
  • Shows both relative price level and volatility in one view.
  • The squeeze highlights quiet markets that may be about to move.

Disadvantages

  • Band touches are not buy or sell signals on their own.
  • Squeezes do not tell you the breakout direction.
  • Built on a moving average, so it lags.
  • In strong trends, “overbought” readings at the upper band can persist.

Going deeper

Read as far as you need. Each level builds on the one before it.

Default settings

Beginner

20 periods and 2 standard deviations are the defaults.2 Shorter-term traders sometimes use 10 periods with 1.5 standard deviations, and longer-term traders 50 periods with 2.5.2

%B and bandwidth

Intermediate

%B shows where price sits inside the bands: 1 at the upper band, 0 at the lower band, 0.5 at the middle, and above 1 or below 0 outside them. Bandwidth is the distance between the bands divided by the middle band, which makes squeezes easy to compare over time.

Why prices do not stay inside 95% of the time

Advanced

In a normal distribution about 95% of values fall within two standard deviations, but price changes are not normally distributed and the bands are calculated on a moving window. In practice price closes outside the bands more often than 5% of the time, especially in trends. Treat the bands as a relative measure, not a statistical guarantee.

Common mistakes

  1. Shorting the upper band in a trend

    In strong uptrends price walks the upper band. Check the Trend first.

  2. Guessing the squeeze direction

    A squeeze says a move is likely, not which way. Wait for the break.

  3. Using the bands alone

    Combine them with price structure, volume or a momentum indicator such as the RSI.

  4. Over-tuning the settings

    Changing the period and width until past signals look perfect leads to Overfitting.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q120-day SMA = $80, standard deviation = $2.50. Where are the bands with default settings?
Q2The bands have narrowed to their tightest in six months. What does that suggest?

Key points to remember

  1. Middle band = 20-period SMA; outer bands = ± 2 standard deviations (defaults).
  2. The bands widen with volatility and narrow when markets are quiet.
  3. A squeeze makes a big move more likely but does not show its direction.
  4. In trends, price can ride one band for a long time.
  5. Use the bands to confirm other signals, not on their own.

Frequently asked questions

What are the best Bollinger Band settings?

20 periods and 2 standard deviations are the defaults and the most widely used. Shorter or narrower settings react faster and give more signals; longer or wider settings fewer.

Is touching the lower band a buy signal?

Not by itself. In a range it marks the low end; in a downtrend price can keep walking down the lower band. Look for confirmation from price action or another indicator.

What is a Bollinger squeeze?

A period when the bands narrow to unusually low width, showing very low volatility. It often precedes a larger move, but the direction is unknown until price breaks out.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. StockCharts ChartSchool. Bollinger Bands (opens in a new tab) Checked .
  2. Fidelity. Bollinger Bands (opens in a new tab) Checked .

Read more elsewhere

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. Trading Metrics is our sister site, under the same ownership; we are not affiliated with any other publisher linked above. Last reviewed . Report an error or request a source credit.