How to use sparklines in Google Sheets
Learn how to build compact in-cell sparkline charts in Google Sheets using the SPARKLINE function to visualize trends fast.

Quick answer
To use sparklines in Google Sheets, click an empty cell, type =SPARKLINE(range) referencing your data, then press Enter to generate a miniature line chart inside that cell. Add optional arguments like {"charttype","bar"} to change the chart style, color, or axis settings without leaving the cell.
Steps at a glance
- Click the empty cell where you want the sparkline to appear
- Type =SPARKLINE( and select your data range
- Close the parentheses and press Enter
- Review the mini chart rendered inside the cell
- Add an options argument to set chart type or color
- Drag the fill handle to copy the sparkline to other rows
- Resize the row or column if the chart looks cramped
Summary
Sparklines are tiny charts that live inside a single spreadsheet cell, giving you an instant visual snapshot of a trend without building a full chart. They're ideal for dashboards, sales reports, and status columns where space is limited but visual context matters.
Step-by-step guide
Step 1
Select the cell for your sparkline
Click on an empty cell next to the row or column of data you want to visualize. This cell will hold the entire mini chart, so pick a spot where a small graphic makes sense, such as the last column in a data table.
Step 2
Enter the SPARKLINE formula
Type =SPARKLINE( and then select the range of cells containing the numbers you want plotted, such as A2:K2 for a row of monthly values. Close the parentheses and press Enter to generate a basic line chart inside the cell.
Step 3
Choose a chart type
By default, SPARKLINE draws a line chart, but you can switch styles by adding an options argument. Type a formula like =SPARKLINE(A2:K2,{"charttype","bar"}) to render a bar chart instead, or use "column" for vertical bars similar to what you'd build with the standard chart tool used in /guides/google-sheets/create-a-chart.
Step 4
Customize colors and axis settings
Extend the options argument to control appearance, for example {"charttype","column";"color","green";"axis",true}. This lets you match sparkline colors to your spreadsheet's theme in the same way you would when you /guides/google-sheets/customize-a-chart for a full-size graph.
Step 5
Copy the sparkline to other rows
Click the sparkline cell, then drag the small blue fill handle in the bottom-right corner down through the remaining rows. Each copied cell automatically updates its data range to match its own row, so every row gets its own mini chart.
Step 6
Adjust row height or column width
If the sparkline looks squeezed, widen the column or increase the row height so the chart has more room to display detail. This is especially useful for bar and column sparklines where taller rows make differences easier to see.
Step 7
Add labels for context
Since a sparkline has no built-in title or legend, add a short text label in an adjacent cell describing what the chart shows, such as "Q1 Trend" or "Weekly Sales." You can also insert a text box nearby if you want a more visible caption, similar to how you would /guides/google-sheets/add-a-text-box elsewhere in the sheet.
Why this matters
You're scanning a spreadsheet with dozens of rows of monthly figures and need to spot trends instantly without scrolling to a separate chart. Adding a sparkline next to each row turns raw numbers into a quick visual signal, helping you and your team catch patterns during a meeting or review.
Frequently asked questions
Can I use a sparkline as a chart legend or axis label?
No, a sparkline is a self-contained mini chart and doesn't support a separate legend or standard axis labels like a full chart does. If you need labeled axes or a legend, build a regular chart instead.
Does the SPARKLINE function work on the free version of Google Sheets?
Yes, SPARKLINE is a standard built-in function available to every Google Sheets user with a free Google account, with no premium add-on required.
Can sparklines show win/loss patterns instead of trend lines?
Yes, set the options argument to {"charttype","winloss"} to display a series of up or down bars representing positive and negative values instead of a continuous line.
Why does my sparkline update automatically when I change the data?
Sparklines are formulas, not static images, so they recalculate instantly whenever the referenced cell values change, just like any other Google Sheets formula.
Create interactive demos like this one — free, no coding required.
Start for free →