Mean and Standard Deviation Lines on Google Sheets Chart

Want to visualize the mean and standard deviation lines on a column chart in Google Sheets? This guide walks you through exactly how to do that using formulas and a Combo chart—step by step.

Whether you’re analyzing dog heights, student test scores, or any dataset with variation, this method will help you identify outliers and understand spread at a glance.

What This Tutorial Covers

  • Adding standard deviation bars using built-in chart options
  • A better method: creating a Combo chart with mean and ±SD lines
  • Step-by-step formulas and chart settings
  • Practical use case and visuals
  • Bonus: Related charting resources

Quick Method: Use Error Bars

Google Sheets includes a basic way to add standard deviation—via Error Bars.

Steps:

  1. Select your data (e.g., A1:B12 where A = labels, B = values).
  2. Go to Insert > Chart and select a Column chart.
  3. In the Chart editor > Customize > Series, check Error Bars.
  4. Set the type to Standard deviation. Use the default value 1.

This method is easy, but the chart can look messy—especially if you want clear lines.

Adding Standard Deviation (Error) Bars in Google Sheets

Why Add Mean and SD Lines?

Standard deviation (SD) tells you how spread out your values are. Adding a mean line and ±1 SD lines helps you:

  • Visually detect outliers
  • Identify clusters and variation
  • Quickly compare data points to the average

Let’s now build a cleaner and more insightful version using a Combo chart.

Use Case Example: Dog Heights

Imagine you’re analyzing the height of 11 dog breeds. You want to see which dogs are close to average, and which are notably taller or shorter.

Step 1: Format Your Data

You’ll need three new columns: Average, SD Below, and SD Above.

Dog BreedHeight (mm)Average-1 SD+1 SD
Pug254

Leave columns C to E blank except for the header row (C1:E1).

Note: When entering the column header “+1 SD”, Google Sheets might treat it as a formula and show an error. To avoid this, type it as '+1 SD (with a leading apostrophe). The apostrophe won’t appear in the cell, but it prevents formula interpretation.

Step 2: Add Array Formulas

Paste these formulas in row 2:

C2 (Average):

=ArrayFormula(IF(LEN(B2:B12), AVERAGE(B2:B12), ))

D2 (-1 SD):

=ArrayFormula(IF(LEN(B2:B12), C2 - STDEV.S($B$2:$B$12), ))

E2 (+1 SD):

=ArrayFormula(IF(LEN(B2:B12), C2 + STDEV.S($B$2:$B$12), ))
Sample data with array formulas for mean and standard deviation in Google Sheets

We use STDEV.S assuming this is a sample, not the full population.

Step 3: Insert and Configure the Chart

  1. Select A1:E12
  2. Go to Insert > Chart
  3. In the Chart editor, set:
    • Chart type: Combo
    • Stacking: None
    • Data range: A1:E12
    • X-axis: Dog Breed
    • Series:
      • Height (mm) → Column
      • Average → Line
      • -1 SD → Line
      • +1 SD → Line
      • “Use row 1 as headers” is enabled
      • “Use column A as labels” is checked
  4. Under Customize > Series, ensure:
    • Each line series uses a different color (e.g., red for mean, green for SD lines)

You now have a visual chart that shows exactly where each dog breed stands in relation to the mean and standard deviation.

Final Result Preview

Adding Mean and Standard Deviation Lines to a Column Chart
screenshot # 1
  • Red line = Mean
  • Green lines = ±1 Standard Deviation
  • Blue columns = Actual heights

It’s much more informative than just error bars—and easier to interpret.

Summary: Best Way to Add Mean and SD to Charts

MethodVisual QualityFlexibilitySetup
Error Bars❌ PoorLowEasy
Combo Chart✅ ExcellentHighMedium

If you want a clean, meaningful visual: Use the Combo chart method.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

How to Generate Semimonthly Dates in Google Sheets

If you need to generate semimonthly sequential dates in Google Sheets, you can do...

How to Make Just One Page Landscape in Google Docs

Sometimes, you may need to include a wide table, an organizational chart, or a...

Google Sheets: Get the Last Row with Any Data Across Multiple Columns

It’s common to have several empty rows at the bottom of a Google Sheet,...

How to Calculate Digital Root in Google Sheets

The digital root is the single-digit value you get by repeatedly summing the digits...

More like this

How to Generate Semimonthly Dates in Google Sheets

If you need to generate semimonthly sequential dates in Google Sheets, you can do...

Google Sheets: Get the Last Row with Any Data Across Multiple Columns

It’s common to have several empty rows at the bottom of a Google Sheet,...

How to Calculate Digital Root in Google Sheets

The digital root is the single-digit value you get by repeatedly summing the digits...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.