How to Calculate Bollinger Bands Using Excel – 3 Easy Steps

·

Bollinger Bands are one of the most widely used technical indicators in trading, valued for their ability to highlight market volatility and potential price extremes. Whether you're analyzing stocks, forex, or cryptocurrencies, understanding how to calculate Bollinger Bands in Excel gives you full control over the data and empowers you to build custom trading strategies.

In this guide, you’ll learn how to calculate Bollinger Bands from scratch using just three straightforward steps. No third-party tools or expensive software required—just Excel and a basic understanding of formulas.


What Are Bollinger Bands?

Bollinger Bands consist of three lines plotted on a price chart:

These bands dynamically expand and contract based on market volatility. When prices move sharply, the bands widen; during calm periods, they narrow.

Traders use Bollinger Bands to:

👉 Discover how Bollinger Bands can improve your trading strategy with real-time data analysis.


Step 1: Prepare Your Data in Excel

Start by importing or manually entering historical price data into Excel. You’ll need at least two columns:

For accuracy, use at least 20 periods of data—the standard setting for Bollinger Bands.

Example layout:

DateClose
2025-01-01100
2025-01-02102
......

Ensure your closing prices are in a single column (e.g., Column F). This will make it easier to apply formulas consistently.


Step 2: Calculate the Simple Moving Average (SMA)

The middle band is a simple moving average—typically calculated over 20 periods.

In cell H23, enter the following formula:

=AVERAGE(F4:F23)

This calculates the average of the last 20 closing prices (from F4 to F23). Drag this formula down as new data comes in to keep the SMA updated.

Pro Tip: Use absolute references (like $F$4) when fixing ranges, but relative references work best here for rolling calculations.

Step 3: Compute Upper and Lower Bands Using Standard Deviation

Now it’s time to calculate volatility using standard deviation—a statistical measure that shows how much prices deviate from the average.

Use Excel’s built-in function STDEVPA() to compute population standard deviation across the same 20-period window.

Upper Bollinger Band

In cell I23, input:

=H23+(STDEVPA(F5:F23)*$I$3)

Here:

Lower Bollinger Band

In cell J23, enter:

=H23-(STDEVPA(F5:F23)*$J$3)

Make sure both multiplier cells (I3 and J3) contain the same value (usually 2). This ensures symmetry around the middle band.

Drag these formulas down your dataset to generate full band trajectories.

👉 See how automated platforms use Bollinger Bands for precision entry and exit signals.


Why Traders Love Bollinger Bands

While I don’t keep Bollinger Bands permanently on my charts—they can clutter price action—I frequently pull them up to assess context. For example:

One of the greatest strengths of Bollinger Bands is that they’re self-scaling. You can apply the same settings across different assets—stocks, commodities, crypto—and timeframes—hourly, daily, weekly—without constant recalibration.

They’re especially useful when combined with other indicators, such as RSI or MACD, to confirm trade signals.

“The real power of Bollinger Bands becomes evident when they are combined with indicators.”
— John Bollinger, Bollinger on Bollinger Bands

Frequently Asked Questions (FAQ)

Q: What is the standard period for Bollinger Bands?

A: The default setting is a 20-period simple moving average with a multiplier of 2 standard deviations. This works well across most markets and timeframes.

Q: Can I adjust the multiplier in Bollinger Bands?

A: Yes. While 2 is standard, some traders use 1.5 for more sensitivity or 2.5 for fewer false signals, depending on strategy goals.

Q: Do Bollinger Bands predict price direction?

A: Not directly. They indicate volatility and relative price levels. A touch of the upper band doesn’t guarantee a reversal—it must be confirmed with other analysis tools.

Q: How do I handle missing or irregular data in Excel?

A: Clean your dataset first. Remove gaps or use interpolation if necessary. Use IFERROR() in formulas to prevent calculation errors.

Q: Can Bollinger Bands be used for cryptocurrency trading?

A: Absolutely. Due to crypto’s high volatility, Bollinger Bands are particularly effective at identifying extreme moves and consolidation phases.

Q: Are Bollinger Bands lagging indicators?

A: Yes, since they’re based on moving averages. However, their responsiveness to volatility adds a forward-looking element compared to pure trend-following tools.


Enhancing Your Strategy with Backtesting

Once you’ve mastered calculating Bollinger Bands in Excel, the next step is testing how they perform in real-world scenarios. Backtesting allows you to validate whether your entry/exit rules generate consistent results over time.

You can design systems like:

Automate these rules in Excel using logical functions (IF, AND, OR) and track performance metrics like win rate, risk-reward ratio, and drawdown.

👉 Explore advanced tools that integrate Bollinger Bands with live market analytics for smarter decisions.


Final Thoughts

Calculating Bollinger Bands in Excel is simple once you understand the core components: moving average, standard deviation, and multiplier. With just a few formulas, you can create a powerful analytical tool that adapts to any market.

Whether you're building manual strategies or laying the foundation for algorithmic trading, mastering this process gives you deeper insight into price behavior and volatility dynamics.

By combining Bollinger Bands with other technical tools and rigorous backtesting, you position yourself to make more informed, data-driven trading decisions—without relying on pre-built charting platforms.

Core Keywords: Bollinger Bands, Excel calculation, technical indicator, standard deviation, moving average, volatility analysis, trading strategy, backtesting