Table of Contents
“Google Sheets is a powerful tool that allows users to create and manipulate data in a spreadsheet format. To plot an equation in Google Sheets, users can utilize the built-in chart feature. This feature allows for the creation of a visual representation of data through various chart types, including line graphs and scatter plots. Users can input their equation into the spreadsheet, then select the cells and use the chart feature to generate a graphical representation of the data. This enables users to easily observe and analyze the relationship between variables in the equation.”
Plot an Equation in Google Sheets
Often you may want to plot an equation or a function in Google Sheets.
Fortunately this is easy to do with built-in formulas.
This tutorial provides several examples of how to plot equations/functions in Google Sheets.
Example 1: Plot a Linear Equation
Suppose you’d like to plot the following equation:
y = 2x + 5
The following image shows how to create the y-values for this linear equation in Google Sheets, using the range of 1 to 10 for the x-values:

Next, highlight the values in the range A2:B11. Then click on the Insert tab. Then click Chart:

The following plot will automatically appear:

We can see that the plot follows a straight line since the equation that we used was linear.
Example 2: Plot a Quadratic Equation
Suppose you’d like to plot the following equation:
y = 3x2
The following image shows how to create the y-values for this equation in Google Sheets, using the range of 1 to 10 for the x-values:

Next, highlight the values in the range A2:B11. Then click on the Insert tab. Then click Chart.
The following plot will automatically appear:

We can see that the plot follows a curved line since the equation that we used was quadratic.
Example 3: Plot a Reciprocal Equation
Suppose you’d like to plot the following equation:
y = 1/x
The following image shows how to create the y-values for this equation in Google Sheets, using the range of 1 to 10 for the x-values:

Next, highlight the values in the range A2:B11. Then click on the Insert tab. Then click Chart.
The following plot will automatically appear:

We can see that the plot follows a curved line downwards since this represents the equation y = 1/x.
Example 4: Plot a Sine Equation
Suppose you’d like to plot the following equation:
y = sin(x)
The following image shows how to create the y-values for this equation in Google Sheets, using the range of 1 to 10 for the x-values:

Next, highlight the values in the range A2:B11. Then click on the Insert tab. Then click Chart.
The following plot will automatically appear:

You can use a similar technique to plot any function or equation in Google Sheets.
Simply choose a range of x-values to use in one column, then use an equation in a separate column to define the y-values based on the x-values.
Cite this article
stats writer (2024). How do I plot an equation in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-plot-an-equation-in-google-sheets/
stats writer. "How do I plot an equation in Google Sheets?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-plot-an-equation-in-google-sheets/.
stats writer. "How do I plot an equation in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-plot-an-equation-in-google-sheets/.
stats writer (2024) 'How do I plot an equation in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-plot-an-equation-in-google-sheets/.
[1] stats writer, "How do I plot an equation in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How do I plot an equation in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
