What is a Line of Best Fit?
Step-by-Step Guide to Adding a Line of Best Fit in Google Sheets
Step 1: Prepare Your Data

Step 2: Create a Scatter Chart
- Highlight the data you want to analyze.
- Go to the menu, select
Insert, and thenChart.
- Google Sheets will automatically suggest a chart type. If it doesn’t choose a scatter plot, change it by selecting the
Chart typedropdown in the Chart Editor and pickingScatter chart.

Step 3: Add a Trendline
- Click on the chart to bring up the Chart Editor.
- Go to the
Customizetab.
- Under the
Seriesmenu, scroll down and findTrendline.
- Check the box next to
Trendlineto add it to your scatter chart. You can further customize the trendline's color, label, and opacity according to your preference.


Step 4: Customize and Analyze the Trendline
- Type of Trendline: Choose linear, exponential, polynomial, or more depending on the data distribution.
- Label: Add labels like "None," "Use Equation," or "Custom" to display the trendline equation on the chart.
- Trendline Transparency: Adjust the transparency slider to make the trendline more or less visible against your data points.
Step 5: Interpret the Results
Tip: To make data analysis even easier, try using SheetAI.app. It allows you to automate many tasks in Google Sheets, such as generating lists, tables, and even filling in data with just a simple prompt. For example, you can quickly create a table summarising sales data, automatically generate a list of email contacts, or fill in missing product descriptions. This can save you a lot of time and effort!
Conclusion
Share on socials
About the author
Sanskar is Founder at IAG Tech and creator of SheetAI. With over 3 years of experience building AI-powered spreadsheet tools, he has helped 100k+ users master Google Sheets automation and advanced formulas. He has built 24+ productivity products and teaches spreadsheet optimization on YouTube.
More from the blog
How to Highlight Duplicates in Google Sheets: A Step-by-Step Guide
27 July 2024
How to Make a Bar Graph in Google Sheets
27 July 2024
How to Add a Column in Google Sheets: A Comprehensive Guide
27 July 2024
How to Add Bullet Points in Google Sheets: A Comprehensive Guide
27 July 2024
How to Do Subtraction in Google Sheets: A Step-by-Step Guide
27 July 2024
How Can AI-Powered PPTs Boost Sales Pitch Effectiveness?
27 July 2024
How to Underline in Google Sheets
27 July 2024
How to Clear Cells in Google Sheets: A Comprehensive Guide
27 July 2024
How to Use COUNTIF in Google Sheets: A Comprehensive Guide
27 July 2024