How to connect points on Desmos

Updated November 2026 · Sarkari Tools math team

Quick answer

Desmos can join points in three ways: turn on lines for a table, draw a closed shape with polygon(), or draw a single segment between two points with a short parametric formula.

polygon((0,0),(4,0),(2,3))(1+3t, 2+2t)

Step by step

  1. Put the points in a table (+ menu → Table) in the order you want them joined.
  2. Click the color circle at the top of the y₁ column and switch on Lines. Desmos joins the points in row order.
  3. For a closed shape, type polygon((0,0),(4,0),(2,3)). Desmos draws and shades the triangle.
  4. To join just two points, type (1+3t, 2+2t). With the default range 0 ≤ t ≤ 1, this is the segment from (1, 2) to (4, 4).

Try it live

This graph is drawn by our free graphing calculator, which uses the same style of typing. Edit any line and the graph updates.

drag to pan · scroll to zoom

Common mistakes and tips

  • Lines follow the order of the rows, so sort your table first.
  • For a segment from (x₁, y₁) to (x₂, y₂), use (x₁ + (x₂ − x₁)t, y₁ + (y₂ − y₁)t).
  • Turn off Points if you only want the line.

Frequently asked questions

Why are my points connected in the wrong order?

Desmos connects table rows top to bottom. Reorder the rows to change the path.

How do I draw a line through two points?

Find the slope and use point-slope form, or fit y₁ ~ mx₁ + b to a two-row table.

Can I make the connecting lines dashed?

Yes. Click the color circle and pick a dashed line style.

No Desmos? Use our free online graphing calculator

Our free online graphing calculator works in any browser with no sign-up, and it shows step-by-step working where it can.

More Desmos guides

Desmos is a trademark of Desmos Studio PBC. Sarkari Tools is independent and not affiliated with or endorsed by Desmos. Our guides describe how to use the Desmos calculator; our own calculators are separate tools.