How to Connect Points in Desmos
Draw segments, polygons, and lines through points
By JasonPublished 5 min read
On this page

To connect points in Desmos, put them in a table, then press and hold the colored circle at the top of the y column and turn on Lines. Desmos joins the points in the order they appear in the table. For a closed shape, type polygon((0,0),(4,0),(4,3)) to draw a triangle.
You can try these examples in our Desmos calculator. Use a table to connect a sequence of points, polygon() for a segment or a filled shape, and regression when you want the full equation of a line.
Connect points with a table
Connect
- Click the plus button at the top of the expression list and choose Table.
- Enter 0 and 0 in the first row, 4 and 0 in the second, and 4 and 3 in the third. Each row is one
point. - Press and hold the colored circle at the top of the
column. Turn on Lines in the style menu. - The graph joins the first point to the second, then the second to the third. To close the triangle with this table, add
again in the next row.
The button loads the table and its points. Turn on Lines yourself after it opens. The row order matters. Enter corners around the boundary, not across a diagonal. For more table steps, see how to make a table in Desmos.
A segment is not a line
Connecting two points draws the part between them. A line extends in both directions beyond the points. Use the regression method below when the question asks for the equation of the whole line.
Make a segment, triangle, square, or rectangle
Type polygon followed by the points in parentheses. Put each point in its own parentheses and separate the points with commas. Desmos connects the points in order and closes the shape by joining the last point to the first.
Line segment
For a segment from polygon((1,1),(5,3)). With two points there is no interior to fill, and the graph shows the segment between the endpoints.
Triangle
For a triangle with vertices polygon((0,0),(4,0),(4,3)). The last side returns to
Square
For a square with side length 3, type polygon((0,0),(3,0),(3,3),(0,3)). The four sides have length 3 and meet at right angles.
Rectangle
For a rectangle with width 5 and height 2, type polygon((0,0),(5,0),(5,2),(0,2)). Its opposite sides have equal lengths. Like the triangle and square, the rectangle is closed and filled.
Common mistake
Enter the vertices around the outside of the shape. For example, putting
Find the line through two points
A segment stops at its endpoints. To find the equation of the line through
- Add a table and enter
and as its two rows. - On a new expression line, type
y_1 ~ mx_1 + b. Type the tilde~in place of an equals sign. - Read the values:
and . The line is . - Check that Desmos shows
, which means the line passes through both points. Substitute the points into : both and hold.
The slope
Find the length and midpoint of a segment
For endpoints polygon((1,2),(5,5)). Its horizontal change is
- For length, type
sqrt((5-1)^2+(5-2)^2). Desmos gives 5, using the distance formula . - For the midpoint, average the x-coordinates and the y-coordinates separately. Type
((1+5)/2,(2+5)/2). Desmos plots . - Check the graph: the midpoint lies halfway along the segment. From
to the changes are 2 and 1.5, half the changes along the whole segment.
Use connected points on SAT questions
When a question gives vertices of a triangle or rectangle, draw them with polygon() in boundary order. The picture helps you see which points form a side and which form a diagonal. Then use the coordinates to calculate the length, midpoint, or slope the question asks for. For triangle relationships, see SAT triangles.
To check a right angle, calculate the slopes of the two sides meeting at the vertex. For example, from
Practice with SAT-style questions
Try each question before opening the walkthrough.
Practice question · Lines and Linear Relationships
Show the Detailed Explanation
Use change in
The
Practice question · Lines and Linear Relationships
Show the Detailed Explanation
For
Now the two points on
Connecting points in Desmos
- Put points in a table and turn on Lines to connect consecutive rows.
- Use
polygon()for a segment or a closed, filled figure; list vertices around the boundary. - Use a table and regression for the equation of the full line through two points.
- Calculate distance and midpoint from coordinates, then use the graph to check your setup.
Practice these tools in Desmos Skills training, and see key Desmos features for more calculator methods.


