{"id":21118,"date":"2022-09-28T08:00:37","date_gmt":"2022-09-28T02:30:37","guid":{"rendered":"https:\/\/www.fusioncharts.com\/blog\/?p=21118"},"modified":"2026-02-13T14:37:29","modified_gmt":"2026-02-13T09:07:29","slug":"how-to-add-equation-to-graph-in-google-sheets-accurately","status":"publish","type":"post","link":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/","title":{"rendered":"How to Create a Best Fit Line in Google Sheets Precisely 2026"},"content":{"rendered":"<p data-pm-slice=\"1 1 []\"><span style=\"font-weight: 400;\">Trendlines are added to scatter plots to enable easier analysis and understanding of data, including trends and outliers. More specifically, the slope of the trendline defines the rate of change of the independent variable relative to the dependent variable. That said, Google Sheets would not automatically add the equation of trendlines to your graph. But that doesn\u2019t mean you have to unearth your pen and paper to calculate it yourself. You can maneuver the Google Sheets <a href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-master-a-graph-maker-in-6-simple-steps\/\" target=\"_blank\" rel=\"noopener\">graph maker<\/a> settings to add basically anything to your chart. In this article, you\u2019ll learn how to add an equation to a graph or <strong>line of best fit equation<\/strong> in Google Sheets.<\/span><\/p>\r\nHowever, before we dive into adding equations using the Google Sheets graph maker, let\u2019s define a trendline equation.\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#What_Is_A_Trendline_Equation\" title=\"What Is A Trendline Equation?\">What Is A Trendline Equation?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Purpose_of_Best_Fit_Line\" title=\"Purpose of Best Fit Line\">Purpose of Best Fit Line<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Interpretation_of_Best_Fit_Line\" title=\"Interpretation of Best Fit Line\">Interpretation of Best Fit Line<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#How_To_Add_Best_Fit_Lines_In_Google_Sheets\" title=\"How To Add Best Fit Lines In Google Sheets?\">How To Add Best Fit Lines In Google Sheets?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_1_Setting_Up_Google_Sheet\" title=\"Step: 1 Setting Up Google Sheet\">Step: 1 Setting Up Google Sheet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_2_Go_To_Chart\" title=\"Step: 2 Go To Chart\">Step: 2 Go To Chart<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_3_Data_Interpretation\" title=\"Step: 3 Data Interpretation\">Step: 3 Data Interpretation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_4_Spreadsheet_Floaters\" title=\"Step: 4 Spreadsheet Floaters\">Step: 4 Spreadsheet Floaters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_5_Chart_Editor_Customization\" title=\"Step: 5 Chart Editor Customization\">Step: 5 Chart Editor Customization<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_6_Trendline_Verification\" title=\"Step: 6 Trendline Verification\">Step: 6 Trendline Verification<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_7_Trendline_Visual\" title=\"Step: 7 Trendline Visual\">Step: 7 Trendline Visual<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Step_8_Select_Use_Equation\" title=\"Step: 8 Select Use Equation\">Step: 8 Select Use Equation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Results\" title=\"Results\">Results<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#How_to_Use_Excel_to_Graph_an_Equation_or_Function\" title=\"How to Use Excel to Graph an Equation or Function\">How to Use Excel to Graph an Equation or Function<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Creating_A_Scatterplot\" title=\"Creating A Scatterplot\">Creating A Scatterplot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Adding_Equation\" title=\"Adding Equation\">Adding Equation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Final_Scatterplot_With_Equation\" title=\"Final Scatterplot With Equation\">Final Scatterplot With Equation<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Final_Thoughts\" title=\"Final Thoughts\">Final Thoughts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#FAQs_Frequently_Asked_Questions\" title=\"FAQs (Frequently Asked Questions)\">FAQs (Frequently Asked Questions)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#Level_Up_Your_Google_Sheets_Charts_Today\" title=\"Level Up Your Google Sheets Charts Today!\">Level Up Your Google Sheets Charts Today!<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_Is_A_Trendline_Equation\"><\/span><span style=\"color: #241568;\">What Is A Trendline Equation?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\nThere are different\u00a0<a href=\"https:\/\/www.fusioncharts.com\/blog\/what-are-the-types-of-trend-lines\/\" target=\"_blank\" rel=\"noopener noreferrer\"><u>types of trendlines<\/u><\/a> depending on the chart type and purpose of the trendline. However, this article focuses on the linear trendline. The linear trendline equation is a linear relationship that describes the line that best fits a set of numerical data points. Depending on the nature of a scatter plot, this line should have the shortest distance between each data point and the line itself. The trendline equation is used to define this line.\r\n<p class=\"st-br\">The equation of a linear relationship is <strong>y = mx + b<\/strong>. Where <strong>x<\/strong> is the independent variable, <strong>y<\/strong> is the dependent variable, <strong>m<\/strong> is the slope of the line, and <strong>b<\/strong> is the y-intercept. Using this equation, you can identify whether or not a trend is present in your data points. But if you are looking to visualize the trend in your data, you can add a<strong> line of best fit formula<\/strong> to your chart. The line of best fit, also known as the trendline, is a straight line that best represents the relationship between the variables in your dataset. Let\u2019s look at how to add this equation to your chart.<\/p>\r\n\r\n<h3><span class=\"ez-toc-section\" id=\"Purpose_of_Best_Fit_Line\"><\/span><span style=\"color: #12509e;\"><strong>Purpose of Best Fit Line<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">The whole purpose of adding a <\/span>best fit line in Google Sheets<span style=\"font-weight: 400;\"> is to showcase and identify the data patterns. With the help of this straight line, the distance between itself and the data points is minimized. Additionally, one&#8217;s understanding of the data trends is enhanced.<\/span>\r\n<h3><span class=\"ez-toc-section\" id=\"Interpretation_of_Best_Fit_Line\"><\/span><span style=\"color: #12509e;\"><strong>Interpretation of Best Fit Line<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">The interpretation of the best-fit line involves the slope and y-intercept. The slope indicates the relationship that is between the variables. The positive line shows a direct connection, and the negative one shows inverse connections. Y-intercept denotes the dependent variable when the independent ones are zero.<\/span>\r\n<h2><span class=\"ez-toc-section\" id=\"How_To_Add_Best_Fit_Lines_In_Google_Sheets\"><\/span><span style=\"color: #241568;\"><strong>How To Add Best Fit Lines In Google Sheets?<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\nTo add trendline equations to your chart, you must first have a chart with trendlines. The steps to create one are below:\r\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Setting_Up_Google_Sheet\"><\/span><span style=\"color: #12509e;\"><strong>Step: 1 Setting Up Google Sheet<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">While setting up the Google Sheet for adding <strong>line of fit equation<\/strong>, there are a few steps you need to consider. Let\u2019s check them out one by one:<\/span>\r\n<ul>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Firstly, choose the data range and the column headers.\u00a0<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Go to the Insert option in the menu bar.\u00a0<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select the Chart Options.<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">There, you will find a chart with a Chart Editor sidebar on the window&#8217;s right side.\u00a0<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Based on your data, Google Sheets will recommend a chart. If it is not the scatter chart, move ahead to the next step.\u00a0<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">To get a scatter chart, click the Setup tab and find the Chart Editor option. You will find a drop-down menu with all the chart-type options.\u00a0<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">There, choose the Scatter Chart option.<\/span><\/li>\r\n<\/ul>\r\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Go_To_Chart\"><\/span><span style=\"color: #12509e;\"><strong>Step: 2 Go To Chart<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">In Google Sheets, you must first select the columns comprising the chart you wish to use for creating the<\/span> Google Sheets best-fit line<span style=\"font-weight: 400;\">, followed by navigating to the &#8220;Insert&#8221; menu and selecting &#8220;Chart&#8221; to generate the desired visualization.<\/span>\r\n<p class=\"st-br\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/images.surferseo.art\/817114be-fca2-4bbf-a241-071c99771565.png\" alt=\"Create best fit line Google sheet chart\" width=\"654\" height=\"382\" \/><\/p>\r\n\r\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Data_Interpretation\"><\/span><span style=\"color: #12509e;\"><strong>Step: 3 Data Interpretation<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\nAt this point, Google Sheets will create a chart that best suits the data points you\u2019ve provided. In this case, it should automatically create a scatter plot. But if it creates a different chart, simply navigate to Chart Editor &gt; Setup &gt; Scatter plot to create a scatter plot.\r\n<p class=\"st-br\"><img decoding=\"async\" src=\"https:\/\/images.surferseo.art\/631b6b87-4eac-49ac-a5c3-df66a84dd3cb.png\" alt=\"Draw a scatter plot\" \/><\/p>\r\n\r\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Spreadsheet_Floaters\"><\/span><span style=\"color: #12509e;\"><strong>Step: 4 Spreadsheet Floaters<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">At this stage, you should have a raw <\/span>scatter plot equation <span style=\"font-weight: 400;\">visualization without any trendlines. The data points will be represented as floating over individual spreadsheet cells, providing a clear and unobstructed view of the data.<\/span>\r\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Chart_Editor_Customization\"><\/span><span style=\"color: #12509e;\"><strong>Step: 5 Chart Editor Customization<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">To access the Chart Editor, navigate to the &#8220;Chart Editor&#8221; tab within the platform. Once there, proceed to the &#8220;Customize&#8221; section and select &#8220;Series.&#8221; From this point, enable the &#8220;Trendline&#8221; option to add a trendline to your chart.<\/span>\r\n<h3><span class=\"ez-toc-section\" id=\"Step_6_Trendline_Verification\"><\/span><span style=\"color: #12509e;\"><strong>Step: 6 Trendline Verification<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">If you want to customize the thickness, opacity, color, and more, go to the \u201cSeries\u201d section. There, you will find a trendline <\/span><span style=\"font-weight: 400;\">checkbox. Click on it and find the varied options.<\/span>\r\n<h3><span class=\"ez-toc-section\" id=\"Step_7_Trendline_Visual\"><\/span><span style=\"color: #12509e;\"><strong>Step: 7 Trendline Visual<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\nDepending on your data points, Google Sheets will display a line (trendline) with the shortest distance between your data points and the line itself. This feature is especially useful when creating a <strong>reporting dashboard<\/strong>, as it helps visualize trends and make data-driven decisions.\r\n<h3><span class=\"ez-toc-section\" id=\"Step_8_Select_Use_Equation\"><\/span><span style=\"color: #12509e;\"><strong>Step: 8 Select Use Equation<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">Proceed to Chart Editor &gt; Customize &gt; Series &gt; Label. Within the &#8216;Label&#8217; dropdown menu, select &#8216;Use Equation.&#8217; This will enable you to input and apply a mathematical formula to the plot, visually representing the trendline.<\/span>\r\n<h3><span class=\"ez-toc-section\" id=\"Results\"><\/span><span style=\"color: #12509e;\">Results<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<span style=\"font-weight: 400;\">In Google Sheets, the trendline equation is prominently displayed at the top of your scatter plot chart, providing a clear visual representation of the data. To enhance your chart&#8217;s visualization, you can add additional labels, such as a chart title, for easy identification and analysis of the data.<\/span>\r\n<h2><span class=\"ez-toc-section\" id=\"How_to_Use_Excel_to_Graph_an_Equation_or_Function\"><\/span><span style=\"color: #241568;\" data-preserver-spaces=\"true\">How to Use Excel to Graph an Equation or Function<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\nExcel can be a <a href=\"https:\/\/www.fusioncharts.com\/blog\/15-things-you-should-know-about-google-charts-alternatives\/\">Google Chart alternative<\/a>, depending on your project needs. Adding a trend line or Google Sheets best fit line to a scatter plot in Excel is similar to the Google Sheets steps discussed above. However, there are a few differences. But basically, you simply have to create your scatter plot and add the equation.\r\n\r\nThe <strong>equation of the line<\/strong> in Excel follows the standard format y = mx + b, where m is the slope and b is the y-intercept. Once added, Excel allows you to display this equation directly on the chart for easy reference.\r\n\r\nHere\u2019s how you can do so in Excel.\r\n<h3><span class=\"ez-toc-section\" id=\"Creating_A_Scatterplot\"><\/span><span style=\"color: #12509e;\">Creating A Scatterplot<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\nLike in Google Sheets, you need to prepare your data.\r\n<ul>\r\n \t<li>List your x-axis and y-axis values in different columns. You can do this using the function you want to graph. For example, using the equation, y = 3x + 5 to get the y-axis values.<\/li>\r\n \t<li>Select the columns containing your data.<\/li>\r\n \t<li>Navigate to Insert &gt; Chart.<\/li>\r\n \t<li>Choose the scatter plot from the chart dropdown.<\/li>\r\n<\/ul>\r\n<h3><span class=\"ez-toc-section\" id=\"Adding_Equation\"><\/span><span style=\"color: #12509e;\">Adding Equation<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\nThis is where the difference between using Google Sheets and Excel lies.\r\n<ul>\r\n \t<li>Highlight your scatter plot chart.<\/li>\r\n \t<li>Navigate to Chart Design &gt; Add Chart Element.<\/li>\r\n \t<li>Scroll down to &#8216;Trendline&#8217; and click on it to open the trend line options dropdown.<\/li>\r\n \t<li>Select Linear.<\/li>\r\n \t<li>Click &#8216;More Trendline Options&#8217; and check the &#8216;Display Equation On Chart&#8217; checkbox.<\/li>\r\n<\/ul>\r\n<h3><span class=\"ez-toc-section\" id=\"Final_Scatterplot_With_Equation\"><\/span><span style=\"color: #12509e;\">Final Scatterplot With Equation<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<ul>\r\n \t<li>Excel will display the equation at the top of your chart. Note that your final scatter plot equation would match the function used for your y-axis values.<\/li>\r\n<\/ul>\r\n<h2><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span><span style=\"color: #241568;\">Final Thoughts<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\nThe trend line equation enables users to identify trends and outliers. You can go a bit deeper to determine whether or not a trend exists and in what direction.\r\n<ul>\r\n \t<li>If your equation shows a positive slope, i.e., the value of m is positive, there\u2019s a positive relationship between the independent and dependent variables.<\/li>\r\n \t<li>If the value of m is negative, i.e., a negative slope, it represents a negative relationship between variables.<\/li>\r\n<\/ul>\r\n<!--<h2><span class=\"ez-toc-section\" id=\"FAQs_Frequently_Asked_Questions\"><\/span><span style=\"color: #241568;\"><strong>FAQs (Frequently Asked Questions)<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<h4><span style=\"font-weight: 400;\"><span style=\"color: #12509e;\"><strong>1. Can Google Sheets make a line of best fit?<\/strong><\/span><\/span><\/h4>\r\n<p class=\"st-br\">Yes, on Google Sheets, best fit line can be created by using <strong>line of best fit equation<\/strong>. You need first to make a scatter plot and then add a trendline. Choose the \"Linear\" option for drafting a best-fit line.<\/p>\r\n\r\n<h4 class=\"st-br\"><strong><span style=\"color: #12509e;\">2. Can you add multiple lines in Google Sheets?<\/span><\/strong><\/h4>\r\n<p class=\"st-br\">Yes, multiple lines can be created in Google Sheets. While working with scatter plots, one can make a trendline at each data point set. This allows you to analyze multiple datasets on the same chart.<\/p>\r\n\r\n<h4 class=\"st-br\"><strong><span style=\"color: #12509e;\">3. How do I add two lines of best fit in Google Sheets?<\/span><\/strong><\/h4>\r\n<p class=\"st-br\"><span style=\"font-weight: 400;\">To add two lines of best fit, you must create a scatter plot with two data sets. Select \"Add Trendline\" and choose \"Linear\" to generate a trendline for each set. This way, you can analyze the best-fit lines for both datasets.<\/span><\/p>\r\nUsing this approach in a <strong>KPI and dashboard <\/strong>allows you to track key performance indicators more effectively by comparing trends across multiple data sets.\r\n<h4 class=\"st-br\"><strong><span style=\"color: #12509e;\">4. How do you make a line of best-fit graphs on Google Sheets?\r\n<\/span><\/strong><\/h4>\r\n<span style=\"font-weight: 400;\">For plotting a line of <\/span>best fit line Google Sheets<span style=\"font-weight: 400;\"> on graphs, make sure to add the following steps:\u00a0<\/span>\r\n<ul>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click on a data point, click \"Chart Editor,\" and select \"Add Trendline.\"\u00a0\u00a0<\/span><\/li>\r\n \t<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Opt for a \"Linear\" trendline, and for additional insights, check the \"Display Equation on Chart\" option.\u00a0\u00a0<\/span><\/li>\r\n<\/ul>\r\n<p class=\"st-br\"><em><span style=\"font-weight: 400;\">With this, you can generate a line of best fit for your data.<\/span><\/em><\/p>\r\n\r\n<h2><span class=\"ez-toc-section\" id=\"Level_Up_Your_Google_Sheets_Charts_Today\"><\/span>Level Up Your Google Sheets Charts Today!<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\nNow that you know how to add equations to graphs in Google Sheets, check out other ways you can improve your <a href=\"https:\/\/www.fusioncharts.com\/blog\/10-fun-projects-to-improve-your-charting-skills\/\" target=\"_blank\" rel=\"noopener noreferrer\"><u>chart skills<\/u><\/a>.\r\n<p class=\"st-br\"><a href=\"https:\/\/www.fusioncharts.com\/download\/fusioncharts-suite-xt?framework=js\" target=\"_blank\" rel=\"noopener\">Download FusionCharts to try out 100+ charts and 2000+ maps today!<\/a><\/p> -->","protected":false},"excerpt":{"rendered":"<p>Trendlines are added to scatter plots to enable easier analysis and understanding of data, including trends and outliers. More specifically, the slope of the trendline defines the rate of change of the independent variable relative to the dependent variable. That said, Google Sheets would not automatically add the equation of trendlines to your graph. But [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":21119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,722],"tags":[48,554,683,152],"coauthors":[1093],"class_list":["post-21118","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-charting-guidelines","category-fusioncharts","tag-big-data-visualization","tag-charting","tag-charts","tag-fusioncharts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Create a Best Fit Line in Google Sheets Precisely<\/title>\n<meta name=\"description\" content=\"Learn the easiest way to create a best-fit line in Google Sheets. Analyze, visualize, and plot your 2026 data for better professional results. Try today.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create a Best Fit Line in Google Sheets Precisely\" \/>\n<meta property=\"og:description\" content=\"Learn the easiest way to create a best-fit line in Google Sheets. Analyze, visualize, and plot your 2026 data for better professional results. Try today.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\" \/>\n<meta property=\"og:site_name\" content=\"FusionBrew - The FusionCharts Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-28T02:30:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-13T09:07:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Derek\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Derek\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\/\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"Article\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Derek\",\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/5821a3ec1369bfe1207d0c8d74c342e3\"\n\t            },\n\t            \"headline\": \"How to Create a Best Fit Line in Google Sheets Precisely 2026\",\n\t            \"datePublished\": \"2022-09-28T02:30:37+00:00\",\n\t            \"dateModified\": \"2026-02-13T09:07:29+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\"\n\t            },\n\t            \"wordCount\": 1284,\n\t            \"commentCount\": 0,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg\",\n\t            \"keywords\": [\n\t                \"big data visualization\",\n\t                \"charting\",\n\t                \"charts\",\n\t                \"FusionCharts\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Charting Guidelines\",\n\t                \"FusionCharts\"\n\t            ],\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"CommentAction\",\n\t                    \"name\": \"Comment\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#respond\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\",\n\t            \"name\": \"How To Create a Best Fit Line in Google Sheets Precisely\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg\",\n\t            \"datePublished\": \"2022-09-28T02:30:37+00:00\",\n\t            \"dateModified\": \"2026-02-13T09:07:29+00:00\",\n\t            \"description\": \"Learn the easiest way to create a best-fit line in Google Sheets. Analyze, visualize, and plot your 2026 data for better professional results. Try today.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage\",\n\t            \"url\": \"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg\",\n\t            \"contentUrl\": \"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg\",\n\t            \"width\": 1280,\n\t            \"height\": 853\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"Home\",\n\t                    \"item\": \"https:\/\/www.fusioncharts.com\/blog\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"How to Create a Best Fit Line in Google Sheets Precisely 2026\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#website\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/\",\n\t            \"name\": \"FusionBrew - The FusionCharts Blog\",\n\t            \"description\": \"Get tips and tricks on how to build effective Data Visualisation using FusionCharts\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\/\/www.fusioncharts.com\/blog\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#organization\",\n\t            \"name\": \"FusionCharts\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/\",\n\t                \"url\": \"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg\",\n\t                \"contentUrl\": \"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg\",\n\t                \"width\": 1,\n\t                \"height\": 1,\n\t                \"caption\": \"FusionCharts\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/\"\n\t            }\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/5821a3ec1369bfe1207d0c8d74c342e3\",\n\t            \"name\": \"Derek\",\n\t            \"image\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/image\/450ae4f51244949a356cb7f11caf4fcf\",\n\t                \"url\": \"\/blog\/wp-content\/wphb-cache\/gravatar\/808\/80839a4babdbe0340a8f82cd8ecd54fbx96.jpg\",\n\t                \"contentUrl\": \"\/blog\/wp-content\/wphb-cache\/gravatar\/808\/80839a4babdbe0340a8f82cd8ecd54fbx96.jpg\",\n\t                \"caption\": \"Derek\"\n\t            },\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/author\/derek\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create a Best Fit Line in Google Sheets Precisely","description":"Learn the easiest way to create a best-fit line in Google Sheets. Analyze, visualize, and plot your 2026 data for better professional results. Try today.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/","og_locale":"en_US","og_type":"article","og_title":"How To Create a Best Fit Line in Google Sheets Precisely","og_description":"Learn the easiest way to create a best-fit line in Google Sheets. Analyze, visualize, and plot your 2026 data for better professional results. Try today.","og_url":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/","og_site_name":"FusionBrew - The FusionCharts Blog","article_published_time":"2022-09-28T02:30:37+00:00","article_modified_time":"2026-02-13T09:07:29+00:00","og_image":[{"width":1280,"height":853,"url":"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg","type":"image\/jpeg"}],"author":"Derek","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Derek","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#article","isPartOf":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/"},"author":{"name":"Derek","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/5821a3ec1369bfe1207d0c8d74c342e3"},"headline":"How to Create a Best Fit Line in Google Sheets Precisely 2026","datePublished":"2022-09-28T02:30:37+00:00","dateModified":"2026-02-13T09:07:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/"},"wordCount":1284,"commentCount":0,"publisher":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage"},"thumbnailUrl":"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg","keywords":["big data visualization","charting","charts","FusionCharts"],"articleSection":["Charting Guidelines","FusionCharts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/","url":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/","name":"How To Create a Best Fit Line in Google Sheets Precisely","isPartOf":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage"},"image":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage"},"thumbnailUrl":"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg","datePublished":"2022-09-28T02:30:37+00:00","dateModified":"2026-02-13T09:07:29+00:00","description":"Learn the easiest way to create a best-fit line in Google Sheets. Analyze, visualize, and plot your 2026 data for better professional results. Try today.","breadcrumb":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#primaryimage","url":"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg","contentUrl":"\/blog\/wp-content\/uploads\/2022\/09\/smartmockups_l83amznm.jpg","width":1280,"height":853},{"@type":"BreadcrumbList","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-add-equation-to-graph-in-google-sheets-accurately\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fusioncharts.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create a Best Fit Line in Google Sheets Precisely 2026"}]},{"@type":"WebSite","@id":"https:\/\/www.fusioncharts.com\/blog\/#website","url":"https:\/\/www.fusioncharts.com\/blog\/","name":"FusionBrew - The FusionCharts Blog","description":"Get tips and tricks on how to build effective Data Visualisation using FusionCharts","publisher":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fusioncharts.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fusioncharts.com\/blog\/#organization","name":"FusionCharts","url":"https:\/\/www.fusioncharts.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/","url":"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg","contentUrl":"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg","width":1,"height":1,"caption":"FusionCharts"},"image":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/5821a3ec1369bfe1207d0c8d74c342e3","name":"Derek","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/image\/450ae4f51244949a356cb7f11caf4fcf","url":"\/blog\/wp-content\/wphb-cache\/gravatar\/808\/80839a4babdbe0340a8f82cd8ecd54fbx96.jpg","contentUrl":"\/blog\/wp-content\/wphb-cache\/gravatar\/808\/80839a4babdbe0340a8f82cd8ecd54fbx96.jpg","caption":"Derek"},"url":"https:\/\/www.fusioncharts.com\/blog\/author\/derek\/"}]}},"_links":{"self":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/posts\/21118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/comments?post=21118"}],"version-history":[{"count":0,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/posts\/21118\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/media\/21119"}],"wp:attachment":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/media?parent=21118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/categories?post=21118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/tags?post=21118"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/coauthors?post=21118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}